91 void StMcEventReadMacro(Int_t nevents=100,
92 const char *MainFile=
"/star/data19/reco/pp200/pythia6_203/default/minbias/y2004a/gheisha_on/trs_ii/rcf1210_95_4255evts.geant.root")
95 gSystem->Load(
"St_base");
96 gSystem->Load(
"StChain");
97 gSystem->Load(
"St_Tables");
98 gSystem->Load(
"StUtilities");
99 gSystem->Load(
"StIOMaker");
100 gSystem->Load(
"StarClassLibrary");
101 gSystem->Load(
"StDetectorDbMaker");
102 gSystem->Load(
"StTpcDb");
103 gSystem->Load(
"StEvent");
104 gSystem->Load(
"StEmcUtil");
105 gSystem->Load(
"StMcEvent");
106 gSystem->Load(
"StMcEventMaker");
109 chain =
new StChain(
"StMcEventMainChain");
116 IOMk->SetBranch(
"*",0,
"0");
117 IOMk->SetBranch(
"geantBranch",0,
"r");
118 IOMk->SetBranch(
"dstBranch",0,
"r");
123 mcEventReader->doPrintEventInfo =
true;
125 mcEventReader->doUseTpc =
true;
126 mcEventReader->doUseSvt =
true;
127 mcEventReader->doUseFtpc =
true;
128 mcEventReader->doUseRich =
true;
129 mcEventReader->doUseBemc =
true;
130 mcEventReader->doUseBsmd =
true;
131 mcEventReader->SetDebug();
135 Int_t initStat = chain->Init();
136 if (initStat) chain->Fatal(initStat,
"during Init()");
139 EventLoop:
if (iev<=nevents && istat!=2) {
141 cout <<
"---------------------- Processing Event : " << iev <<
" ----------------------" << endl;
142 istat = chain->
Make(iev);
143 if (istat == 2) { cout <<
"Last Event Processed. Status = " << istat << endl; }
144 if (istat == 3) { cout <<
"Error Event Processed. Status = " << istat << endl; }
145 iev++;
goto EventLoop;
virtual void SetIOMode(Option_t *iomode="w")
number of transactions
virtual void Clear(Option_t *option="")
User defined functions.
Filling of all StMcEvent classes from g2t tables Transform all the data in the g2t tables into the co...
Bool_t doPrintMemoryInfo
lots of screen output