28 void StHbtSplittingEstimate(
const Int_t nevents=9999,
29 const Char_t *path=
"/star/data01/pwg/hbt/RandTheMan/uDSTs/P01hi/minbias/08/",
30 const Char_t *fileName=
"",
31 const Char_t *extention=
".hbtTTreeMuDst",
32 const Char_t *filter=
".",
33 const int maxFiles=10) {
35 gStyle->SetTextFont(41);
40 gSystem->Load(
"St_base");
41 gSystem->Load(
"StChain");
42 gSystem->Load(
"St_Tables");
43 gSystem->Load(
"StMagF");
44 gSystem->Load(
"StUtilities");
45 gSystem->Load(
"StTreeMaker");
46 gSystem->Load(
"StIOMaker");
47 gSystem->Load(
"StarClassLibrary");
48 gSystem->Load(
"StTpcDb");
49 gSystem->Load(
"StDbUtilities");
50 gSystem->Load(
"StEvent");
51 gSystem->Load(
"StEventMaker");
52 gSystem->Load(
"StEventUtilities");
53 gSystem->Load(
"StEmcUtil");
54 gSystem->Load(
"St_emc_Maker");
55 gSystem->Load(
"StMcEvent");
56 gSystem->Load(
"StMcEventMaker");
57 gSystem->Load(
"StAssociationMaker");
58 gSystem->Load(
"StMcAnalysisMaker");
62 gSystem->Load(
"StStrangeMuDstMaker");
63 gSystem->Load(
"StHbtMaker");
79 TheManager->SetEventReader(Reader);
84 aTrackCut->SetPidProbPion(0.3,10);
85 aTrackCut->SetNHits(10,50);
86 aTrackCut->SetP(0.1,4.);
87 aTrackCut->SetPt(0.1,2.);
88 aTrackCut->SetEta(-1.1,+1.1);
90 aTrackCut->SetDCA(0.0,3.);
91 aTrackCut->SetCharge(-1);
92 aTrackCut->SetMass(0.138);
100 anal->SetQinvCut(0.03);
103 evcut->SetEventMult(30,10000);
104 evcut->SetVertZPos(-70.0,70.0);
105 anal->SetEventCut(evcut);
107 anal->SetFirstParticleCut(aTrackCut);
108 anal->SetSecondParticleCut(aTrackCut);
112 qpc->SetQualityCut(-0.5,0.65);
113 anal->SetPairCut(qpc);
116 anal->SetNumEventsToMix(1);
120 TheManager->AddAnalysis(anal);
122 cout <<
" StHbt Analysis - setup done " << endl;
128 for (Int_t iev=0;iev<nevents; iev++) {
129 cout <<
"StHbtExample -- Working on eventNumber " << iev << endl;
131 int iret = chain->
Make(iev);
139 TFile file(
"SplittingHistos.root",
"RECREATE");
140 anal->mRealSplits->Write();
141 anal->mRealAll->Write();
142 anal->mMixedSplits->Write();
143 anal->mMixedAll->Write();
144 anal->mSplitFractionUpperLimit->Write();
145 anal->mSplitFractionLowerLimit->Write();
153 anal->mRealAll->Draw();
155 anal->mRealSplits->Draw();
157 anal->mMixedAll->Draw();
159 anal->mMixedSplits->Draw();
161 anal->mSplitFractionUpperLimit->Draw();
163 anal->mSplitFractionLowerLimit->Draw();
virtual void Clear(Option_t *option="")
User defined functions.