11 #include "StTriggerUtilities/StTriggerSimuMaker.h"
12 #include "StTriggerUtilities/Emc/StEmcTriggerSimu.h"
13 #include "StTriggerUtilities/Bemc/StBemcTriggerSimu.h"
14 #include "StTriggerUtilities/Eemc/StEemcTriggerSimu.h"
15 #include "StEmcTriggerMaker/StEmcTriggerMaker.h"
18 #include "StBfcTriggerFilterMaker.h"
22 int StBfcTriggerFilterMaker::Init()
25 SetAttr(
".Privilege",1);
28 LOG_INFO << Form(
"MASK: BHT0=%d BHT1=%d BHT2=%d BHT3=%d EHT0=%d EHT1=%d JP1=%d JP2=%d BJP1=%d BJP2=%d EJP1=%d EJP2=%d AJP=%d BAJP=%d EAJP=%d JP0=%d",
44 mMask.test(15)) << endm;
48 copy(mTriggers.begin(),mTriggers.end(),ostream_iterator<int>(os,
" "));
49 LOG_INFO <<
"Triggers: " << os.str() << endm;
62 ostream& operator()(
int trigId)
const {
return out << trigId <<
"(" << emcTrig->
isTrigger(trigId) <<
") "; }
67 if (mOkAllEvents )
return kStOk ;
68 if (mSkipAllEvents)
return kStSkip;
70 const TDatime& datime = GetDBTime();
72 LOG_INFO <<
"DB Time = " << datime.AsSQLString() << endm;
74 if (datime.GetYear() < 2009) {
77 LOG_ERROR <<
"Missing StEmcTriggerMaker" << endm;
83 for_each(mTriggers.begin(),mTriggers.end(),
PrintTrigger(os,emcTrig));
84 LOG_INFO <<
"Triggers: " << os.str() << endm;
87 return os.str().find(
"(1)") != string::npos ?
kStOk :
kStSkip;
93 LOG_ERROR <<
"Missing StTriggerSimuMaker" << endm;
98 bitset<16> emc(trgsim->emc->EM201output());
107 void StBfcTriggerFilterMaker::changeJPThresh(
int dsm)
110 trgsim->changeJPThresh(dsm);
int isTrigger(int trigId)
1==Yes,0==No,-1==Don't Know. Same convention holds for other methods where appropriate.