From e8614cf5419c16dd49ffd99a11ea7c223e291aa3 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Tue, 18 Feb 2025 11:05:58 +0000 Subject: [PATCH] Please consider the following formatting changes --- PWGEM/PhotonMeson/Tasks/pcmQCMC.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/PWGEM/PhotonMeson/Tasks/pcmQCMC.cxx b/PWGEM/PhotonMeson/Tasks/pcmQCMC.cxx index 043be262d87..dec6e653b9b 100644 --- a/PWGEM/PhotonMeson/Tasks/pcmQCMC.cxx +++ b/PWGEM/PhotonMeson/Tasks/pcmQCMC.cxx @@ -463,7 +463,7 @@ struct PCMQCMC { auto ele = v0.negTrack_as(); auto posmc = pos.template emmcparticle_as(); auto elemc = ele.template emmcparticle_as(); - + // LOGF(info, "posmc.isPhysicalPrimary() = %d, posmc.producedByGenerator() = %d, elemc.isPhysicalPrimary() = %d, elemc.producedByGenerator() = %d", posmc.isPhysicalPrimary(), posmc.producedByGenerator(), elemc.isPhysicalPrimary(), elemc.producedByGenerator()); if (!fV0PhotonCut.IsSelected(v0)) { @@ -478,8 +478,10 @@ struct PCMQCMC { if (mcphoton.isPhysicalPrimary() || mcphoton.producedByGenerator()) { fillV0Info<0>(v0, mcphoton, elemc); fRegistry.fill(HIST("V0/primary/hPt_DeltaColID"), v0.pt(), collision.globalIndex() - mcphoton.emmceventId()); - if(collision.globalIndex() == mcphoton.emmceventId()) fRegistry.fill(HIST("V0/primary/hDCAz_Pt_collType"), v0.dcaZtopv(), v0.pt(), 0.0); /// check whether V0 and MC photon originate from the same collision. 0 for yes, 1 for no. - else fRegistry.fill(HIST("V0/primary/hDCAz_Pt_collType"), v0.dcaZtopv(), v0.pt(), 1.0); + if (collision.globalIndex() == mcphoton.emmceventId()) + fRegistry.fill(HIST("V0/primary/hDCAz_Pt_collType"), v0.dcaZtopv(), v0.pt(), 0.0); /// check whether V0 and MC photon originate from the same collision. 0 for yes, 1 for no. + else + fRegistry.fill(HIST("V0/primary/hDCAz_Pt_collType"), v0.dcaZtopv(), v0.pt(), 1.0); for (auto& leg : {pos, ele}) { fillV0LegInfo<0>(leg); }