4 void SkimPion(
const char* fileList,
const char* fileId=
"Skim.root") {
10 int L2ConfigYear=2006;
16 char *eemcSetupPath=
"/afs/rhic.bnl.gov/star/users/kocolosk/public/StarTrigSimuSetup/";
18 TString outDir=
"./out2/";
20 gROOT->LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
22 loadSharedLibraries();
24 gSystem->Load(
"StDetectorDbMaker");
25 gSystem->Load(
"StDbUtilities");
26 gSystem->Load(
"StDbBroker");
27 gSystem->Load(
"St_db_Maker");
28 gSystem->Load(
"StEEmcUtil");
29 gSystem->Load(
"StEEmcDbMaker");
30 gSystem->Load(
"StarMagField");
31 gSystem->Load(
"geometry");
32 gSystem->Load(
"St_g2t");
33 gSystem->Load(
"St_geant_Maker");
34 gSystem->Load(
"StDaqLib");
35 gSystem->Load(
"StEmcRawMaker");
36 gSystem->Load(
"StEmcADCtoEMaker");
37 gSystem->Load(
"StTriggerUtilities");
38 gSystem->Load(
"StEpcMaker");
40 gSystem->Load(
"StSpinDbMaker");
46 gSystem->Load(
"StEsRelLum");
49 gSystem->Load(
"StSkimPionMaker");
51 gROOT->Macro(
"LoadLogger.C");
52 cout <<
"loading done " << endl;
78 TObjArray* HList =
new TObjArray;
82 simuTrig->setHList(HList);
83 simuTrig->setMC(flagMC);
89 simuTrig->eemc->setSetupPath(eemcSetupPath);
94 simuTrig->bemc->setConfig(bemcConfig);
111 simL2Mk->setSetupPath(eemcSetupPath);
112 simL2Mk->setOutPath(outDir.Data());
113 if (flagMC) simL2Mk->setMC();
115 simuTrig->useL2(simL2Mk);
138 Float_t energySeed = 0.4;
139 Float_t energyAdd = 0.05;
150 Int_t n_event=100000000;
153 cout <<
"Chain initialized, starting up... " << endl;
155 for(Int_t iev=0;iev<n_event; iev++) {
157 cout <<
"****************************************** " << endl;
158 cout <<
"\Processing Event " << iev <<
" of "<< n_event << endl;
159 cout <<
"*************************1***************** " << endl;
164 cout<<
"done with event "<<iev;
165 cout<<
"\tcpu: "<<timer.CpuTime()<<
"\treal: "<<timer.RealTime()<<
"\tratio: "<<timer.CpuTime()/timer.RealTime()<<endl;
167 memory.PrintMem(NULL);
170 int iret = chain->
Make(iev);
175 cout <<
"Bad return code!" << endl;
182 cout <<
"****************************************** " << endl;
183 cout <<
"total number of events " << total << endl;
184 cout <<
"****************************************** " << endl;
void setPrint(Bool_t)
Obsolete function; users can control messages with logger config file.
virtual void Clear(Option_t *option="")
User defined functions.
void setPrint(Bool_t a)
Obsolete function; users can control messages with logger config file.
void SetClusterConditions(char *, Int_t, Float_t, Float_t, Float_t, Bool_t=kFALSE)
this is for background compatibility with the old finder
virtual void ls(Option_t *option="") const
void setPrint(Bool_t a)
Obsolete function; users can control messages with logger config file.