29 #include "StEventInfo.h"
30 #include "tables/St_event_header_Table.h"
32 static const char rcsid[] =
"$Id: StEventInfo.cxx,v 2.5 2009/11/23 16:34:06 fisyak Exp $";
42 mBunchCrossingNumber[0] = 0;
43 mBunchCrossingNumber[1] = 0;
46 StEventInfo::~StEventInfo() { }
49 StEventInfo::type()
const {
return mType; }
52 StEventInfo::id()
const {
return mId; }
55 StEventInfo::runId()
const {
return mRunId; }
58 StEventInfo::time()
const {
return mTime; }
61 StEventInfo::triggerMask()
const {
return mTriggerMask; }
64 StEventInfo::bunchCrossingNumber(
unsigned int i)
const
66 return i<2 ? mBunchCrossingNumber[i] : 0;
70 StEventInfo::eventSize()
const {
return mEventSize; }
73 StEventInfo::setType(
const char* val) { mType = val; }
76 StEventInfo::setRunId(
int val) { mRunId = val; }
79 StEventInfo::setId(
int val) { mId = val; }
82 StEventInfo::setTime(
int val) { mTime = val; }
85 StEventInfo::setTriggerMask(
unsigned int val) { mTriggerMask = val; }
88 StEventInfo::setBunchCrossingNumber(
unsigned int val,
unsigned int i)
90 if (i<2) mBunchCrossingNumber[i] = val;
94 StEventInfo::setEventSize(
unsigned int val) { mEventSize = val; }