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
UInt_t getL1ANumber() const
get the L1A number (from TTC)
Definition: CDFEventInfo.h:18
UInt_t fRunNumber
Get the revision of the CDFROOT library which is in current use.
Definition: CDFEventInfo.h:39
ULong64_t getOrbitNumber() const
get the Orbit number
Definition: CDFEventInfo.h:20
TString fRunNumberSequenceId
Definition: CDFEventInfo.h:40
const char * getRunNumberSequenceId() const
get the run number sequence id (whose run number is this?)
Definition: CDFEventInfo.h:14
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
UInt_t fL1ANumber
Definition: CDFEventInfo.h:42
Global information about an event such as event number and run number.
Definition: CDFEventInfo.h:8
UInt_t getRunNumber() const
get the run number
Definition: CDFEventInfo.h:12
ULong64_t fOrbitNumber
Definition: CDFEventInfo.h:43
UInt_t getBunchNumber() const
get the Bunch number (from TTC)
Definition: CDFEventInfo.h:22
ULong64_t fEventNumber
Definition: CDFEventInfo.h:41
Float_t fCDFRevision
Definition: CDFEventInfo.h:45
float getCDFRevisionEvent() const
Get the revision of the CDFROOT library which this file was written with.
Definition: CDFEventInfo.h:34
ULong64_t getEventNumber() const
get the event number
Definition: CDFEventInfo.h:16
UInt_t fBunchNumber
Definition: CDFEventInfo.h:44