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; fRunNumberSequenceId=seqid;
26  fEventNumber=eventNo;
27  fL1ANumber=l1aNo;
28  fOrbitNumber=orbitNo;
29  fBunchNumber=bunchNo;
30  fCDFRevision=9.0f;
31  }
33  inline float getCDFRevisionEvent() const { return fCDFRevision; }
35  // static float getCDFRevisionLibrary() { return CDFLibraryVersion; }
36 private:
37  // static const float CDFLibraryVersion;
38  UInt_t fRunNumber; // Run number
39  TString fRunNumberSequenceId; // whose run number is this?
40  ULong64_t fEventNumber; // Event number
41  UInt_t fL1ANumber; // L1A number
42  ULong64_t fOrbitNumber; // Orbit number
43  UInt_t fBunchNumber; // Bunch number
44  Float_t fCDFRevision; // file revision
45  ClassDef(CDFEventInfo,2)
46 };
47 
48 #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:38
ULong64_t getOrbitNumber() const
get the Orbit number
Definition: CDFEventInfo.h:20
TString fRunNumberSequenceId
Definition: CDFEventInfo.h:39
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:41
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:42
UInt_t getBunchNumber() const
get the Bunch number (from TTC)
Definition: CDFEventInfo.h:22
ULong64_t fEventNumber
Definition: CDFEventInfo.h:40
Float_t fCDFRevision
Definition: CDFEventInfo.h:44
float getCDFRevisionEvent() const
Get the revision of the CDFROOT library which this file was written with.
Definition: CDFEventInfo.h:33
ULong64_t getEventNumber() const
get the event number
Definition: CDFEventInfo.h:16
UInt_t fBunchNumber
Definition: CDFEventInfo.h:43