84 void StMiniHijing(Int_t nevents=3,
86 "hijing_b0_3/rcf0147_01*geant.root",
87 const char* outDir =
"./",
89 TString filePrefix=
"rcf")
94 gSystem->Load(
"St_base");
95 gSystem->Load(
"StChain");
97 gSystem->Load(
"St_Tables");
98 gSystem->Load(
"StUtilities");
99 gSystem->Load(
"StIOMaker");
100 gSystem->Load(
"StarClassLibrary");
102 gSystem->Load(
"StDetectorDbMaker");
103 gSystem->Load(
"StTpcDb");
104 gSystem->Load(
"StEvent");
105 gSystem->Load(
"StEventMaker");
106 gSystem->Load(
"StEmcUtil");
107 gSystem->Load(
"StEEmcUtil");
108 gSystem->Load(
"StMcEvent");
109 gSystem->Load(
"StMcEventMaker");
110 gSystem->Load(
"StAssociationMaker");
111 gSystem->Load(
"StMcAnalysisMaker");
113 gSystem->Load(
"StMiniMcEvent");
114 gSystem->Load(
"StMiniMcMaker");
117 chain =
new StChain(
"StChain");
125 ioMaker->SetBranch(
"*",0,
"0");
126 ioMaker->SetBranch(
"geantBranch",0,
"r");
127 ioMaker->SetBranch(
"eventBranch",0,
"r");
157 TString filename = MainFile;
158 int fileBeginIndex = filename.Index(filePrefix,0);
159 filename.Remove(0,fileBeginIndex);
165 krap->setOutDir(outDir);
167 krap->setFileName(filename);
168 krap->setFilePrefix(filePrefix);
174 parameterDB->setXCutTpc(.5);
175 parameterDB->setYCutTpc(.5);
176 parameterDB->setZCutTpc(.5);
177 parameterDB->setReqCommonHitsTpc(commonHits);
179 parameterDB->setRCutFtpc(.3);
180 parameterDB->setPhiCutFtpc(5*(3.1415927/180.0));
181 parameterDB->setReqCommonHitsFtpc(3);
183 parameterDB->setXCutSvt(.08);
184 parameterDB->setYCutSvt(.08);
185 parameterDB->setZCutSvt(.08);
186 parameterDB->setReqCommonHitsSvt(1);
192 Int_t initStat = chain->Init();
193 if (initStat) chain->Fatal(initStat,
"during Init()");
196 EventLoop:
if (iev<=nevents && istat!=2) {
198 cout <<
"---------------------- Processing Event : " << iev <<
" ----------------------" << endl;
199 istat = chain->
Make(iev);
200 if (istat == 2) { cout <<
"Last Event Processed. Status = " << istat << endl; }
201 if (istat == 3) { cout <<
"Error Event Processed. Status = " << istat << endl; }
202 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...