12 void StHbtSectoredExample(Int_t nevents=100,
const char *MainFile=
"/direct/star+data01/pwg/hbt/MDC3/MicroDst/Lanny/Peripheral/rcf0106_80_120evts.dst.root.pion.microDst")
17 gSystem->Load(
"St_base");
18 gSystem->Load(
"StChain");
19 gSystem->Load(
"St_Tables");
20 gSystem->Load(
"StUtilities");
21 gSystem->Load(
"StAnalysisUtilities");
22 gSystem->Load(
"StMagF");
23 gSystem->Load(
"StIOMaker");
24 gSystem->Load(
"StarClassLibrary");
25 gSystem->Load(
"StEvent");
26 gSystem->Load(
"StEventMaker");
27 gSystem->Load(
"StHbtMaker");
29 cout <<
"Dynamic loading done" << endl;
38 cout <<
"StHbtMaker instantiated"<<endl;
43 cout <<
"StHbtMaker::Init - setting up Reader and Analyses..." << endl;
51 Reader->SetFileName(MainFile);
54 TheManager->SetEventReader(Reader);
56 cout <<
"READER SET UP.... " << endl;
67 evcut->SetEventMult(0,10000);
68 evcut->SetVertZPos(-35.0,35.0);
69 anal->SetEventCut(evcut);
72 trkcut->SetNSigmaPion(-1.5,1.5);
73 trkcut->SetNSigmaKaon(-1000.0,1000.0);
74 trkcut->SetNSigmaProton(-1000.0,1000.0);
75 trkcut->SetNHits(5,50);
76 trkcut->SetPt(0.1,1.0);
77 trkcut->SetRapidity(-1.0,1.0);
78 trkcut->SetDCA(0.0,0.5);
79 trkcut->SetCharge(-1);
80 trkcut->SetMass(0.139);
81 anal->SetFirstParticleCut(trkcut);
82 anal->SetSecondParticleCut(trkcut);
85 anal->SetPairCut(paircut);
87 anal->SetNumEventsToMix(5);
90 QinvCF =
new QinvCorrFctn(
"mikesQinvCF - SectoredAnalysis",50,0.0,0.2);
91 anal->AddCorrFctn(QinvCF);
106 anal->SetDeltaP(0.15);
107 anal->SetPXmax(1.05);
108 anal->SetPXmin(-1.05);
109 anal->SetPYmax(1.05);
110 anal->SetPYmin(-1.05);
111 anal->SetPZmax(1.05);
112 anal->SetPZmin(-1.05);
115 TheManager->AddAnalysis(anal);
124 cout <<
"Initialization failed \n";
132 EventLoop:
if (iev <= nevents && !istat) {
133 cout <<
"StHbtExample -- Working on eventNumber " << iev <<
" of " << nevents << endl;
135 istat = chain->
Make(iev);
136 if (istat) {cout <<
"Last event processed. Status = " << istat << endl;}
137 iev++;
goto EventLoop;
141 cout <<
"StHbtExample -- Done with event loop" << endl;
virtual void Clear(Option_t *option="")
User defined functions.