10 #include "StMuDSTMaker/COMMON/StMuDst.h"
11 #include "StMuDSTMaker/COMMON/StMuEvent.h"
13 #include "StTrigCounter.h"
44 if( event && event->triggerIdCollection().nominal().isTrigger(
mTrigID ) ){
47 UInt_t bbcOnlineTimeDiff =
event->bbcTriggerDetector().onlineTimeDifference()/32;
48 if( bbcOnlineTimeDiff >= 6 && bbcOnlineTimeDiff <= 10 )
62 cout <<
"status: event " << GetEventNumber() <<
", counts for trigger ID " <<
mTrigID <<
" are " << mNumEventsInCut <<
" and " << mNumEvents << endl;
67 cout <<
"RESULT: Counts for trigger ID " <<
mTrigID <<
" are " << mNumEventsInCut <<
" and " << mNumEvents << endl;
78 Int_t StTrigCounter::getNumEventsTot()
const {
82 Int_t StTrigCounter::getNumEventsInCut()
const {
83 return mNumEventsInCut;
Int_t Finish()
Write everything to file.
void printStatus()
monitering status
UInt_t getTrigID() const
get values
void Clear(Option_t *opts="")
Clear for next event.
static StMuEvent * event()
returns pointer to current StMuEvent (class holding the event wise information, e.g. event number, run number)
Int_t Make()
Build an event.
StTrigCounter(const Char_t *myName, Int_t trigID=117001)
constructor
virtual ~StTrigCounter()
deconstructor