From fd4314caf1975e1cfa6f510e5ac62a766ec710b3 Mon Sep 17 00:00:00 2001 From: Isabel Kantak Date: Fri, 27 Mar 2026 17:39:38 +0100 Subject: [PATCH] Change pcmQCMC pT histograms from kTH1F to kTH1D. Change photon candidate chi2/NDF calculation from v0DecayVtx to v0PV during the create derived dataset in photonconversionbuilder. --- PWGEM/PhotonMeson/Core/V0PhotonCandidate.h | 2 +- PWGEM/PhotonMeson/Tasks/pcmQCMC.cxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PWGEM/PhotonMeson/Core/V0PhotonCandidate.h b/PWGEM/PhotonMeson/Core/V0PhotonCandidate.h index 2e98a0396b5..99c5afdc61b 100644 --- a/PWGEM/PhotonMeson/Core/V0PhotonCandidate.h +++ b/PWGEM/PhotonMeson/Core/V0PhotonCandidate.h @@ -71,7 +71,7 @@ struct V0PhotonCandidate { eleTPCSignal = ele.tpcSignal(); eleITSClusterSizes = ele.itsClusterSizes(); - chi2ndf = v0DecayVtx.GetChi2() / v0DecayVtx.GetNDF(); + chi2ndf = v0PV.GetChi2() / v0PV.GetNDF(); pca = posDecayVtx.GetDistanceFromParticle(eleDecayVtx); eta = RecoDecay::eta(std::array{px, py, pz}); posEta = RecoDecay::eta(std::array{posPx, posPy, posPz}); diff --git a/PWGEM/PhotonMeson/Tasks/pcmQCMC.cxx b/PWGEM/PhotonMeson/Tasks/pcmQCMC.cxx index f35b926e50c..c7d269973be 100644 --- a/PWGEM/PhotonMeson/Tasks/pcmQCMC.cxx +++ b/PWGEM/PhotonMeson/Tasks/pcmQCMC.cxx @@ -233,9 +233,9 @@ struct PCMQCMC { const AxisSpec axis_rapidity{{0.0, +0.8, +0.9}, "rapidity |y_{#gamma}|"}; if (doprocessGen) { - fRegistry.add("Generated/hPt", "pT;p_{T} (GeV/c)", kTH1F, {axis_pt}, true); - fRegistry.add("Generated/hPtY", "Generated info", kTH2F, {axis_pt, axis_rapidity}, true); - fRegistry.add("Generated/hPt_ConversionPhoton", "converted photon pT;p_{T} (GeV/c)", kTH1F, {axis_pt}, true); + fRegistry.add("Generated/hPt", "pT;p_{T} (GeV/c)", kTH1D, {axis_pt}, true); + fRegistry.add("Generated/hPtY", "Generated info", kTH2D, {axis_pt, axis_rapidity}, true); + fRegistry.add("Generated/hPt_ConversionPhoton", "converted photon pT;p_{T} (GeV/c)", kTH1D, {axis_pt}, true); fRegistry.add("Generated/hY_ConversionPhoton", "converted photon y;rapidity y", kTH1F, {{40, -2.0f, 2.0f}}, true); fRegistry.add("Generated/hPhi_ConversionPhoton", "converted photon #varphi;#varphi (rad.)", kTH1F, {{180, 0, o2::constants::math::TwoPI}}, true); fRegistry.add("Generated/hXY", "conversion point in XY MC;V_{x} (cm);V_{y} (cm)", kTH2F, {{800, -100.0f, 100.0f}, {800, -100.0f, 100.0f}}, true);