CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
CDFEventInfo Class Reference

Global information about an event such as event number and run number. More...

#include <CDFEventInfo.h>

Inheritance diagram for CDFEventInfo:

Public Member Functions

 CDFEventInfo ()
 
UInt_t getBunchNumber () const
 get the Bunch number (from TTC) More...
 
float getCDFRevisionEvent () const
 Get the revision of the CDFROOT library which this file was written with. More...
 
ULong64_t getEventNumber () const
 get the event number More...
 
UInt_t getL1ANumber () const
 get the L1A number (from TTC) More...
 
ULong64_t getOrbitNumber () const
 get the Orbit number More...
 
UInt_t getRunNumber () const
 get the run number More...
 
const char * getRunNumberSequenceId () const
 get the run number sequence id (whose run number is this?) More...
 
void Set (UInt_t runNo, const char *seqid, ULong64_t eventNo, UInt_t l1aNo, ULong64_t orbitNo, UInt_t bunchNo)
 setter routine More...
 

Private Attributes

UInt_t fBunchNumber
 
Float_t fCDFRevision
 
ULong64_t fEventNumber
 
UInt_t fL1ANumber
 
ULong64_t fOrbitNumber
 
UInt_t fRunNumber
 Get the revision of the CDFROOT library which is in current use. More...
 
TString fRunNumberSequenceId
 

Detailed Description

Global information about an event such as event number and run number.

Definition at line 8 of file CDFEventInfo.h.

Constructor & Destructor Documentation

CDFEventInfo::CDFEventInfo ( )

Definition at line 3 of file CDFEventInfo.cc.

3  {
4 }

Member Function Documentation

UInt_t CDFEventInfo::getBunchNumber ( ) const
inline

get the Bunch number (from TTC)

Definition at line 22 of file CDFEventInfo.h.

References fBunchNumber.

22 { return fBunchNumber; }
UInt_t fBunchNumber
Definition: CDFEventInfo.h:43
float CDFEventInfo::getCDFRevisionEvent ( ) const
inline

Get the revision of the CDFROOT library which this file was written with.

Definition at line 33 of file CDFEventInfo.h.

References fCDFRevision.

33 { return fCDFRevision; }
Float_t fCDFRevision
Definition: CDFEventInfo.h:44
ULong64_t CDFEventInfo::getEventNumber ( ) const
inline

get the event number

Definition at line 16 of file CDFEventInfo.h.

References fEventNumber.

Referenced by HcalTBSource::setRunAndEventInfo().

16 { return fEventNumber; }
ULong64_t fEventNumber
Definition: CDFEventInfo.h:40
UInt_t CDFEventInfo::getL1ANumber ( ) const
inline

get the L1A number (from TTC)

Definition at line 18 of file CDFEventInfo.h.

References fL1ANumber.

18 { return fL1ANumber; }
UInt_t fL1ANumber
Definition: CDFEventInfo.h:41
ULong64_t CDFEventInfo::getOrbitNumber ( ) const
inline

get the Orbit number

Definition at line 20 of file CDFEventInfo.h.

References fOrbitNumber.

20 { return fOrbitNumber; }
ULong64_t fOrbitNumber
Definition: CDFEventInfo.h:42
UInt_t CDFEventInfo::getRunNumber ( ) const
inline

get the run number

Definition at line 12 of file CDFEventInfo.h.

References fRunNumber.

Referenced by HcalTBSource::setRunAndEventInfo().

12 { return fRunNumber; }
UInt_t fRunNumber
Get the revision of the CDFROOT library which is in current use.
Definition: CDFEventInfo.h:38
const char* CDFEventInfo::getRunNumberSequenceId ( ) const
inline

get the run number sequence id (whose run number is this?)

Definition at line 14 of file CDFEventInfo.h.

References fRunNumberSequenceId.

14 { return fRunNumberSequenceId.Data(); }
TString fRunNumberSequenceId
Definition: CDFEventInfo.h:39
void CDFEventInfo::Set ( UInt_t  runNo,
const char *  seqid,
ULong64_t  eventNo,
UInt_t  l1aNo,
ULong64_t  orbitNo,
UInt_t  bunchNo 
)
inline

setter routine

Definition at line 24 of file CDFEventInfo.h.

References fBunchNumber, fCDFRevision, fEventNumber, fL1ANumber, fOrbitNumber, fRunNumber, and fRunNumberSequenceId.

Referenced by HcalTBWriter::extractEventInfo().

24  {
25  fRunNumber=runNo; fRunNumberSequenceId=seqid;
26  fEventNumber=eventNo;
27  fL1ANumber=l1aNo;
28  fOrbitNumber=orbitNo;
29  fBunchNumber=bunchNo;
30  fCDFRevision=9.0f;
31  }
UInt_t fRunNumber
Get the revision of the CDFROOT library which is in current use.
Definition: CDFEventInfo.h:38
TString fRunNumberSequenceId
Definition: CDFEventInfo.h:39
UInt_t fL1ANumber
Definition: CDFEventInfo.h:41
ULong64_t fOrbitNumber
Definition: CDFEventInfo.h:42
ULong64_t fEventNumber
Definition: CDFEventInfo.h:40
Float_t fCDFRevision
Definition: CDFEventInfo.h:44
UInt_t fBunchNumber
Definition: CDFEventInfo.h:43

Member Data Documentation

UInt_t CDFEventInfo::fBunchNumber
private

Definition at line 43 of file CDFEventInfo.h.

Referenced by getBunchNumber(), and Set().

Float_t CDFEventInfo::fCDFRevision
private

Definition at line 44 of file CDFEventInfo.h.

Referenced by getCDFRevisionEvent(), and Set().

ULong64_t CDFEventInfo::fEventNumber
private

Definition at line 40 of file CDFEventInfo.h.

Referenced by getEventNumber(), and Set().

UInt_t CDFEventInfo::fL1ANumber
private

Definition at line 41 of file CDFEventInfo.h.

Referenced by getL1ANumber(), and Set().

ULong64_t CDFEventInfo::fOrbitNumber
private

Definition at line 42 of file CDFEventInfo.h.

Referenced by getOrbitNumber(), and Set().

UInt_t CDFEventInfo::fRunNumber
private

Get the revision of the CDFROOT library which is in current use.

Definition at line 38 of file CDFEventInfo.h.

Referenced by getRunNumber(), and Set().

TString CDFEventInfo::fRunNumberSequenceId
private

Definition at line 39 of file CDFEventInfo.h.

Referenced by getRunNumberSequenceId(), and Set().