ROOT logo
Podd » SRC » THaEventHeader

class THaEventHeader


 THaEvent

 This is the base class for "event" objects, which define the
 structure of the event data to be written to the output DST
 via ROOT object I/O.

 Any derived class must implement at least the following:

  - Define all member variables that are to appear in the output
    for each event (a la ntuple).
  - Set up the fDataMap array to link these member variables to
    global analyzer variables.

 Data members can be simple types (Double_t etc.) and any ROOT objects
 capable of object I/O (i.e. with a valid Streamer() class).
 For any data members other than simple types defined in fDataMap,
 the Fill() method has to be extended accordingly.


Function Members (Methods)

public:
THaEventHeader()
THaEventHeader(const THaEventHeader&)
virtual~THaEventHeader()
static TClass*Class()
Int_tGetEvtLen() const
UInt_tGetEvtNum() const
ULong64_tGetEvtTime() const
Int_tGetEvtType() const
Int_tGetHelicity() const
Int_tGetRun() const
Int_tGetTargetPol() const
virtual TClass*IsA() const
THaEventHeader&operator=(const THaEventHeader&)
voidSet(UInt_t num, Int_t type, Int_t len, Double_t time, Int_t hel, Int_t run)
voidSet(UInt_t num, Int_t type, Int_t len, ULong64_t time, Int_t hel, Int_t pol, Int_t run)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)

Data Members

private:
Int_tfEvtLenEvent length
UInt_tfEvtNumEvent number
ULong64_tfEvtTimeEvent time stamp
Int_tfEvtTypeEvent type
Int_tfHelicityBeam helicity
Int_tfRunRun number
Int_tfTargetPolTarget polarization

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

THaEventHeader()
{}
virtual ~THaEventHeader()
{}
void Set(UInt_t num, Int_t type, Int_t len, ULong64_t time, Int_t hel, Int_t pol, Int_t run)
void Set(UInt_t num, Int_t type, Int_t len, Double_t time, Int_t hel, Int_t run)
 Old Set() for backwards compatibility
UInt_t GetEvtNum() const
{ return fEvtNum; }
Int_t GetEvtType() const
{ return fEvtType; }
Int_t GetEvtLen() const
{ return fEvtLen; }
ULong64_t GetEvtTime() const
{ return fEvtTime; }
Int_t GetHelicity() const
{ return fHelicity; }
Int_t GetTargetPol() const
{ return fTargetPol; }
Int_t GetRun() const
{ return fRun; }