54 void StHbtExample(Int_t nevents=1,
56 "/afs/rhic.bnl.gov/star/data/samples/gstar.dst.root")
60 gSystem->Load(
"St_base");
61 gSystem->Load(
"StChain");
62 gSystem->Load(
"libglobal_Tables");
63 gSystem->Load(
"libsim_Tables");
64 gSystem->Load(
"libgen_Tables");
65 gSystem->Load(
"StUtilities");
66 gSystem->Load(
"StAnalysisUtilities");
67 gSystem->Load(
"StarMagField");
68 gSystem->Load(
"StMagF");
69 gSystem->Load(
"StIOMaker");
70 gSystem->Load(
"StarClassLibrary");
71 gSystem->Load(
"StEvent");
72 gSystem->Load(
"StEventMaker");
73 gSystem->Load(
"StHbtMaker");
74 gSystem->Load(
"StV0MiniDstMaker");
76 cout <<
"Dynamic loading done" << endl;
89 ioMaker->SetBranch(
"*",0,
"0");
90 ioMaker->SetBranch(
"dstBranch",0,
"r");
91 ioMaker->SetBranch(
"runcoBranch",0,
"r");
95 cout <<
"Just instantiated StEventMaker... lets go StHbtMaker!" << endl;
106 cout <<
"StHbtMaker instantiated"<<endl;
111 cout <<
"StHbtMaker::Init - setting up Reader and Analyses..." << endl;
118 Reader->SetTheEventMaker(eventMaker);
124 TheManager->SetEventReader(Reader);
126 cout <<
"READER SET UP.... " << endl;
141 evcut->SetEventMult(0,10000);
142 evcut->SetVertZPos(-35.0,35.0);
143 anal->SetEventCut(evcut);
146 trkcut->SetNSigmaPion(-1.5,1.5);
147 trkcut->SetNSigmaKaon(-1000.0,1000.0);
148 trkcut->SetNSigmaProton(-1000.0,1000.0);
149 trkcut->SetNHits(5,50);
150 trkcut->SetPt(0.1,1.0);
151 trkcut->SetRapidity(-1.0,1.0);
152 trkcut->SetDCA(0.0,0.5);
153 trkcut->SetCharge(-1);
154 trkcut->SetMass(0.139);
155 anal->SetFirstParticleCut(trkcut);
156 anal->SetSecondParticleCut(trkcut);
159 anal->SetPairCut(paircut);
161 anal->SetNumEventsToMix(5);
165 anal->AddCorrFctn(QinvCF);
168 anal->AddCorrFctn(QvecCF);
173 TheManager->AddAnalysis(anal);
185 phiEvcut->SetEventMult(0,10000);
186 phiEvcut->SetVertZPos(-35.0,35.0);
187 phiAnal->SetEventCut(phiEvcut);
190 kaonTrkcut->SetNSigmaPion(3,1000.0);
191 kaonTrkcut->SetNSigmaKaon(-3.0,3.0);
192 kaonTrkcut->SetNSigmaProton(-1000.,-1.0);
193 kaonTrkcut->SetNHits(0,50);
194 kaonTrkcut->SetPt(0.1,2.0);
195 kaonTrkcut->SetRapidity(-2.0,2.0);
196 kaonTrkcut->SetDCA(0.0,0.5);
197 kaonTrkcut->SetCharge(+1);
198 kaonTrkcut->SetMass(0.494);
199 phiAnal->SetFirstParticleCut(kaonTrkcut);
201 antikaonTrkcut->SetNSigmaPion(3.0,1000.0);
202 antikaonTrkcut->SetNSigmaKaon(-3.0,3.0);
203 antikaonTrkcut->SetNSigmaProton(-1000.0,-1.0);
204 antikaonTrkcut->SetNHits(0,50);
205 antikaonTrkcut->SetPt(0.1,2.0);
206 antikaonTrkcut->SetRapidity(-2.0,2.0);
207 antikaonTrkcut->SetDCA(0.0,0.5);
208 antikaonTrkcut->SetCharge(-1);
209 antikaonTrkcut->SetMass(0.494);
210 phiAnal->SetSecondParticleCut(antikaonTrkcut);
213 phiAnal->SetPairCut(phiPaircut);
215 phiAnal->SetNumEventsToMix(5);
217 MinvCF =
new MinvCorrFctn(
"franksMinvCF",100,0.98,1.18);
218 phiAnal->AddCorrFctn(MinvCF);
221 TheManager->AddAnalysis(phiAnal);
231 cout <<
"Initialization failed \n";
239 EventLoop:
if (iev <= nevents && !istat) {
240 cout <<
"StHbtExample -- Working on eventNumber " << iev <<
" of " << nevents << endl;
242 istat = chain->
Make(iev);
243 if (istat) {cout <<
"Last event processed. Status = " << istat << endl;}
244 iev++;
goto EventLoop;
260 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.