@@ -110,7 +110,8 @@ std::array<std::shared_ptr<TH1>, nParticles> hPtGeneratedRecoEv;
110110std::array<std::shared_ptr<TH1 >, nParticles> hPtItsPrm;
111111std::array<std::shared_ptr<TH1 >, nParticles> hPtItsTpcPrm;
112112std::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
113+ std::array<std::shared_ptr<TH2 >, nParticles> hDeltaPtVsPtTrkItsTpcPrm;
114+ std::array<std::shared_ptr<TH2 >, nParticles> hPtGenVsPtTrkItsTpcPrm;
114115std::array<std::shared_ptr<TH1 >, nParticles> hPtItsTpcTofPrm;
115116std::array<std::shared_ptr<TH1 >, nParticles> hPtTrkItsTpcTofPrm;
116117std::array<std::shared_ptr<TH1 >, nParticles> hPtGeneratedPrm;
@@ -377,11 +378,13 @@ struct QaEfficiency {
377378 hPtItsPrm[histogramIndex] = histos.add <TH1 >(Form (" MC/pdg%i/pt/prm/its" , PDGs[histogramIndex]), " ITS tracks (primaries) " + tagPt, kTH1D , {axisPt});
378379 hPtItsTpcPrm[histogramIndex] = histos.add <TH1 >(Form (" MC/pdg%i/pt/prm/its_tpc" , PDGs[histogramIndex]), " ITS-TPC tracks (primaries) " + tagPt, kTH1D , {axisPt});
379380 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});
381+ hDeltaPtVsPtTrkItsTpcPrm[histogramIndex] = histos.add <TH2 >(Form (" MC/pdg%i/pt/prm/generated_vs_reco_delta" , PDGs[histogramIndex]), " Abs(Gen - Reco) pT vs Gen pT (primaries) " + tagPt, kTH2D , {axisPt, axisPt});
382+ hPtGenVsPtTrkItsTpcPrm[histogramIndex] = histos.add <TH2 >(Form (" MC/pdg%i/pt/prm/generated_vs_reco" , PDGs[histogramIndex]), " Reco pT vs Gen pT (primaries) " + tagPt, kTH2D , {axisPt, axisPt});
381383 hPtItsTpcTofPrm[histogramIndex] = histos.add <TH1 >(Form (" MC/pdg%i/pt/prm/its_tpc_tof" , PDGs[histogramIndex]), " ITS-TPC-TOF tracks (primaries) " + tagPt, kTH1D , {axisPt});
382384 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});
383385 hPtGeneratedPrm[histogramIndex] = histos.add <TH1 >(Form (" MC/pdg%i/pt/prm/generated" , PDGs[histogramIndex]), " Generated (primaries) " + tagPt, kTH1D , {axisPt});
384386 hPtGeneratedPrmRecoEv[histogramIndex] = histos.add <TH1 >(Form (" MC/pdg%i/pt/prm/generated_reco_ev" , PDGs[histogramIndex]), " Generated Reco Ev. " + tagPt, kTH1D , {axisPt});
387+
385388 // Str
386389 hPtItsTpcStr[histogramIndex] = histos.add <TH1 >(Form (" MC/pdg%i/pt/str/its_tpc" , PDGs[histogramIndex]), " ITS-TPC tracks (from weak decays) " + tagPt, kTH1D , {axisPt});
387390 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});
@@ -1157,7 +1160,8 @@ struct QaEfficiency {
11571160 if (passedITS && passedTPC) {
11581161 hPtItsTpcPrm[histogramIndex]->Fill (mcParticle.pt ());
11591162 hPtTrkItsTpcPrm[histogramIndex]->Fill (track.pt ());
1160- hPtGenVsPtTrkItsTpcPrm[histogramIndex]->Fill (mcParticle.pt (), abs (track.pt () - mcParticle.pt ()));
1163+ hDeltaPtVsPtTrkItsTpcPrm[histogramIndex]->Fill (mcParticle.pt (), abs (track.pt () - mcParticle.pt ()));
1164+ hPtGenVsPtTrkItsTpcPrm[histogramIndex]->Fill (mcParticle.pt (), track.pt ());
11611165 hEtaItsTpcPrm[histogramIndex]->Fill (mcParticle.eta ());
11621166 hEtaTrkItsTpcPrm[histogramIndex]->Fill (track.eta ());
11631167 hPhiItsTpcPrm[histogramIndex]->Fill (mcParticle.phi ());
0 commit comments