23 for (
int i=0; i<n*1e6; i++) { }
25 void mess(
const char* c=
"alive") {
26 for (
int i=0; i<10; i++) { cout << c << endl; }
30 void StHbtExampleQQ(
const Int_t nevents,
const Char_t **fileList,
const char*);
35 void StHbtTagWriterTest(
const Int_t nevents=9999,
const Char_t *path,
const Char_t *file)
37 const char *fileListQQ[]={0,0};
41 fileListQQ[0] = gSystem->ConcatFileName(path,file);
43 StHbtExampleQQ(nevents,fileListQQ);
47 void StHbtExampleQQ(
const Int_t nevents,
const Char_t **fileList)
51 gSystem->Load(
"St_base");
52 gSystem->Load(
"StChain");
53 gSystem->Load(
"St_Tables");
54 gSystem->Load(
"StMagF");
55 gSystem->Load(
"StUtilities");
56 gSystem->Load(
"StTreeMaker");
57 gSystem->Load(
"StIOMaker");
58 gSystem->Load(
"StarClassLibrary");
59 gSystem->Load(
"StEvent");
60 gSystem->Load(
"StEventMaker");
62 gSystem->Load(
"StHbtMaker");
65 cout <<
" loading done " << endl;
72 for (
int ifil=0; fileList[ifil]; ifil++)
73 setFiles->AddFile(fileList[ifil]);
87 ioMaker->SetBranch(
"*",0,
"r");
92 cout <<
"Just instantiated StEventMaker... lets go StHbtMaker!" << endl;
97 cout <<
"StHbtMaker instantiated"<<endl;
99 hbtTagMaker->SetShowTags(1);
100 cout <<
"StHbtTagMaker instantiated"<<endl;
103 cout <<
"StHbtMaker::Init - setting up Reader and Analyses..." << endl;
112 Reader->SetTheEventMaker(eventMaker);
113 TheManager->SetEventReader(Reader);
114 cout <<
"READER SET UP.... " << endl;
119 aTrackCut->SetNSigmaPion(-3.0,3.0);
120 aTrackCut->SetNSigmaKaon(-1000.,1000.);
121 aTrackCut->SetNSigmaProton(-1000.,1000.0);
122 aTrackCut->SetNHits(10,50);
123 aTrackCut->SetP(0.,0.8);
124 aTrackCut->SetPt(0.,2.);
125 aTrackCut->SetRapidity(-1.5,1.5);
126 aTrackCut->SetDCA(0.0,2.);
127 aTrackCut->SetCharge(+1);
128 aTrackCut->SetMass(0.139);
138 evcut->SetEventMult(0,100000);
139 evcut->SetVertZPos(-35.0,35.0);
140 piPlusAnal->SetEventCut(evcut);
143 piPlusAnal->SetFirstParticleCut(piPlusTrkcut);
144 piPlusAnal->SetSecondParticleCut(piPlusTrkcut);
147 piPlusAnal->SetPairCut(pairCut);
149 piPlusAnal->SetNumEventsToMix(5);
155 QinvEbyECF->SetTagMeans(
"positivePionsMeans");
156 QinvEbyECF->SetTagSigmas(
"positivePionsSigmas");
157 piPlusAnal->AddCorrFctn(QinvEbyECF);
160 TheManager->AddAnalysis(piPlusAnal);
169 evcut->SetEventMult(0,100000);
170 evcut->SetVertZPos(-35.0,35.0);
171 kaonPlusAnal->SetEventCut(evcut);
174 kaonPlusTrkcut->SetNSigmaPion(3.0,1000.0);
175 kaonPlusTrkcut->SetNSigmaKaon(-3.,3.);
176 kaonPlusTrkcut->SetNSigmaProton(-1000.0,-3.0);
177 kaonPlusTrkcut->SetMass(0.494);
178 kaonPlusAnal->SetFirstParticleCut(kaonPlusTrkcut);
179 kaonPlusAnal->SetSecondParticleCut(kaonPlusTrkcut);
182 kaonPlusAnal->SetPairCut(pairCut);
184 kaonPlusAnal->SetNumEventsToMix(5);
190 QinvEbyECFKaons->SetTagMeans(
"positiveKaonsMeans");
191 QinvEbyECFKaons->SetTagSigmas(
"positiveKaonsSigmas");
192 kaonPlusAnal->AddCorrFctn(QinvEbyECFKaons);
195 TheManager->AddAnalysis(kaonPlusAnal);
205 for (Int_t iev=0;iev<nevents; iev++) {
206 cout <<
"StHbtExample -- Working on eventNumber " << iev << endl;
208 int iret = chain->
Make(iev);
210 cout <<
"Bad return code!" << endl;
virtual void SetIOMode(Option_t *iomode="w")
number of transactions
virtual void Clear(Option_t *option="")
User defined functions.