BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
Event::EventHeader Class Reference

#include <EventHeader.h>

+ Inheritance diagram for Event::EventHeader:

Public Member Functions

 EventHeader ()
 
virtual ~EventHeader ()
 
virtual const CLID & clID () const
 Retrieve reference to class definition structure.
 
int eventNumber () const
 Retrieve event number.
 
void setEventNumber (int value)
 Update event number.
 
int runNumber () const
 Retrieve run number.
 
void setRunNumber (int value)
 Update run number.
 
unsigned int time () const
 
void setTime (int value)
 
unsigned int eventTag ()
 Retrieve EventTag.
 
void setEventTag (unsigned int value)
 Update EventTag.
 
unsigned int flag1 ()
 Retrieve flags.
 
unsigned int flag2 ()
 
void setFlag1 (unsigned int value)
 Update flags.
 
void setFlag2 (unsigned int value)
 
unsigned long etsT1 ()
 Retrieve ETS.
 
unsigned long rawEtsT1 ()
 
unsigned long etsT2 ()
 
int etsFlag ()
 
void setEtsT1 (unsigned long value)
 Update ETS.
 
void setRawEtsT1 (unsigned long value)
 
void setEtsT2 (unsigned long value)
 
void setEtsFlag (int flag)
 

Static Public Member Functions

static const CLID & classID ()
 

Detailed Description

Definition at line 23 of file EventHeader.h.

Constructor & Destructor Documentation

◆ EventHeader()

Event::EventHeader::EventHeader ( )
inline

Definition at line 27 of file EventHeader.h.

28 : DataObject(), m_event(-1), m_run(-1), m_etsT1(0), m_etsT2(0) {}

◆ ~EventHeader()

virtual Event::EventHeader::~EventHeader ( )
inlinevirtual

Definition at line 30 of file EventHeader.h.

30{}

Member Function Documentation

◆ classID()

static const CLID & Event::EventHeader::classID ( )
inlinestatic

Definition at line 34 of file EventHeader.h.

34{ return CLID_EventHeader; }
const CLID & CLID_EventHeader
Definition: EventModel.cxx:196

Referenced by clID().

◆ clID()

virtual const CLID & Event::EventHeader::clID ( ) const
inlinevirtual

Retrieve reference to class definition structure.

Definition at line 33 of file EventHeader.h.

33{ return EventHeader::classID(); }
static const CLID & classID()
Definition: EventHeader.h:34

◆ etsFlag()

int Event::EventHeader::etsFlag ( )
inline

Definition at line 66 of file EventHeader.h.

66{ return (m_etsT2>>40)&0xFF; }

◆ etsT1()

unsigned long Event::EventHeader::etsT1 ( )
inline

Retrieve ETS.

Definition at line 63 of file EventHeader.h.

63{ return m_etsT1&0x000000FFFFFFFFFF; }

Referenced by EvtHeaderCnv::DataObjectToTObject(), and EtsFixing::fixT1().

◆ etsT2()

unsigned long Event::EventHeader::etsT2 ( )
inline

Definition at line 65 of file EventHeader.h.

65{ return m_etsT2&0x000000FFFFFFFFFF; }

Referenced by EvtHeaderCnv::DataObjectToTObject().

◆ eventNumber()

◆ eventTag()

unsigned int Event::EventHeader::eventTag ( )
inline

Retrieve EventTag.

Definition at line 51 of file EventHeader.h.

51{return m_EventTag; }

Referenced by EvtHeaderCnv::DataObjectToTObject().

◆ flag1()

unsigned int Event::EventHeader::flag1 ( )
inline

Retrieve flags.

Definition at line 56 of file EventHeader.h.

56{ return m_flag1; };

Referenced by EvtHeaderCnv::DataObjectToTObject().

◆ flag2()

unsigned int Event::EventHeader::flag2 ( )
inline

Definition at line 57 of file EventHeader.h.

57{ return m_flag2; };

Referenced by EvtHeaderCnv::DataObjectToTObject().

◆ rawEtsT1()

unsigned long Event::EventHeader::rawEtsT1 ( )
inline

Definition at line 64 of file EventHeader.h.

64{ return ((m_etsT2>>24)&0x000000FFFF000000) | (m_etsT1>>40); }

◆ runNumber()

◆ setEtsFlag()

void Event::EventHeader::setEtsFlag ( int  flag)
inline

Definition at line 72 of file EventHeader.h.

72{ m_etsT2 = (m_etsT2&0xFFFF00FFFFFFFFFF) | (long(flag&0xFF)<<40); }

◆ setEtsT1()

void Event::EventHeader::setEtsT1 ( unsigned long  value)
inline

Update ETS.

Definition at line 69 of file EventHeader.h.

69{ m_etsT1 = (m_etsT1&0xFFFFFF0000000000) | (value&0x000000FFFFFFFFFF); }

Referenced by RawDataEvtHeaderCnv::createObj(), EtsFixing::fixT1(), and EvtHeaderCnv::TObjectToDataObject().

◆ setEtsT2()

void Event::EventHeader::setEtsT2 ( unsigned long  value)
inline

Definition at line 71 of file EventHeader.h.

71{ m_etsT2 = (m_etsT2&0xFFFFFF0000000000) | (value&0x000000FFFFFFFFFF); }

Referenced by RawDataEvtHeaderCnv::createObj(), and EvtHeaderCnv::TObjectToDataObject().

◆ setEventNumber()

void Event::EventHeader::setEventNumber ( int  value)
inline

Update event number.

Definition at line 39 of file EventHeader.h.

39{ m_event = value; }

Referenced by RawDataEvtHeaderCnv::createObj(), McEventCnv::createObj(), WriteRawData::execute(), and EvtHeaderCnv::TObjectToDataObject().

◆ setEventTag()

void Event::EventHeader::setEventTag ( unsigned int  value)
inline

Update EventTag.

Definition at line 53 of file EventHeader.h.

53{ m_EventTag=value;}

Referenced by EvtHeaderCnv::TObjectToDataObject().

◆ setFlag1()

void Event::EventHeader::setFlag1 ( unsigned int  value)
inline

Update flags.

Definition at line 59 of file EventHeader.h.

59{ m_flag1 = value; }

Referenced by RawDataEvtHeaderCnv::createObj(), and EvtHeaderCnv::TObjectToDataObject().

◆ setFlag2()

void Event::EventHeader::setFlag2 ( unsigned int  value)
inline

Definition at line 60 of file EventHeader.h.

60{ m_flag2 = value; }

Referenced by EvtHeaderCnv::TObjectToDataObject().

◆ setRawEtsT1()

void Event::EventHeader::setRawEtsT1 ( unsigned long  value)
inline

Definition at line 99 of file EventHeader.h.

100{
101 m_etsT1 = (m_etsT1&0x000000FFFFFFFFFF) | (value<<40);
102 m_etsT2 = (m_etsT2&0x0000FFFFFFFFFFFF) | ((value>>24)<<48);
103}

Referenced by EtsFixing::fixT1().

◆ setRunNumber()

void Event::EventHeader::setRunNumber ( int  value)
inline

Update run number.

Definition at line 44 of file EventHeader.h.

44{ m_run = value; }

Referenced by RawDataEvtHeaderCnv::createObj(), McEventCnv::createObj(), and EvtHeaderCnv::TObjectToDataObject().

◆ setTime()

void Event::EventHeader::setTime ( int  value)
inline

Definition at line 48 of file EventHeader.h.

48{ m_time = value; }

Referenced by RawDataEvtHeaderCnv::createObj(), and EvtHeaderCnv::TObjectToDataObject().

◆ time()

unsigned int Event::EventHeader::time ( ) const
inline

Definition at line 46 of file EventHeader.h.

46{ return m_time; }

Referenced by EvtHeaderCnv::DataObjectToTObject(), OfflineRevise::fixHeader(), and EtsFixing::fixT1().


The documentation for this class was generated from the following file: