Definition at line 164 of file PndParticleQATask.cxx.
References RhoTuple::Column(), RhoTuple::DumpData(), f, fAnalysis, fDumpChrg, fDumpMc, fDumpNeut, fEvtCount, PndAnalysis::FillList(), fMode, fPidList, PndAnalysis::GetEventInTask(), RhoCandList::GetLength(), i, mclist, nmc, ntp, ntpn, RhoCandidate::P4(), RhoCandidate::PdgCode(), PndRhoTupleQA::qaDrc(), PndRhoTupleQA::qaDsc(), PndRhoTupleQA::qaEmc(), PndRhoTupleQA::qaMcList(), PndRhoTupleQA::qaMuo(), PndRhoTupleQA::qaMvd(), PndRhoTupleQA::qaP4(), PndRhoTupleQA::qaPid(), PndRhoTupleQA::qaPull(), PndRhoTupleQA::qaRich(), PndRhoTupleQA::qaStt(), PndRhoTupleQA::qaTof(), PndRhoTupleQA::qaTrk(), RhoCandidate::TheMother(), and TString.
169 TLorentzVector dummy;
191 qa.qaMcList(
"", mclist,
nmc, 20);
202 for (i=0;i<nalgos;++
i)
208 TLorentzVector chrgP4=dummy;
213 for (j=0; j<ntrk; ++j)
218 ntp->
Column(
"ev", (Int_t) fEvtCount, 0 );
221 ntp->
Column(
"chrg", (Float_t) chrpid[0][j]->Charge(), 0.0
f );
223 qa.qaP4(
"", chrpid[0][j]->P4(),
ntp);
224 qa.qaPull(
"" , chrpid[0][j] ,
ntp);
227 qa.qaPid(
"idl", chrpid[0][j],
ntp);
228 qa.qaPid(
"", chrpid[nalgos-1][j],
ntp);
230 for (i=1; i<nalgos-1; ++
i)
232 int nidx = (nalgos-2)/2;
233 int algidx = (i-1)%nidx;
238 if (algname.Contains(
";")) algname.Remove(algname.First(
";"),1000);
239 algname.ReplaceAll(
"Pid",
"");
240 algname.ReplaceAll(
"Algo",
"");
241 algname.ReplaceAll(
"Probability",
"");
243 algname=algname(0,10);
245 TString smpname = Form(
"a%d",algidx);
248 smpname =
"n" + smpname;
249 algname =
"n" + algname;
254 qa.qaPid(smpname, chrpid[i][j],
ntp);
255 qa.qaPid(algname, chrpid[i][j],
ntp);
258 qa.qaEmc(
"", chrpid[0][j],
ntp);
259 qa.qaMvd(
"", chrpid[0][j],
ntp);
260 qa.qaStt(
"", chrpid[0][j],
ntp);
261 qa.qaDrc(
"", chrpid[0][j],
ntp);
262 qa.qaDsc(
"", chrpid[0][j],
ntp);
263 qa.qaTof(
"", chrpid[0][j],
ntp);
264 qa.qaMuo(
"", chrpid[0][j],
ntp);
265 qa.qaTrk(
"", chrpid[0][j],
ntp);
266 qa.qaRich(
"", chrpid[0][j],
ntp);
275 if (!moth || abs(moth->
PdgCode()-88850)<100 )
278 chrgP4 = truth->
P4();
281 qa.qaP4(
"tr", chrgP4,
ntp);
286 qa.qaP4(
"tr", dummy,
ntp,
true);
307 for (j=0; j<ntrk; ++j)
315 ntpn->
Column(
"chrg", (Float_t) neut[j]->Charge(), 0.0
f );
317 qa.qaP4(
"", neut[j]->P4(),
ntpn);
318 qa.qaEmc(
"", neut[j],
ntpn);
328 if (!moth || abs(moth->
PdgCode()-88850)<100 ) prim = 1.0;
331 qa.qaP4(
"moth", moth->
P4(),
ntpn);
336 qa.qaP4(
"moth", dummy,
ntpn,
true);
340 qa.qaP4(
"tr", truth->
P4(),
ntpn);
345 qa.qaP4(
"moth", dummy,
ntpn,
true);
346 qa.qaP4(
"tr", dummy,
ntpn,
true);
Bool_t FillList(RhoCandList &l, TString listkey="All", TString pidTcaNames="", int trackHypothesis=-1)
TLorentzVector P4() const
void Column(const char *label, Bool_t value, Bool_t defval=0, const char *block=0)
const RhoCandidate * TheMother() const