00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #include "StEventInfo.h"
00030 #include "tables/St_event_header_Table.h"
00031
00032 static const char rcsid[] = "$Id: StEventInfo.cxx,v 2.5 2009/11/23 16:34:06 fisyak Exp $";
00033
00034 ClassImp(StEventInfo)
00035
00036 StEventInfo::StEventInfo()
00037 {
00038 mRunId = 0;
00039 mId = 0;
00040 mTime = 0;
00041 mTriggerMask = 0;
00042 mBunchCrossingNumber[0] = 0;
00043 mBunchCrossingNumber[1] = 0;
00044 mEventSize = 0;
00045 }
00046 StEventInfo::~StEventInfo() { }
00047
00048 const TString&
00049 StEventInfo::type() const { return mType; }
00050
00051 int
00052 StEventInfo::id() const { return mId; }
00053
00054 int
00055 StEventInfo::runId() const { return mRunId; }
00056
00057 int
00058 StEventInfo::time() const { return mTime; }
00059
00060 unsigned int
00061 StEventInfo::triggerMask() const { return mTriggerMask; }
00062
00063 unsigned int
00064 StEventInfo::bunchCrossingNumber(unsigned int i) const
00065 {
00066 return i<2 ? mBunchCrossingNumber[i] : 0;
00067 }
00068
00069 unsigned int
00070 StEventInfo::eventSize() const { return mEventSize; }
00071
00072 void
00073 StEventInfo::setType(const char* val) { mType = val; }
00074
00075 void
00076 StEventInfo::setRunId(int val) { mRunId = val; }
00077
00078 void
00079 StEventInfo::setId(int val) { mId = val; }
00080
00081 void
00082 StEventInfo::setTime(int val) { mTime = val; }
00083
00084 void
00085 StEventInfo::setTriggerMask(unsigned int val) { mTriggerMask = val; }
00086
00087 void
00088 StEventInfo::setBunchCrossingNumber(unsigned int val, unsigned int i)
00089 {
00090 if (i<2) mBunchCrossingNumber[i] = val;
00091 }
00092
00093 void
00094 StEventInfo::setEventSize(unsigned int val) { mEventSize = val; }