Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:53:50

0001 #ifndef CDFEventInfo_hh_included
0002 #define CDFEventInfo_hh_included 1
0003 
0004 #include <TObject.h>
0005 #include <TString.h>
0006 /** \brief Global information about an event such as event number and run number
0007  */
0008 class CDFEventInfo : public TObject {
0009 public:
0010   CDFEventInfo();
0011   /// get the run number
0012   inline UInt_t getRunNumber() const { return fRunNumber; }
0013   /// get the run number sequence id (whose run number is this?)
0014   inline const char* getRunNumberSequenceId() const { return fRunNumberSequenceId.Data(); }
0015   /// get the event number
0016   inline ULong64_t getEventNumber() const { return fEventNumber; }
0017   /// get the L1A number (from TTC)
0018   inline UInt_t getL1ANumber() const { return fL1ANumber; }
0019   /// get the Orbit number
0020   inline ULong64_t getOrbitNumber() const { return fOrbitNumber; }
0021   /// get the Bunch number (from TTC)
0022   inline UInt_t getBunchNumber() const { return fBunchNumber; }
0023   /// setter routine
0024   void Set(UInt_t runNo, const char* seqid, ULong64_t eventNo, UInt_t l1aNo, ULong64_t orbitNo, UInt_t bunchNo) {
0025     fRunNumber = runNo;
0026     fRunNumberSequenceId = seqid;
0027     fEventNumber = eventNo;
0028     fL1ANumber = l1aNo;
0029     fOrbitNumber = orbitNo;
0030     fBunchNumber = bunchNo;
0031     fCDFRevision = 9.0f;
0032   }
0033   /// Get the revision of the CDFROOT library which this file was written with
0034   inline float getCDFRevisionEvent() const { return fCDFRevision; }
0035   /// Get the revision of the CDFROOT library which is in current use
0036   // static float getCDFRevisionLibrary() { return CDFLibraryVersion; }
0037 private:
0038   //  static const float CDFLibraryVersion;
0039   UInt_t fRunNumber;             // Run number
0040   TString fRunNumberSequenceId;  // whose run number is this?
0041   ULong64_t fEventNumber;        // Event number
0042   UInt_t fL1ANumber;             // L1A number
0043   ULong64_t fOrbitNumber;        // Orbit number
0044   UInt_t fBunchNumber;           // Bunch number
0045   Float_t fCDFRevision;          // file revision
0046   ClassDef(CDFEventInfo, 2)
0047 };
0048 
0049 #endif  // CDFEventInfo_hh_included