@@ -142,6 +142,10 @@ class FemtoUniverseParticleHisto
142142 mHistogramRegistry ->add ((folderName + folderSuffix + " /hOrigin_MC" ).c_str (), " ; Origin; Entries" , kTH1I , {{100 , 0 , 100 }});
143143 mHistogramRegistry ->add ((folderName + folderSuffix + " /hNoMCtruthCounter" ).c_str (), " ; Counter; Entries" , kTH1I , {{1 , 0 , 1 }});
144144
145+ mHistogramRegistry ->add ((folderName + folderSuffix + " /hTrueRecoMomPart1" ).c_str (), " ; #it{p}_{reco} (GeV/#it{c}); #it{p}_{truth} - #it{p}_{reco} (GeV/#it{c})" , kTH2F , {tempFitVarpTAxis, tempFitVarAxis});
146+ mHistogramRegistry ->add ((folderName + folderSuffix + " /hTrueRecoThetaPart1" ).c_str (), " ; #it{p}_{reco} (GeV/#it{c}); #it{#theta}_{truth} - #it{#theta}_{reco} (GeV/#it{c})" , kTH2F , {tempFitVarpTAxis, tempFitVarAxis});
147+ mHistogramRegistry ->add ((folderName + folderSuffix + " /hTrueRecoMomPart1" ).c_str (), " ; #it{p}_{reco} (GeV/#it{c}); #it{#phi}_{truth} - #it{#phi}_{reco} (GeV/#it{c})" , kTH2F , {tempFitVarpTAxis, tempFitVarAxis});
148+
145149 if constexpr (mParticleType == o2::aod::femtouniverseparticle::ParticleType::kTrack || mParticleType == o2::aod::femtouniverseparticle::ParticleType::kV0Child || mParticleType == o2::aod::femtouniverseparticle::ParticleType::kCascadeBachelor || mParticleType == o2::aod::femtouniverseparticle::ParticleType::kMCTruthTrack ) {
146150 // / Track histograms
147151 if (isDebug) {
@@ -247,6 +251,7 @@ class FemtoUniverseParticleHisto
247251 if (isMC) {
248252 init_base<o2::aod::femtouniverse_mc_particle::MCType::kTruth >(folderName, tempFitVarAxisTitle, tempFitVarpTAxis, tempFitVarAxis);
249253 init_MC (folderName, tempFitVarAxisTitle, tempFitVarpTAxis, tempFitVarAxis, isDebug);
254+ // init_MC_reso(folderName, tempFitVarAxisTitle, tempFitVarpTAxis);
250255 }
251256 }
252257 }
@@ -343,6 +348,17 @@ class FemtoUniverseParticleHisto
343348
344349 if (std::abs (pdgcode) == mPDG ) { // fill this histogramm only for TRUE protons (independently of their origin) for the track purity estimation
345350 mHistogramRegistry ->fill (histFolder + HIST (" _MC/hPt_ReconNoFake" ), part.pt ());
351+ if (part.has_fdMCParticle ()) {
352+
353+ float part_p = part.pt () * std::cosh (part.eta ());
354+ float part_MC_p = part.fdMCParticle ().pt () * std::cosh (part.fdMCParticle ().eta ());
355+ float part_theta = 2.0 * std::atan (std::exp (-part.eta ()));
356+ float part_MC_theta = 2.0 * std::atan (std::exp (-part.fdMCParticle ().eta ()));
357+
358+ mHistogramRegistry ->fill (histFolder + HIST (" _MC/hTrueRecoMomPion" ), part_p, (part_MC_p - part_p));
359+ mHistogramRegistry ->fill (histFolder + HIST (" _MC/hTrueRecoThetaPion" ), part_p, (part_MC_theta - part_theta));
360+ mHistogramRegistry ->fill (histFolder + HIST (" _MC/hTrueRecoMomPion" ), part_p, part.fdMCParticle ().phi () - part.phi ());
361+ }
346362 }
347363
348364 if constexpr (mParticleType == o2::aod::femtouniverseparticle::ParticleType::kTrack || mParticleType == o2::aod::femtouniverseparticle::ParticleType::kV0Child || mParticleType == o2::aod::femtouniverseparticle::ParticleType::kCascadeBachelor || mParticleType == o2::aod::femtouniverseparticle::ParticleType::kMCTruthTrack ) {
0 commit comments