24 void StHbtExampledd(
const Int_t nevents,
const Char_t **fileList,
const char*);
28 void ntuple(
const Int_t nevents=9999,
const Char_t *path =
"-",
29 const Char_t *file =
"/star/rcf/pwg/hbt/July2000/HalfFieldData_new2.microDst")
31 const char *fileListQQ[]={0,0};
35 fileListQQ[0] = gSystem->ConcatFileName(path,file);
37 StHbtExampledd(nevents,fileListQQ);
41 void StHbtExampledd(
const Int_t nevents,
const Char_t **fileList)
45 gSystem->Load(
"St_base");
46 gSystem->Load(
"StChain");
47 gSystem->Load(
"St_Tables");
48 gSystem->Load(
"StMagF");
49 gSystem->Load(
"StUtilities");
50 gSystem->Load(
"StTreeMaker");
51 gSystem->Load(
"StIOMaker");
52 gSystem->Load(
"StarClassLibrary");
53 gSystem->Load(
"StEvent");
54 gSystem->Load(
"StEventMaker");
55 gSystem->Load(
"StHbtMaker");
57 cout <<
" loading done " << endl;
64 for (
int ifil=0; fileList[ifil]; ifil++)
66 setFiles->AddFile(fileList[ifil]);
71 cout <<
"StHbtMaker instantiated."<<endl;
75 cout <<
"StHbtMaker::Init - setting up Reader and Analyses..." << endl;
80 TheManager->SetEventReader(Reader);
81 cout <<
"READER SET UP.... " << endl;
92 evcut->SetEventMult(00,100000);
93 evcut->SetVertZPos(-50.0,50.0);
94 ntupleEvent* nevent =
new ntupleEvent;
95 ntupleAnal->SetEventCut(nevent);
98 piPlusTrkcut->SetNSigmaPion(-100.0,100.0);
99 piPlusTrkcut->SetNSigmaKaon(-100.0,100.0);
100 piPlusTrkcut->SetNSigmaProton(-100.0,100.0);
101 piPlusTrkcut->SetNHits(0,0 );
102 piPlusTrkcut->SetP(0.1,3.0);
103 piPlusTrkcut->SetPt(0.0,2.0);
104 piPlusTrkcut->SetRapidity(-1.0,1.0);
105 piPlusTrkcut->SetDCA(-1.0,1.0);
106 piPlusTrkcut->SetCharge(+1);
107 piPlusTrkcut->SetMass(0.139);
108 ntupleTrack* ntrack =
new ntupleTrack();
109 ntupleAnal->SetFirstParticleCut(ntrack);
110 ntupleAnal->SetSecondParticleCut(piPlusTrkcut);
113 ntupleAnal->SetPairCut(qpc);
115 ntupleAnal->SetNumEventsToMix(1);
118 ntupleAnal->AddCorrFctn(QinvEbyECF);
120 TheManager->AddAnalysis(ntupleAnal);
127 for (Int_t iev=0;iev<nevents; iev++) {
128 cout <<
"StHbtExample -- Working on eventNumber " << iev << endl;
130 int iret = chain->
Make(iev);
132 cout <<
"Bad return code!" << endl;
virtual void Clear(Option_t *option="")
User defined functions.