12 #include "StTriggerSimuMaker.h"
15 #include "StTriggerSimuMaker.h"
16 #include "StBbcTriggerSimu.h"
17 #include "StBemcTriggerSimu.h"
18 #include "StL2TriggerSimu.h"
19 #include "StTriggerSimuPlayMaker.h"
30 StTriggerSimuPlayMaker::~StTriggerSimuPlayMaker(){
36 StTriggerSimuPlayMaker::initHistoA(TString core) {
37 LOG_INFO <<Form(
"initHistoA(), mConfig=%d",mConfig)<<endm;
41 memset(hA,0,
sizeof(hA));
44 hA[1]=
new TH1F(core+
"trgID",
"event counter for Jan",10,1,11);
50 if( hA[i]==0)
continue;
57 StTriggerSimuPlayMaker::Init() {
58 LOG_INFO <<Form(
"Init(), mConfig=%d",mConfig)<<endm;
61 return StMaker::Init();
66 StTriggerSimuPlayMaker::Clear(
const Option_t*){
67 LOG_DEBUG<<
"StTriggerSimuPlayMaker::Clear()"<<endm;
75 if(mConfig==100) janTest100();
92 StTriggerSimuPlayMaker::janTest100(){
95 printf(
"%s:JanTest100()\n",
GetName());
101 int dec=trgSimMk->isTrigger(trigID);
102 printf(
"trigID=%d final decision=%d ,",trigID,dec);
103 if(trgSimMk->bbc) printf(
"L0-BBC decision==%d ,",trgSimMk->bbc->
triggerDecision(trigID));
104 if(trgSimMk->bemc) printf(
"L0-BEMC decision=%d ,",trgSimMk->bemc->
triggerDecision(trigID));
105 if(trgSimMk->lTwo) printf(
"L2 decision=%d ",trgSimMk->lTwo->
triggerDecision(trigID));
StTriggerSimuDecision triggerDecision(int trigId)
like isTrigger(), but returns kDoNotCare if detector isn't a part of the given trigId ...
StTriggerSimuDecision triggerDecision(int trigId)
like isTrigger(), but returns kDoNotCare if detector isn't a part of the given trigId ...
virtual const char * GetName() const
special overload
StTriggerSimuDecision triggerDecision(int trigId)
like isTrigger(), but returns kDoNotCare if detector isn't a part of the given trigId ...