13 void StHbtExample_McEvent(Int_t nevents=1,
14 const char *MainFile=
"/disk00001/star/auau200/venus412/default/b0_3/year_1b/hadronic_on/tfs_4/set0364_01_35evts.geant.root")
18 gSystem->Load(
"St_base");
19 gSystem->Load(
"StChain");
20 gSystem->Load(
"St_Tables");
21 gSystem->Load(
"StUtilities");
22 gSystem->Load(
"StAnalysisUtilities");
23 gSystem->Load(
"StMagF");
24 gSystem->Load(
"StIOMaker");
25 gSystem->Load(
"StarClassLibrary");
26 gSystem->Load(
"StEvent");
27 gSystem->Load(
"StEventMaker");
28 gSystem->Load(
"StMcEvent");
29 gSystem->Load(
"StMcEventMaker");
30 gSystem->Load(
"StHbtMaker");
31 gSystem->Load(
"StV0MiniDstMaker");
33 cout <<
"Dynamic loading done" << endl;
46 ioMaker->SetBranch(
"*",0,
"0");
48 ioMaker->SetBranch(
"geantBranch",0,
"r");
54 cout <<
"Just instantiated StMcEventMaker... lets go StHbtMaker!" << endl;
65 cout <<
"StHbtMaker instantiated"<<endl;
70 cout <<
"StHbtMaker::Init - setting up Reader and Analyses..." << endl;
79 Reader->SetTheMcEventMaker(mcEventMaker);
85 TheManager->SetEventReader(Reader);
87 cout <<
"READER SET UP.... " << endl;
102 evcut->SetEventMult(0,100000);
103 evcut->SetVertZPos(-35.0,35.0);
104 anal->SetEventCut(evcut);
107 trkcut->SetNSigmaPion(-0.5,0.5);
108 trkcut->SetNSigmaKaon(-1000.0,1000.0);
109 trkcut->SetNSigmaProton(-1000.0,1000.0);
110 trkcut->SetNHits(5,50);
111 trkcut->SetPt(0.1,1.0);
112 trkcut->SetRapidity(-1.0,1.0);
113 trkcut->SetDCA(0.0,0.5);
114 trkcut->SetCharge(-1);
115 trkcut->SetMass(0.139);
116 anal->SetFirstParticleCut(trkcut);
117 anal->SetSecondParticleCut(trkcut);
120 anal->SetPairCut(paircut);
122 anal->SetNumEventsToMix(5);
126 anal->AddCorrFctn(QinvCF);
129 anal->AddCorrFctn(QvecCF);
134 TheManager->AddAnalysis(anal);
146 phiEvcut->SetEventMult(0,100000);
147 phiEvcut->SetVertZPos(-35.0,35.0);
148 phiAnal->SetEventCut(phiEvcut);
151 kaonTrkcut->SetNSigmaPion(-1000,1000.0);
152 kaonTrkcut->SetNSigmaKaon(-3.0,3.0);
153 kaonTrkcut->SetNSigmaProton(-1000.,1000.0);
154 kaonTrkcut->SetNHits(0,50);
155 kaonTrkcut->SetPt(0.1,2.0);
156 kaonTrkcut->SetRapidity(-2.0,2.0);
157 kaonTrkcut->SetDCA(0.0,0.5);
158 kaonTrkcut->SetCharge(+1);
159 kaonTrkcut->SetMass(0.494);
160 phiAnal->SetFirstParticleCut(kaonTrkcut);
162 antikaonTrkcut->SetNSigmaPion(-1000.0,1000.0);
163 antikaonTrkcut->SetNSigmaKaon(-3.0,3.0);
164 antikaonTrkcut->SetNSigmaProton(-1000.0,1000.0);
165 antikaonTrkcut->SetNHits(0,50);
166 antikaonTrkcut->SetPt(0.1,2.0);
167 antikaonTrkcut->SetRapidity(-2.0,2.0);
168 antikaonTrkcut->SetDCA(0.0,0.5);
169 antikaonTrkcut->SetCharge(-1);
170 antikaonTrkcut->SetMass(0.494);
171 phiAnal->SetSecondParticleCut(antikaonTrkcut);
174 phiAnal->SetPairCut(phiPaircut);
176 phiAnal->SetNumEventsToMix(5);
178 MinvCF =
new MinvCorrFctn(
"franksMinvCF",100,0.98,1.18);
179 phiAnal->AddCorrFctn(MinvCF);
182 TheManager->AddAnalysis(phiAnal);
192 cout <<
"Initialization failed \n";
200 EventLoop:
if (iev <= nevents && !istat) {
201 cout <<
"StHbtExample -- Working on eventNumber " << iev <<
" of " << nevents << endl;
203 istat = chain->
Make(iev);
204 if (istat) {cout <<
"Last event processed. Status = " << istat << endl;}
205 iev++;
goto EventLoop;
221 cout <<
"StHbtExample -- Done with event loop" << endl;
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...