diff --git a/PWGEM/PhotonMeson/Core/TaggingPi0MC.h b/PWGEM/PhotonMeson/Core/TaggingPi0MC.h index e6248abe388..4588f70182d 100644 --- a/PWGEM/PhotonMeson/Core/TaggingPi0MC.h +++ b/PWGEM/PhotonMeson/Core/TaggingPi0MC.h @@ -77,7 +77,7 @@ using MyMCCollision = MyMCCollisions::iterator; using MyV0Photons = o2::soa::Join; using MyV0Photon = MyV0Photons::iterator; -using MyEMCClusters = o2::soa::Join; +using MyEMCClusters = o2::soa::Join; using MyEMCCluster = MyEMCClusters::iterator; // using MyPHOSClusters = o2::soa::Join; diff --git a/PWGEM/PhotonMeson/Tasks/Pi0EtaToGammaGammaMCEMCEMC.cxx b/PWGEM/PhotonMeson/Tasks/Pi0EtaToGammaGammaMCEMCEMC.cxx index 0857f27f1a5..9c4398e75a3 100644 --- a/PWGEM/PhotonMeson/Tasks/Pi0EtaToGammaGammaMCEMCEMC.cxx +++ b/PWGEM/PhotonMeson/Tasks/Pi0EtaToGammaGammaMCEMCEMC.cxx @@ -27,7 +27,7 @@ using namespace o2::aod; using namespace o2::framework; using namespace o2::aod::pwgem::photonmeson::photonpair; -using MyEMCClusters = soa::Join; +using MyEMCClusters = soa::Join; WorkflowSpec defineDataProcessing(ConfigContext const& context) { diff --git a/PWGEM/PhotonMeson/Tasks/emcalMcTask.cxx b/PWGEM/PhotonMeson/Tasks/emcalMcTask.cxx index d71493102f3..073479c2c9e 100644 --- a/PWGEM/PhotonMeson/Tasks/emcalMcTask.cxx +++ b/PWGEM/PhotonMeson/Tasks/emcalMcTask.cxx @@ -133,7 +133,7 @@ struct EmcalMcTask { SliceCache cache; - using EMCalPhotons = soa::Join; + using EMCalPhotons = soa::Join; using Colls = soa::Join; @@ -297,13 +297,13 @@ struct EmcalMcTask { // One templated fill function instead of 9 copy-pasted blocks template - void fillClusterHistos(HistogramRegistry& histRegistry, TCluster const& clu, TMC const& mcPart, float centOrMult) + void fillClusterHistos(TCluster const& cluster, TMC const& mcPart, float centOrMult) { - static constexpr std::string_view subDir = kSubDirs[type]; + static constexpr std::string_view SubDir = kSubDirs[type]; - histRegistry.fill(HIST(subDir) + HIST("hM02"), clu.m02(), clu.e(), centOrMult); - histRegistry.fill(HIST(subDir) + HIST("hEtaRel"), clu.eta() - mcPart.eta(), clu.e(), centOrMult); - histRegistry.fill(HIST(subDir) + HIST("hPhiRel"), clu.phi() - mcPart.phi(), clu.e(), centOrMult); + registry.fill(HIST(SubDir) + HIST("hM02"), cluster.m02(), cluster.e(), centOrMult); + registry.fill(HIST(SubDir) + HIST("hEtaRel"), cluster.eta() - mcPart.eta(), cluster.e(), centOrMult); + registry.fill(HIST(SubDir) + HIST("hPhiRel"), cluster.phi() - mcPart.phi(), cluster.e(), centOrMult); } // PCM-EMCal same event @@ -340,23 +340,23 @@ struct EmcalMcTask { mcPhoton1.setCursor(photonEMC.emmcparticleIds()[0]); if (std::abs(mcPhoton1.pdgCode()) == PDG_t::kGamma) { - fillClusterHistos(registry, photonEMC, mcPhoton1, centOrMult); - } else if (std::abs(mcPhoton1.pdgCode()) == PDG_t::kElectron) { - fillClusterHistos(registry, photonEMC, mcPhoton1, centOrMult); - } else if (mcPhoton1.pdgCode() == -PDG_t::kElectron) { - fillClusterHistos(registry, photonEMC, mcPhoton1, centOrMult); + fillClusterHistos(photonEMC, mcPhoton1, centOrMult); + } else if (mcPhoton1.pdgCode() == PDG_t::kElectron) { + fillClusterHistos(photonEMC, mcPhoton1, centOrMult); + } else if (mcPhoton1.pdgCode() == PDG_t::kPositron) { + fillClusterHistos(photonEMC, mcPhoton1, centOrMult); } else if (std::abs(mcPhoton1.pdgCode()) == PDG_t::kPi0) { - fillClusterHistos(registry, photonEMC, mcPhoton1, centOrMult); + fillClusterHistos(photonEMC, mcPhoton1, centOrMult); } else if (std::abs(mcPhoton1.pdgCode()) == o2::constants::physics::Pdg::kEta) { - fillClusterHistos(registry, photonEMC, mcPhoton1, centOrMult); + fillClusterHistos(photonEMC, mcPhoton1, centOrMult); } else if (std::abs(mcPhoton1.pdgCode()) == o2::constants::physics::Pdg::kOmega) { - fillClusterHistos(registry, photonEMC, mcPhoton1, centOrMult); + fillClusterHistos(photonEMC, mcPhoton1, centOrMult); } else if (std::abs(mcPhoton1.pdgCode()) == PDG_t::kPiPlus) { - fillClusterHistos(registry, photonEMC, mcPhoton1, centOrMult); + fillClusterHistos(photonEMC, mcPhoton1, centOrMult); } else if (std::abs(mcPhoton1.pdgCode()) == PDG_t::kKPlus) { - fillClusterHistos(registry, photonEMC, mcPhoton1, centOrMult); + fillClusterHistos(photonEMC, mcPhoton1, centOrMult); } else { - fillClusterHistos(registry, photonEMC, mcPhoton1, centOrMult); + fillClusterHistos(photonEMC, mcPhoton1, centOrMult); } } // for (const auto& photonEMC : photonsEMCPerCollision) { } diff --git a/PWGEM/PhotonMeson/Tasks/photonResoTask.cxx b/PWGEM/PhotonMeson/Tasks/photonResoTask.cxx index 05f6c409a70..a51c8533f95 100644 --- a/PWGEM/PhotonMeson/Tasks/photonResoTask.cxx +++ b/PWGEM/PhotonMeson/Tasks/photonResoTask.cxx @@ -177,7 +177,7 @@ struct PhotonResoTask { SliceCache cache; - using EMCalPhotons = soa::Join; + using EMCalPhotons = soa::Join; using PcmPhotons = soa::Join; using PcmMcLegs = soa::Join;