CMS 3D CMS Logo

Public Member Functions | Private Attributes

CDFEventInfo Class Reference

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

#include <CDFEventInfo.h>

List of all members.

Public Member Functions

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

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.
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 ( ) [inline]

Definition at line 10 of file CDFEventInfo.h.

{ }

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.

{ return fBunchNumber; }
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.

{ return fCDFRevision; }
ULong64_t CDFEventInfo::getEventNumber ( ) const [inline]

get the event number

Definition at line 16 of file CDFEventInfo.h.

References fEventNumber.

Referenced by HcalTBSource::setRunAndEventInfo().

{ return fEventNumber; }
UInt_t CDFEventInfo::getL1ANumber ( ) const [inline]

get the L1A number (from TTC)

Definition at line 18 of file CDFEventInfo.h.

References fL1ANumber.

{ return fL1ANumber; }
ULong64_t CDFEventInfo::getOrbitNumber ( ) const [inline]

get the Orbit number

Definition at line 20 of file CDFEventInfo.h.

References fOrbitNumber.

{ return fOrbitNumber; }
UInt_t CDFEventInfo::getRunNumber ( ) const [inline]

get the run number

Definition at line 12 of file CDFEventInfo.h.

References fRunNumber.

Referenced by HcalTBSource::setRunAndEventInfo().

{ return fRunNumber; }
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.

{ return fRunNumberSequenceId.Data(); }
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().

                                                                                                                {
    fRunNumber=runNo; fRunNumberSequenceId=seqid;
    fEventNumber=eventNo;
    fL1ANumber=l1aNo;
    fOrbitNumber=orbitNo;
    fBunchNumber=bunchNo;
    fCDFRevision=9.0f;
  }

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().

Definition at line 39 of file CDFEventInfo.h.

Referenced by getRunNumberSequenceId(), and Set().