1 void RunTriggerSimu(
int nevents = 1000000,
3 const char* indir =
"root://xrdstar.rcf.bnl.gov:1095//home/starreco/reco/pp500_production_2012/ReversedFullField/P13ib/2012/078/13078014/st_physics_13078014_raw_1020001.MuDst.root"
8 gROOT->Macro(
"loadMuDst.C");
9 gROOT->Macro(
"LoadLogger.C");
11 gSystem->Load(
"StDetectorDbMaker");
12 gSystem->Load(
"StDaqLib");
13 gSystem->Load(
"StEmcRawMaker");
14 gSystem->Load(
"StEmcADCtoEMaker");
15 gSystem->Load(
"StDbBroker");
16 gSystem->Load(
"St_db_Maker");
17 gSystem->Load(
"StEEmcUtil");
18 gSystem->Load(
"StEEmcDbMaker");
19 gSystem->Load(
"StEmcTriggerMaker");
20 gSystem->Load(
"StTriggerUtilities");
21 gSystem->Load(
"StTriggerFilterMaker");
41 simuTrig->useOfflineDB();
42 simuTrig->setMC(
false);
50 simuTrig->bemc->setConfig(StBemcTriggerSimu::kOnline);
64 for(
int iEvent = 0; iEvent < nevents; iEvent++)
67 int status = chain->
Make(iEvent);
70 std::cout<<
"trigger simulator: JP0 fired = "<< simuTrig->isTrigger(380401) <<endl;
virtual void Clear(Option_t *option="")
User defined functions.
void saveAllStEvent(Bool_t a)
Set to kTRUE if all hits are to be saved on StEvent.