3 void bemcCalibMacro(
const char* name =
"test.root",
4 const char* filelist =
"test.list",
8 gROOT->Macro(
"LoadLogger.C");
9 gROOT->Macro(
"loadMuDst.C");
10 gSystem->Load(
"StarMagField.so");
11 gSystem->Load(
"StMagF");
12 gSystem->Load(
"StDetectorDbMaker");
13 gSystem->Load(
"StTpcDb");
14 gSystem->Load(
"St_db_Maker");
15 gSystem->Load(
"StDbUtilities");
16 gSystem->Load(
"StMcEvent");
17 gSystem->Load(
"StMcEventMaker");
18 gSystem->Load(
"StDaqLib");
19 gSystem->Load(
"StEmcRawMaker");
20 gSystem->Load(
"StEmcADCtoEMaker");
21 gSystem->Load(
"StEpcMaker");
22 gSystem->Load(
"StTriggerUtilities");
23 gSystem->Load(
"StDbBroker");
24 gSystem->Load(
"libgeometry_Tables");
25 gSystem->Load(
"StEEmcUtil");
26 gSystem->Load(
"StEEmcDbMaker");
27 gSystem->Load(
"StEmcOfflineCalibrationMaker");
38 control_table->CutOff[1] = -1;
39 control_table->CutOffType[1] = 0;
40 control_table->DeductPedestal[1] = 2;
47 trigsim->bemc->setConfig(StBemcTriggerSimu::kOffline);
49 TString outfile(name);
54 bemcCalibMaker->addHighTowerTrigger(370501);
55 bemcCalibMaker->addHighTowerTrigger(370511);
56 bemcCalibMaker->addHighTowerTrigger(370531);
57 bemcCalibMaker->addHighTowerTrigger(370521);
58 bemcCalibMaker->addHighTowerTrigger(370522);
64 cout<<
"chain initialized"<<endl;
70 while(i<nEvents && chain->Make()==
kStOk)
73 cout<<
"done with event "<<i;
74 cout<<
"\tcpu: "<<timer.CpuTime()<<
"\treal: "<<timer.RealTime()<<
"\tratio: "<<timer.CpuTime()/timer.RealTime();
84 printf(
"my macro processed %i events in %s",i,name);
85 cout<<
"\tcpu: "<<total.CpuTime()<<
"\treal: "<<total.RealTime()<<
"\tratio: "<<total.CpuTime()/total.RealTime()<<endl;
88 cout <<
"-------------" << endl;
89 cout <<
"(-: Done :-) " << endl;
90 cout <<
"-------------" << endl;
virtual void Clear(Option_t *option="")
User defined functions.
static void PrintMem(std::string prefix="")
virtual void ls(Option_t *option="") const
void useOnlineDB()
Choose DB to access trigger definitions and thresholds.
controlADCtoE_st * getControlTable()
Return Control table (NULL)
void saveAllStEvent(Bool_t a)
Set to kTRUE if all hits are to be saved on StEvent.