@@ -297,13 +297,13 @@ struct EmcalMcTask {
297297
298298 // One templated fill function instead of 9 copy-pasted blocks
299299 template <const int type, o2::soa::is_iterator TCluster, o2::soa::is_iterator TMC >
300- void fillClusterHistos (HistogramRegistry& histRegistry, TCluster const & clu , TMC const & mcPart, float centOrMult)
300+ void fillClusterHistos (TCluster const & cluster , TMC const & mcPart, float centOrMult)
301301 {
302302 static constexpr std::string_view subDir = kSubDirs [type];
303303
304- histRegistry .fill (HIST (subDir) + HIST (" hM02" ), clu .m02 (), clu .e (), centOrMult);
305- histRegistry .fill (HIST (subDir) + HIST (" hEtaRel" ), clu .eta () - mcPart.eta (), clu .e (), centOrMult);
306- histRegistry .fill (HIST (subDir) + HIST (" hPhiRel" ), clu .phi () - mcPart.phi (), clu .e (), centOrMult);
304+ registry .fill (HIST (subDir) + HIST (" hM02" ), cluster .m02 (), cluster .e (), centOrMult);
305+ registry .fill (HIST (subDir) + HIST (" hEtaRel" ), cluster .eta () - mcPart.eta (), cluster .e (), centOrMult);
306+ registry .fill (HIST (subDir) + HIST (" hPhiRel" ), cluster .phi () - mcPart.phi (), cluster .e (), centOrMult);
307307 }
308308
309309 // PCM-EMCal same event
@@ -340,23 +340,23 @@ struct EmcalMcTask {
340340 mcPhoton1.setCursor (photonEMC.emmcparticleIds ()[0 ]);
341341
342342 if (std::abs (mcPhoton1.pdgCode ()) == PDG_t::kGamma ) {
343- fillClusterHistos<o2::em::emcal::mc::ParticleType::kPhoton >(registry, photonEMC, mcPhoton1, centOrMult);
343+ fillClusterHistos<o2::em::emcal::mc::ParticleType::kPhoton >(photonEMC, mcPhoton1, centOrMult);
344344 } else if (std::abs (mcPhoton1.pdgCode ()) == PDG_t::kElectron ) {
345- fillClusterHistos<o2::em::emcal::mc::ParticleType::kElectron >(registry, photonEMC, mcPhoton1, centOrMult);
345+ fillClusterHistos<o2::em::emcal::mc::ParticleType::kElectron >(photonEMC, mcPhoton1, centOrMult);
346346 } else if (mcPhoton1.pdgCode () == -PDG_t::kElectron ) {
347- fillClusterHistos<o2::em::emcal::mc::ParticleType::kPositron >(registry, photonEMC, mcPhoton1, centOrMult);
347+ fillClusterHistos<o2::em::emcal::mc::ParticleType::kPositron >(photonEMC, mcPhoton1, centOrMult);
348348 } else if (std::abs (mcPhoton1.pdgCode ()) == PDG_t::kPi0 ) {
349- fillClusterHistos<o2::em::emcal::mc::ParticleType::kPi0 >(registry, photonEMC, mcPhoton1, centOrMult);
349+ fillClusterHistos<o2::em::emcal::mc::ParticleType::kPi0 >(photonEMC, mcPhoton1, centOrMult);
350350 } else if (std::abs (mcPhoton1.pdgCode ()) == o2::constants::physics::Pdg::kEta ) {
351- fillClusterHistos<o2::em::emcal::mc::ParticleType::kEta >(registry, photonEMC, mcPhoton1, centOrMult);
351+ fillClusterHistos<o2::em::emcal::mc::ParticleType::kEta >(photonEMC, mcPhoton1, centOrMult);
352352 } else if (std::abs (mcPhoton1.pdgCode ()) == o2::constants::physics::Pdg::kOmega ) {
353- fillClusterHistos<o2::em::emcal::mc::ParticleType::kOmega >(registry, photonEMC, mcPhoton1, centOrMult);
353+ fillClusterHistos<o2::em::emcal::mc::ParticleType::kOmega >(photonEMC, mcPhoton1, centOrMult);
354354 } else if (std::abs (mcPhoton1.pdgCode ()) == PDG_t::kPiPlus ) {
355- fillClusterHistos<o2::em::emcal::mc::ParticleType::kPion >(registry, photonEMC, mcPhoton1, centOrMult);
355+ fillClusterHistos<o2::em::emcal::mc::ParticleType::kPion >(photonEMC, mcPhoton1, centOrMult);
356356 } else if (std::abs (mcPhoton1.pdgCode ()) == PDG_t::kKPlus ) {
357- fillClusterHistos<o2::em::emcal::mc::ParticleType::kKaon >(registry, photonEMC, mcPhoton1, centOrMult);
357+ fillClusterHistos<o2::em::emcal::mc::ParticleType::kKaon >(photonEMC, mcPhoton1, centOrMult);
358358 } else {
359- fillClusterHistos<o2::em::emcal::mc::ParticleType::kOther >(registry, photonEMC, mcPhoton1, centOrMult);
359+ fillClusterHistos<o2::em::emcal::mc::ParticleType::kOther >(photonEMC, mcPhoton1, centOrMult);
360360 }
361361 } // for (const auto& photonEMC : photonsEMCPerCollision) {
362362 }
0 commit comments