CMS 3D CMS Logo

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::CDFEventInfo ( )

Definition at line 3 of file CDFEventInfo.cc.

3 {}

Member Function Documentation

◆ getBunchNumber()

UInt_t CDFEventInfo::getBunchNumber ( ) const
inline

get the Bunch number (from TTC)

Definition at line 22 of file CDFEventInfo.h.

22 { return fBunchNumber; }

References fBunchNumber.

◆ getCDFRevisionEvent()

float CDFEventInfo::getCDFRevisionEvent ( ) const
inline

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

Definition at line 34 of file CDFEventInfo.h.

34 { return fCDFRevision; }

References fCDFRevision.

◆ getEventNumber()

ULong64_t CDFEventInfo::getEventNumber ( ) const
inline

get the event number

Definition at line 16 of file CDFEventInfo.h.

16 { return fEventNumber; }

References fEventNumber.

Referenced by HcalTBSource::setRunAndEventInfo().

◆ getL1ANumber()

UInt_t CDFEventInfo::getL1ANumber ( ) const
inline

get the L1A number (from TTC)

Definition at line 18 of file CDFEventInfo.h.

18 { return fL1ANumber; }

References fL1ANumber.

◆ getOrbitNumber()

ULong64_t CDFEventInfo::getOrbitNumber ( ) const
inline

get the Orbit number

Definition at line 20 of file CDFEventInfo.h.

20 { return fOrbitNumber; }

References fOrbitNumber.

◆ getRunNumber()

UInt_t CDFEventInfo::getRunNumber ( ) const
inline

get the run number

Definition at line 12 of file CDFEventInfo.h.

12 { return fRunNumber; }

References fRunNumber.

Referenced by HcalTBSource::setRunAndEventInfo().

◆ getRunNumberSequenceId()

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.

14 { return fRunNumberSequenceId.Data(); }

References fRunNumberSequenceId.

◆ Set()

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.

24  {
25  fRunNumber = runNo;
26  fRunNumberSequenceId = seqid;
27  fEventNumber = eventNo;
28  fL1ANumber = l1aNo;
29  fOrbitNumber = orbitNo;
30  fBunchNumber = bunchNo;
31  fCDFRevision = 9.0f;
32  }

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

Referenced by HcalTBWriter::extractEventInfo().

Member Data Documentation

◆ fBunchNumber

UInt_t CDFEventInfo::fBunchNumber
private

Definition at line 44 of file CDFEventInfo.h.

Referenced by getBunchNumber(), and Set().

◆ fCDFRevision

Float_t CDFEventInfo::fCDFRevision
private

Definition at line 45 of file CDFEventInfo.h.

Referenced by getCDFRevisionEvent(), and Set().

◆ fEventNumber

ULong64_t CDFEventInfo::fEventNumber
private

Definition at line 41 of file CDFEventInfo.h.

Referenced by getEventNumber(), and Set().

◆ fL1ANumber

UInt_t CDFEventInfo::fL1ANumber
private

Definition at line 42 of file CDFEventInfo.h.

Referenced by getL1ANumber(), and Set().

◆ fOrbitNumber

ULong64_t CDFEventInfo::fOrbitNumber
private

Definition at line 43 of file CDFEventInfo.h.

Referenced by getOrbitNumber(), and Set().

◆ fRunNumber

UInt_t CDFEventInfo::fRunNumber
private

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

Definition at line 39 of file CDFEventInfo.h.

Referenced by getRunNumber(), and Set().

◆ fRunNumberSequenceId

TString CDFEventInfo::fRunNumberSequenceId
private

Definition at line 40 of file CDFEventInfo.h.

Referenced by getRunNumberSequenceId(), and Set().

CDFEventInfo::fRunNumber
UInt_t fRunNumber
Get the revision of the CDFROOT library which is in current use.
Definition: CDFEventInfo.h:39
CDFEventInfo::fOrbitNumber
ULong64_t fOrbitNumber
Definition: CDFEventInfo.h:43
CDFEventInfo::fCDFRevision
Float_t fCDFRevision
Definition: CDFEventInfo.h:45
CDFEventInfo::fEventNumber
ULong64_t fEventNumber
Definition: CDFEventInfo.h:41
CDFEventInfo::fL1ANumber
UInt_t fL1ANumber
Definition: CDFEventInfo.h:42
CDFEventInfo::fBunchNumber
UInt_t fBunchNumber
Definition: CDFEventInfo.h:44
CDFEventInfo::fRunNumberSequenceId
TString fRunNumberSequenceId
Definition: CDFEventInfo.h:40