9 void StHbtThreeParticleExample(Int_t nevents=1,
10 const char *MainFile=
"/star/rcf/pwg/hbt/July2000/HalfFieldData_new2.microDst")
14 gSystem->Load(
"St_base");
15 gSystem->Load(
"StChain");
16 gSystem->Load(
"St_Tables");
17 gSystem->Load(
"StUtilities");
18 gSystem->Load(
"StAnalysisUtilities");
19 gSystem->Load(
"StMagF");
20 gSystem->Load(
"StIOMaker");
21 gSystem->Load(
"StarClassLibrary");
22 gSystem->Load(
"StEvent");
23 gSystem->Load(
"StEventMaker");
24 gSystem->Load(
"StHbtMaker");
26 cout <<
"Dynamic loading done" << endl;
35 cout <<
"StHbtMaker instantiated"<<endl;
40 cout <<
"StHbtMaker::Init - setting up Reader and Analyses..." << endl;
46 Reader->SetFileName(MainFile);
49 TheManager->SetEventReader(Reader);
51 cout <<
"READER SET UP.... " << endl;
66 evcut->SetEventMult(0,10000);
67 evcut->SetVertZPos(-35.0,35.0);
68 anal->SetEventCut(evcut);
71 trkcut->SetNSigmaPion(-1.5,1.5);
72 trkcut->SetNSigmaKaon(-1000.0,1000.0);
73 trkcut->SetNSigmaProton(-1000.0,1000.0);
74 trkcut->SetNHits(5,50);
75 trkcut->SetPt(0.1,1.0);
76 trkcut->SetRapidity(-10.0,10.0);
77 trkcut->SetDCA(0.0,0.5);
78 trkcut->SetCharge(-1);
79 trkcut->SetMass(0.139);
80 anal->SetFirstParticleCut(trkcut);
81 anal->SetSecondParticleCut(trkcut);
82 anal->SetThirdParticleCut(trkcut);
85 anal->SetTripletCut(tripletcut);
87 anal->SetNumEventsToMix(2);
91 anal->AddCorrFctn(Q3invCF);
96 TheManager->AddAnalysis(anal);
105 cout <<
"Initialization failed \n";
113 EventLoop:
if (iev <= nevents && !istat) {
114 cout <<
"StHbtExample -- Working on eventNumber " << iev <<
" of " << nevents << endl;
116 istat = chain->
Make(iev);
117 if (istat) {cout <<
"Last event processed. Status = " << istat << endl;}
118 iev++;
goto EventLoop;
122 cout <<
"StHbtExample -- Done with event loop" << endl;
virtual void Clear(Option_t *option="")
User defined functions.