CMS 3D CMS Logo

CDFEventInfo.h
Go to the documentation of this file.
1 #ifndef CDFEventInfo_hh_included
2 #define CDFEventInfo_hh_included 1
3 
4 #include <TObject.h>
5 #include <TString.h>
8 class CDFEventInfo : public TObject {
9 public:
10  CDFEventInfo();
12  inline UInt_t getRunNumber() const { return fRunNumber; }
14  inline const char* getRunNumberSequenceId() const { return fRunNumberSequenceId.Data(); }
16  inline ULong64_t getEventNumber() const { return fEventNumber; }
18  inline UInt_t getL1ANumber() const { return fL1ANumber; }
20  inline ULong64_t getOrbitNumber() const { return fOrbitNumber; }
22  inline UInt_t getBunchNumber() const { return fBunchNumber; }
24  void Set(UInt_t runNo, const char* seqid, ULong64_t eventNo, UInt_t l1aNo, ULong64_t orbitNo, UInt_t bunchNo) {
25  fRunNumber = runNo;
26  fRunNumberSequenceId = seqid;
27  fEventNumber = eventNo;
28  fL1ANumber = l1aNo;
29  fOrbitNumber = orbitNo;
30  fBunchNumber = bunchNo;
31  fCDFRevision = 9.0f;
32  }
34  inline float getCDFRevisionEvent() const { return fCDFRevision; }
36  // static float getCDFRevisionLibrary() { return CDFLibraryVersion; }
37 private:
38  // static const float CDFLibraryVersion;
39  UInt_t fRunNumber; // Run number
40  TString fRunNumberSequenceId; // whose run number is this?
41  ULong64_t fEventNumber; // Event number
42  UInt_t fL1ANumber; // L1A number
43  ULong64_t fOrbitNumber; // Orbit number
44  UInt_t fBunchNumber; // Bunch number
45  Float_t fCDFRevision; // file revision
46  ClassDef(CDFEventInfo, 2)
47 };
48 
49 #endif // CDFEventInfo_hh_included
CDFEventInfo::getRunNumberSequenceId
const char * getRunNumberSequenceId() const
get the run number sequence id (whose run number is this?)
Definition: CDFEventInfo.h:14
CDFEventInfo::getL1ANumber
UInt_t getL1ANumber() const
get the L1A number (from TTC)
Definition: CDFEventInfo.h:18
CDFEventInfo::getOrbitNumber
ULong64_t getOrbitNumber() const
get the Orbit number
Definition: CDFEventInfo.h:20
CDFEventInfo::getCDFRevisionEvent
float getCDFRevisionEvent() const
Get the revision of the CDFROOT library which this file was written with.
Definition: CDFEventInfo.h:34
CDFEventInfo::fRunNumber
UInt_t fRunNumber
Get the revision of the CDFROOT library which is in current use.
Definition: CDFEventInfo.h:39
CDFEventInfo::getRunNumber
UInt_t getRunNumber() const
get the run number
Definition: CDFEventInfo.h:12
CDFEventInfo::fOrbitNumber
ULong64_t fOrbitNumber
Definition: CDFEventInfo.h:43
CDFEventInfo::fCDFRevision
Float_t fCDFRevision
Definition: CDFEventInfo.h:45
CDFEventInfo::Set
void Set(UInt_t runNo, const char *seqid, ULong64_t eventNo, UInt_t l1aNo, ULong64_t orbitNo, UInt_t bunchNo)
setter routine
Definition: CDFEventInfo.h:24
CDFEventInfo::CDFEventInfo
CDFEventInfo()
Definition: CDFEventInfo.cc:3
CDFEventInfo::fEventNumber
ULong64_t fEventNumber
Definition: CDFEventInfo.h:41
CDFEventInfo
Global information about an event such as event number and run number.
Definition: CDFEventInfo.h:8
CDFEventInfo::fL1ANumber
UInt_t fL1ANumber
Definition: CDFEventInfo.h:42
CDFEventInfo::fBunchNumber
UInt_t fBunchNumber
Definition: CDFEventInfo.h:44
CDFEventInfo::getEventNumber
ULong64_t getEventNumber() const
get the event number
Definition: CDFEventInfo.h:16
CDFEventInfo::getBunchNumber
UInt_t getBunchNumber() const
get the Bunch number (from TTC)
Definition: CDFEventInfo.h:22
CDFEventInfo::fRunNumberSequenceId
TString fRunNumberSequenceId
Definition: CDFEventInfo.h:40