7 void RunTriggerStudyMaker(
int nevents=10,
8 const char* file =
"test.list",
9 const char* outfile =
"triggerstudy.root",
11 const char* dir =
"./",
12 const char *filter =
"",
13 const char* outPath =
"./")
15 cout <<
"MuDst chain file:\t"<<file<<endl;
17 gROOT->Macro(
"LoadLogger.C");
18 gROOT->Macro(
"loadMuDst.C");
19 gSystem->Load(
"StDaqLib");
20 gSystem->Load(
"StDbBroker");
21 gSystem->Load(
"StDetectorDbMaker");
22 gSystem->Load(
"St_db_Maker");
23 gSystem->Load(
"StEEmcUtil");
24 gSystem->Load(
"StEEmcDbMaker");
25 gSystem->Load(
"StTriggerFilterMaker");
26 gSystem->Load(
"StEmcRawMaker");
27 gSystem->Load(
"StEmcADCtoEMaker");
28 gSystem->Load(
"StTriggerUtilities");
29 gSystem->Load(
"StTriggerStudyMaker");
32 double pi = atan(1.0)*4.0;
33 cout <<
" loading done " << endl;
55 trigsim->bemc->setConfig(StBemcTriggerSimu::kOffline);
58 simL2Mk->setSetupPath(
"/afs/rhic.bnl.gov/star/users/kocolosk/public/StarTrigSimuSetup/");
59 simL2Mk->setOutPath(outPath);
60 trigsim->useL2(simL2Mk);
70 for (Int_t iev=0;iev<nevents; iev++) {
77 int iret = chain->
Make(iev);
81 cout <<
"Bad return code!" <<iret<< endl;
88 cout <<
"****************************************** " << endl;
89 cout <<
"total number of events " << total << endl;
90 cout <<
"****************************************** " << endl;
virtual void Clear(Option_t *option="")
User defined functions.
static void setLevel(unsigned int level)
sets the debug level