5 void CorrectResolution(Int_t nevents=100)
9 gSystem->Load(
"St_base");
10 gSystem->Load(
"StChain");
11 gSystem->Load(
"St_Tables");
12 gSystem->Load(
"StUtilities");
13 gSystem->Load(
"StAnalysisUtilities");
14 gSystem->Load(
"StMagF");
15 gSystem->Load(
"StIOMaker");
16 gSystem->Load(
"StarClassLibrary");
17 gSystem->Load(
"StEvent");
18 gSystem->Load(
"StEventMaker");
19 gSystem->Load(
"StHbtMaker");
21 cout <<
"Dynamic loading done" << endl;
29 StIOMaker* ioMaker =
new StIOMaker(
"IO",
"r",
"/star/rcf/data07/reco/P00hg/2000/07/st_physics_*dst.root",
"bfcTree");
34 ioMaker->SetBranch(
"*",0,
"0");
35 ioMaker->SetBranch(
"dstBranch",0,
"r");
39 cout <<
"Just instantiated StEventMaker... lets go StHbtMaker!" << endl;
47 cout <<
"StHbtMaker instantiated"<<endl;
51 cout <<
"StHbtMaker::Init - setting up Reader and Analyses..." << endl;
64 Reader->SetTheEventMaker(eventMaker);
69 TheManager->SetEventReader(Reader);
92 FrontLoadedEvcut->SetEventMult(30,100000);
93 FrontLoadedEvcut->SetVertZPos(-75.0,75.0);
94 Reader->SetEventCut(FrontLoadedEvcut);
98 cout <<
"READER SET UP.... " << endl;
105 QinvCF_name =
"Qinvmm3hi";
106 BP_name =
"BPLCMSmm3hi";
116 evcut->SetEventMult(MultLo,MultHi);
117 evcut->SetVertZPos(-75.0,75.0);
118 anal->SetEventCut(evcut);
121 trkcut->SetNSigmaPion(-3.0,3.0);
122 trkcut->SetNSigmaKaon(-1000.0,1000.0);
123 trkcut->SetNSigmaProton(-1000.0,1000.0);
124 trkcut->SetNHits(5,50);
125 trkcut->SetPt(pTLo,pTHi);
126 trkcut->SetRapidity(-0.5,0.5);
127 trkcut->SetDCA(0.0,3.0);
128 trkcut->SetCharge(charge);
129 trkcut->SetMass(0.139);
130 anal->SetFirstParticleCut(trkcut);
131 anal->SetSecondParticleCut(trkcut);
135 qpc->SetQualityCut(-0.5,0.6);
136 MPC->AddPairCut(qpc);
138 espc->SetEntranceSepRange(2.5,2000.0);
139 MPC->AddPairCut(espc);
140 anal->SetPairCut(MPC);
142 anal->SetNumEventsToMix(10);
149 BpLcmsCF->SetCoulombCorrection(cc);
154 smear->SetFractionalPtRes(0.02);
155 smear->SetPhiRes_a(0.00112);
156 smear->SetPhiRes_b(0.000563);
157 smear->SetPhiRes_alpha(-1.51);
158 smear->SetThetaRes_a(0.00136);
159 smear->SetThetaRes_b(0.000776);
160 smear->SetThetaRes_alpha(-1.53);
161 BpLcmsCF->SetSmearPair(smear);
163 BpLcmsCF->SetLambda(0.65);
164 BpLcmsCF->SetRout(4.52);
165 BpLcmsCF->SetRside(5.00);
166 BpLcmsCF->SetRlong(5.43);
169 anal->AddCorrFctn(BpLcmsCF);
171 TheManager->AddAnalysis(anal);
181 cout <<
"Initialization failed \n";
189 EventLoop:
if (iev <= nevents && !istat) {
190 cout <<
"StHbtExample -- Working on eventNumber " << iev <<
" of " << nevents << endl;
192 istat = chain->
Make(iev);
193 if (istat) {cout <<
"Last event processed. Status = " << istat << endl;}
194 iev++;
goto EventLoop;
198 cout <<
"StHbtExample -- Done with event loop" << endl;
204 TFile histoOutput(
"ThreeDHBT.root",
"recreate");
206 for (
int ia=0; ia<1; ia++){
213 bpcf->Numerator()->Write();
214 bpcf->Denominator()->Write();
215 bpcf->Ratio()->Write();
217 bpcf->mIDNumHisto->Write();
218 bpcf->mIDDenHisto->Write();
219 bpcf->mIDRatHisto->Write();
220 bpcf->mSMNumHisto->Write();
221 bpcf->mSMDenHisto->Write();
222 bpcf->mSMRatHisto->Write();
223 bpcf->mCorrectionHisto->Write();
224 bpcf->mCorrCFHisto->Write();
virtual void SetIOMode(Option_t *iomode="w")
number of transactions
virtual void Clear(Option_t *option="")
User defined functions.