1 enum dataFormat {dst, evt};
18 const char *venusFile =
"set*geant.root";
19 const char *venusPath =
"/disk00001/star/auau200/venus412/default/b0_3/year_1b/hadronic_on/tfs_4/";
20 const char *dstFile =
"/disk00001/star/auau200/two_photon/starlight/twogam/year_1b/hadronic_on/tfs/ric0022_01_14552evts.dst.root";
21 const char *xdfFile =
"/afs/rhic.bnl.gov/star/data/samples/psc0054_07_40evts_dst.xdf";
22 const char *mdcFile =
"/disk00001/star/auau200/venus412/default/b0_3/year_1b/hadronic_on/tss/psc0081_07_40evts.root";
23 const char *geantFile =
"/disk00000/star/auau200/hijing135/jetq_off/b0_3/year_1b/hadronic_on/tfsr/set0041_01_53evts.geant.root";
24 const char *fileList[] = {dstFile,xdfFile,mdcFile,0};
27 for (
int i=0; i<n*1e6; i++) { }
29 void mess(
const char* c=
"alive") {
30 for (
int i=0; i<10; i++) { cout << c << endl; }
35 void StHbtExampleQQ(
const dataFormat format,
const Int_t nevents,
const Char_t **fileList,
const Char_t*,
const Char_t* );
40 void StHbtMicroDstMaker(
const dataFormat format,
41 const Int_t nevents=9999,
42 const Char_t *path=venusPath,
43 const Char_t *file=venusFile,
44 const Char_t* outDir=
"/star/rcf/pwg/hbt/Laue/Test/SL00hg/",
45 const Char_t* outFile=
"dummy",
46 const Char_t* appendix=
"test.microDst")
48 const char *fileListQQ[]={0,0};
52 fileListQQ[0] = gSystem->ConcatFileName(path,file);
54 StHbtExampleQQ(format,nevents,fileListQQ,outDir,outFile);
58 void StHbtExampleQQ(
const dataFormat format,
const Int_t nevents,
const Char_t **fileList,
const Char_t* dirName,
const Char_t* fileName)
62 gSystem->Load(
"StarRoot");
63 gSystem->Load(
"St_base");
64 gSystem->Load(
"StChain");
65 gSystem->Load(
"St_Tables");
66 gSystem->Load(
"StMagF");
67 gSystem->Load(
"StUtilities");
68 gSystem->Load(
"StTreeMaker");
69 gSystem->Load(
"StIOMaker");
70 gSystem->Load(
"StarClassLibrary");
71 gSystem->Load(
"xdf2root");
72 gSystem->Load(
"St_xdfin_Maker");
73 gSystem->Load(
"StEvent");
74 gSystem->Load(
"StEventMaker");
75 gSystem->Load(
"StEventUtilities");
76 gSystem->Load(
"StMcEvent");
77 gSystem->Load(
"StMcEventMaker");
78 gSystem->Load(
"StAssociationMaker");
79 gSystem->Load(
"StMcAnalysisMaker");
80 gSystem->Load(
"StStrangeMuDstMaker");
81 gSystem->Load(
"StHbtMaker");
84 cout <<
" loading done " << endl;
91 for (
int ifil=0; fileList[ifil]; ifil++)
92 setFiles->AddFile(fileList[ifil]);
107 ioMaker->SetBranch(
"*",0,
"0");
112 cout <<
"Just instantiated StHbtTagReader... lets go StHbtMaker!" << endl;
121 ioMaker->SetBranch(
"dstBranch",0,
"r");
122 cout <<
" dst" << endl;
124 else if(format==evt) {
126 ioMaker->SetBranch(
"eventBranch",0,
"r");
127 cout <<
" evt" << endl;
130 cout <<
"Just instantiated StEventMaker... lets go StHbtMaker!" << eventMaker << endl;
139 cout <<
"Just instantiated StStrangeMuDstMaker... lets go StHbt!" << endl;
147 cout <<
"StHbtMaker instantiated"<<endl;
151 cout <<
"StHbtMaker::Init - setting up Reader and Analyses..." << endl;
163 Reader->SetTheEventMaker(eventMaker);
164 Reader->SetTheV0Maker(v0dst);
165 Reader->SetTheTagReader(0);
166 TheManager->SetEventReader(Reader);
168 cout <<
"READER SET UP.... " << endl;
174 EventCut->SetEventMult(0,100000);
175 EventCut->SetVertZPos(-75.0,75.0);
179 AntiTrackCut->SetNSigmaPion(+1,-1.);
182 AllTrackCut->SetNSigmaPion(-1000.0,1000.0);
183 AllTrackCut->SetNSigmaKaon(-1000.0,1000.0);
184 AllTrackCut->SetNSigmaProton(-1000.0,1000.0);
185 AllTrackCut->SetNHits(10,1000);
186 AllTrackCut->SetP(0.0,50.0);
187 AllTrackCut->SetPt(0.0,50.0);
188 AllTrackCut->SetRapidity(-15,15);
189 AllTrackCut->SetDCA(0.0,200.);
190 AllTrackCut->SetCharge(0);
191 AllTrackCut->SetMass(0.139);
194 PionTrackCut->SetNSigmaPion(-3.0,+3.);
195 PionTrackCut->SetNSigmaKaon(-1000.0,1000.0);
196 PionTrackCut->SetNSigmaProton(-1000.0,1000.0);
197 PionTrackCut->SetNHits(10,1000);
198 PionTrackCut->SetP(0.0,5.0);
199 PionTrackCut->SetPt(0.0,5.0);
200 PionTrackCut->SetRapidity(-1.5,1.5);
201 PionTrackCut->SetDCA(0.0,2.);
202 PionTrackCut->SetCharge(0);
203 PionTrackCut->SetMass(0.139);
206 PionPlusTrackCut->SetNSigmaPion(-3.0,+3.);
207 PionPlusTrackCut->SetNSigmaKaon(-1000.0,1000.0);
208 PionPlusTrackCut->SetNSigmaProton(-1000.0,1000.0);
209 PionPlusTrackCut->SetNHits(10,1000);
210 PionPlusTrackCut->SetP(0.0,5.0);
211 PionPlusTrackCut->SetPt(0.0,5.0);
212 PionPlusTrackCut->SetRapidity(-1.5,1.5);
213 PionPlusTrackCut->SetDCA(0.0,2.);
214 PionPlusTrackCut->SetCharge(+1);
215 PionPlusTrackCut->SetMass(0.139);
219 KaonTrackCut->SetNSigmaKaon(-3.,3.);
221 KaonTrackCut->SetNHits(10,1000);
222 KaonTrackCut->SetP(0.0,2.0);
223 KaonTrackCut->SetPt(0.0,2.0);
224 KaonTrackCut->SetRapidity(-1.5,1.5);
225 KaonTrackCut->SetDCA(0.0,3.);
226 KaonTrackCut->SetCharge(0);
227 KaonTrackCut->SetMass(0.494);
230 KaonMinusTrackCut->SetNSigmaPion(-1000.0,1000.0);
231 KaonMinusTrackCut->SetNSigmaKaon(-3.,3.);
232 KaonMinusTrackCut->SetNSigmaProton(-1000.0,1000.0);
233 KaonMinusTrackCut->SetNHits(10,1000);
234 KaonMinusTrackCut->SetP(0.0,5.0);
235 KaonMinusTrackCut->SetPt(0.0,5.0);
236 KaonMinusTrackCut->SetRapidity(-1.5,1.5);
237 KaonMinusTrackCut->SetDCA(0.0,2.);
238 KaonMinusTrackCut->SetCharge(-1);
239 KaonMinusTrackCut->SetMass(0.494);
242 ProtonTrackCut->SetNSigmaPion(-1000.0,1000.0);
243 ProtonTrackCut->SetNSigmaKaon(-1000.,1000.);
244 ProtonTrackCut->SetNSigmaProton(-3.0,3.0);
245 ProtonTrackCut->SetNHits(10,1000);
246 ProtonTrackCut->SetP(0.0,5.0);
247 ProtonTrackCut->SetPt(0.0,5.0);
248 ProtonTrackCut->SetRapidity(-1.5,1.5);
249 ProtonTrackCut->SetDCA(0.0,2.);
250 ProtonTrackCut->SetCharge(0);
251 ProtonTrackCut->SetMass(0.938);
255 AntiV0Cut->SetV0Type(
"blabla");
256 AntiV0Cut->SetPt(+1,-1);
259 LambdaCut->SetV0Type(
"lambda");
260 LambdaCut->SetV0MassRange(1.105,1.125);
261 LambdaCut->SetdcaV0daughters(0.,1.0);
262 LambdaCut->SetdcaV0ToPrimVertex(0.,1.);
263 LambdaCut->SetdecayLengthV0(3.0,5000.);
264 LambdaCut->SettpcHitsPos(10,50);
265 LambdaCut->SettpcHitsNeg(10,50);
266 LambdaCut->SetdcaPosToPrimVertex(1.8,50.);
267 LambdaCut->SetdcaNegToPrimVertex(3.5,50.);
268 LambdaCut->SetptArmV0(0.,0.25);
269 LambdaCut->SetalphaV0(0.0,1.);
270 LambdaCut->SetPt(0.,10.0);
271 LambdaCut->SetRapidity(-50.0,50.0);
272 LambdaCut->SetMass(1.11567);
275 K0Cut->SetV0Type(
"K0");
276 K0Cut->SetV0MassRange(.05,.05);
277 K0Cut->SetdcaV0daughters(0.,0.5);
278 K0Cut->SetdcaV0ToPrimVertex(0.,.5);
279 K0Cut->SetdecayLengthV0(4.0,2000.);
280 K0Cut->SetdecayLengthV0(2.676*1.,2.676*5.);
281 K0Cut->SettpcHitsPos(0,1000);
282 K0Cut->SettpcHitsNeg(0,1000);
283 K0Cut->SetdcaPosToPrimVertex(0.2,1000.);
284 K0Cut->SetdcaNegToPrimVertex(0.2,1000.);
285 K0Cut->SetptArmV0(0.1,0.25);
286 K0Cut->SetalphaV0(-1.,1.);
287 K0Cut->SetptArmV0(-100.,+100.);
288 K0Cut->SetalphaV0(-100.,+100.);
289 K0Cut->SetPt(0.1,2.0);
290 K0Cut->SetRapidity(-50.0,50.0);
291 K0Cut->SetMass(0.49762);
299 TheManager->AddEventWriter(allWriter);
300 allWriter->SetEventCut(EventCut);
301 allWriter->SetTrackCut(AllTrackCut);
302 allWriter->SetV0Cut(AntiV0Cut);
303 cout <<
"WRITER SET UP.... " << endl;
378 for (Int_t iev=0;iev<nevents; iev++) {
379 cout <<
"StHbtExample -- Working on eventNumber " << iev << endl;
381 int iret = chain->
Make(iev);
383 cout <<
"Bad return code!" << endl;
389 cout <<
" End of Analysis " << endl;
virtual void SetIOMode(Option_t *iomode="w")
number of transactions
virtual void Clear(Option_t *option="")
User defined functions.