Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

BeamMonFileSummary.h

Go to the documentation of this file.
00001 
00025 #ifndef BEAMMONFILESUMMARY_H
00026 #define BEAMMONFILESUMMARY_H
00027 
00028 #include <DatabaseInterface/DbiTableRow.h>
00029 #include <Validity/VldTimeStamp.h>
00030 
00031 #include <string>
00032 
00033 class DbiTableRow;
00034 class DbiValidityRec;
00035 class DbiResultSet;
00036 class DbiOutRowStream;
00037 
00038 class TFile;
00039 
00040 class BeamMonFileSummary : public DbiTableRow
00041 {
00042 public:
00043     BeamMonFileSummary();
00044 
00046     virtual DbiTableRow* CreateTableRow() const;
00048     void Fill(DbiResultSet& rs, const DbiValidityRec* vrec);
00050     virtual void Store(DbiOutRowStream& ors, const DbiValidityRec* vrec) const;
00051 
00052     // Routines to load data.  Typically used for BeamMonDbuModule
00053 
00055     void SetFileInfo(const TFile& file);
00056 
00058     void SetTclkTrigger(int event, int delay);
00059 
00061     void AddSpill(const VldTimeStamp& vts, double protons_in_spill);
00062 
00063 public:
00064 
00065     VldTimeStamp        fFirstSpillTime; // Time first spill in file
00066     VldTimeStamp        fLastSpillTime; // Time of last spill in file
00067     int                 fSpillCount; // Number of spills in file
00068     float               fProtonCount; // Number of protons through TORTGT
00069     int                 fTclkTriggerEvent; // The TCLK trigger event number
00070     int                 fTclkTriggerDelay; // The TCLK trigger delay
00071     std::string         fFileName; // Name of file
00072     int                 fFileSize; // Size of file
00073     int                 fRootVersion; // version of ROOT used to produce file
00074     VldTimeStamp        fModTime; // time file was last modified.
00075     
00076     ClassDef(BeamMonFileSummary,0)
00077 };
00078 
00079 #endif  // BEAMMONFILESUMMARY_H
00080 

Generated on Mon Feb 15 11:06:24 2010 for loon by  doxygen 1.3.9.1