Skip to content

Commit e175a6c

Browse files
Adding th2 in tracking QA
1 parent 69dff00 commit e175a6c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

DPG/Tasks/AOTTrack/qaEfficiency.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ std::array<std::shared_ptr<TH1>, nParticles> hPtGeneratedRecoEv;
110110
std::array<std::shared_ptr<TH1>, nParticles> hPtItsPrm;
111111
std::array<std::shared_ptr<TH1>, nParticles> hPtItsTpcPrm;
112112
std::array<std::shared_ptr<TH1>, nParticles> hPtTrkItsTpcPrm;
113+
std::array<std::shared_ptr<TH2>, nParticles> hPtGenVsPtTrkItsTpcPrm; // histogram to store generated pt vs reco pt for primaries
113114
std::array<std::shared_ptr<TH1>, nParticles> hPtItsTpcTofPrm;
114115
std::array<std::shared_ptr<TH1>, nParticles> hPtTrkItsTpcTofPrm;
115116
std::array<std::shared_ptr<TH1>, nParticles> hPtGeneratedPrm;
@@ -376,11 +377,11 @@ struct QaEfficiency {
376377
hPtItsPrm[histogramIndex] = histos.add<TH1>(Form("MC/pdg%i/pt/prm/its", PDGs[histogramIndex]), "ITS tracks (primaries) " + tagPt, kTH1D, {axisPt});
377378
hPtItsTpcPrm[histogramIndex] = histos.add<TH1>(Form("MC/pdg%i/pt/prm/its_tpc", PDGs[histogramIndex]), "ITS-TPC tracks (primaries) " + tagPt, kTH1D, {axisPt});
378379
hPtTrkItsTpcPrm[histogramIndex] = histos.add<TH1>(Form("MC/pdg%i/pt/prm/trk/its_tpc", PDGs[histogramIndex]), "ITS-TPC tracks (reco primaries) " + tagPt, kTH1D, {axisPt});
380+
hPtGenVsPtTrkItsTpcPrm[histogramIndex] = histos.add<TH2>(Form("MC/pdg%i/pt/prm/generated_vs_reco", PDGs[histogramIndex]), "Abs(Gen - Reco) pT vs Gen pT (primaries) " + tagPt, kTH2D, {axisPt, axisPt});
379381
hPtItsTpcTofPrm[histogramIndex] = histos.add<TH1>(Form("MC/pdg%i/pt/prm/its_tpc_tof", PDGs[histogramIndex]), "ITS-TPC-TOF tracks (primaries) " + tagPt, kTH1D, {axisPt});
380382
hPtTrkItsTpcTofPrm[histogramIndex] = histos.add<TH1>(Form("MC/pdg%i/pt/prm/trk/its_tpc_tof", PDGs[histogramIndex]), "ITS-TPC-TOF tracks (reco primaries) " + tagPt, kTH1D, {axisPt});
381383
hPtGeneratedPrm[histogramIndex] = histos.add<TH1>(Form("MC/pdg%i/pt/prm/generated", PDGs[histogramIndex]), "Generated (primaries) " + tagPt, kTH1D, {axisPt});
382384
hPtGeneratedPrmRecoEv[histogramIndex] = histos.add<TH1>(Form("MC/pdg%i/pt/prm/generated_reco_ev", PDGs[histogramIndex]), "Generated Reco Ev. " + tagPt, kTH1D, {axisPt});
383-
384385
// Str
385386
hPtItsTpcStr[histogramIndex] = histos.add<TH1>(Form("MC/pdg%i/pt/str/its_tpc", PDGs[histogramIndex]), "ITS-TPC tracks (from weak decays) " + tagPt, kTH1D, {axisPt});
386387
hPtTrkItsTpcStr[histogramIndex] = histos.add<TH1>(Form("MC/pdg%i/pt/str/trk/its_tpc", PDGs[histogramIndex]), "ITS-TPC tracks (reco from weak decays) " + tagPt, kTH1D, {axisPt});
@@ -1156,6 +1157,7 @@ struct QaEfficiency {
11561157
if (passedITS && passedTPC) {
11571158
hPtItsTpcPrm[histogramIndex]->Fill(mcParticle.pt());
11581159
hPtTrkItsTpcPrm[histogramIndex]->Fill(track.pt());
1160+
hPtGenVsPtTrkItsTpcPrm[histogramIndex]->Fill(mcParticle.pt(), abs(track.pt() - mcParticle.pt()));
11591161
hEtaItsTpcPrm[histogramIndex]->Fill(mcParticle.eta());
11601162
hEtaTrkItsTpcPrm[histogramIndex]->Fill(track.eta());
11611163
hPhiItsTpcPrm[histogramIndex]->Fill(mcParticle.phi());

0 commit comments

Comments
 (0)