12 void StHbtExample(Int_t nevents=1,
13 const char *MainFile=
"/star/rcf/test/dev/tfs_Linux/Wed/year_1b/set0352_01_35evts.dst.xdf")
18 gSystem->Load(
"StarRoot");
19 gSystem->Load(
"St_base");
20 gSystem->Load(
"St_base");
21 gSystem->Load(
"StChain");
22 gSystem->Load(
"St_Tables");
23 gSystem->Load(
"StMagF");
24 gSystem->Load(
"StUtilities");
25 gSystem->Load(
"StTreeMaker");
26 gSystem->Load(
"StIOMaker");
27 gSystem->Load(
"StarClassLibrary");
28 gSystem->Load(
"xdf2root");
29 gSystem->Load(
"St_xdfin_Maker");
30 gSystem->Load(
"StEvent");
31 gSystem->Load(
"StEventMaker");
32 gSystem->Load(
"StMcEvent");
33 gSystem->Load(
"StMcEventMaker");
34 gSystem->Load(
"StAssociationMaker");
35 gSystem->Load(
"StMcAnalysisMaker");
36 gSystem->Load(
"StHbtMaker");
37 gSystem->Load(
"StStrangeMuDstMaker");
40 cout <<
"Dynamic loading done" << endl;
47 cout <<
"Just instantiated StEventMaker... lets go StHbtMaker!" << endl;
58 cout <<
"StHbtMaker instantiated"<<endl;
63 cout <<
"StHbtMaker::Init - setting up Reader and Analyses..." << endl;
75 TheManager->SetEventReader(Reader);
77 cout <<
"READER SET UP.... " << endl;
92 evcut->SetEventMult(0,10000);
93 evcut->SetVertZPos(-35.0,35.0);
94 anal->SetEventCut(evcut);
97 trkcut->SetNSigmaPion(-1.5,1.5);
98 trkcut->SetNSigmaKaon(-1000.0,1000.0);
99 trkcut->SetNSigmaProton(-1000.0,1000.0);
100 trkcut->SetNHits(5,50);
101 trkcut->SetPt(0.1,1.0);
102 trkcut->SetRapidity(-1.0,1.0);
103 trkcut->SetDCA(0.0,0.5);
104 trkcut->SetCharge(-1);
105 trkcut->SetMass(0.139);
106 anal->SetFirstParticleCut(trkcut);
107 anal->SetSecondParticleCut(trkcut);
110 anal->SetPairCut(paircut);
112 anal->SetNumEventsToMix(5);
116 anal->AddCorrFctn(QinvCF);
119 anal->AddCorrFctn(QvecCF);
124 TheManager->AddAnalysis(anal);
136 phiEvcut->SetEventMult(0,10000);
137 phiEvcut->SetVertZPos(-35.0,35.0);
138 phiAnal->SetEventCut(phiEvcut);
141 kaonTrkcut->SetNSigmaPion(3,1000.0);
142 kaonTrkcut->SetNSigmaKaon(-3.0,3.0);
143 kaonTrkcut->SetNSigmaProton(-1000.,-1.0);
144 kaonTrkcut->SetNHits(0,50);
145 kaonTrkcut->SetPt(0.1,2.0);
146 kaonTrkcut->SetRapidity(-2.0,2.0);
147 kaonTrkcut->SetDCA(0.0,0.5);
148 kaonTrkcut->SetCharge(+1);
149 kaonTrkcut->SetMass(0.494);
150 phiAnal->SetFirstParticleCut(kaonTrkcut);
152 antikaonTrkcut->SetNSigmaPion(3.0,1000.0);
153 antikaonTrkcut->SetNSigmaKaon(-3.0,3.0);
154 antikaonTrkcut->SetNSigmaProton(-1000.0,-1.0);
155 antikaonTrkcut->SetNHits(0,50);
156 antikaonTrkcut->SetPt(0.1,2.0);
157 antikaonTrkcut->SetRapidity(-2.0,2.0);
158 antikaonTrkcut->SetDCA(0.0,0.5);
159 antikaonTrkcut->SetCharge(-1);
160 antikaonTrkcut->SetMass(0.494);
161 phiAnal->SetSecondParticleCut(antikaonTrkcut);
164 phiAnal->SetPairCut(phiPaircut);
166 phiAnal->SetNumEventsToMix(5);
168 MinvCF =
new MinvCorrFctn(
"franksMinvCF",100,0.98,1.18);
169 phiAnal->AddCorrFctn(MinvCF);
172 TheManager->AddAnalysis(phiAnal);
182 cout <<
"Initialization failed \n";
190 EventLoop:
if (iev <= nevents && !istat) {
191 cout <<
"StHbtExample -- Working on eventNumber " << iev <<
" of " << nevents << endl;
193 istat = chain->
Make(iev);
194 if (istat) {cout <<
"Last event processed. Status = " << istat << endl;}
195 iev++;
goto EventLoop;
211 cout <<
"StHbtExample -- Done with event loop" << endl;
virtual void Clear(Option_t *option="")
User defined functions.