@@ -74,24 +74,24 @@ struct TestMCstdTabsRL {
7474 void processMCgen (aod::McCollision const & collision, aod::McParticles const & particles)
7575 {
7676
77- histos.get <TH2>(HIST (" Events/Truth/hGenIDvsCountCollisions" ))->Fill (collision.generatorsID (), 1 );
78- histos.get <TH2>(HIST (" Events/Truth/hGenIDvsNparticles" ))->Fill (collision.generatorsID (), particles.size ());
77+ histos.get <TH2>(HIST (" Events/Truth/hGenIDvsCountCollisions" ))->Fill (collision.getGeneratorId (), 1 );
78+ histos.get <TH2>(HIST (" Events/Truth/hGenIDvsNparticles" ))->Fill (collision.getGeneratorId (), particles.size ());
7979
8080 TLorentzVector mother;
8181 for (const auto & particle : particles) {
82- histos.get <TH2>(HIST (" Events/Truth/hGenIDvsPDGcodesAll" ))->Fill (collision.generatorsID (), particle.pdgCode ());
82+ histos.get <TH2>(HIST (" Events/Truth/hGenIDvsPDGcodesAll" ))->Fill (collision.getGeneratorId (), particle.pdgCode ());
8383 // if (!particle.isPhysicalPrimary()) continue;
8484 if (particle.has_mothers ())
8585 continue ;
8686 mother.SetPxPyPzE (particle.px (), particle.py (), particle.pz (), energy (pdg->Mass (particle.pdgCode ()), particle.px (), particle.py (), particle.pz ()));
87- histos.get <TH2>(HIST (" Events/Truth/hGenIDvsPDGcodesNoMother" ))->Fill (collision.generatorsID (), particle.pdgCode ());
88- histos.get <TH2>(HIST (" Events/Truth/hGenIDvsMotherMass" ))->Fill (collision.generatorsID (), mother.M ());
89- histos.get <TH2>(HIST (" Events/Truth/hGenIDvsMotherPt" ))->Fill (collision.generatorsID (), particle.pt ());
90- histos.get <TH2>(HIST (" Events/Truth/hGenIDvsMotherRap" ))->Fill (collision.generatorsID (), particle.y ());
87+ histos.get <TH2>(HIST (" Events/Truth/hGenIDvsPDGcodesNoMother" ))->Fill (collision.getGeneratorId (), particle.pdgCode ());
88+ histos.get <TH2>(HIST (" Events/Truth/hGenIDvsMotherMass" ))->Fill (collision.getGeneratorId (), mother.M ());
89+ histos.get <TH2>(HIST (" Events/Truth/hGenIDvsMotherPt" ))->Fill (collision.getGeneratorId (), particle.pt ());
90+ histos.get <TH2>(HIST (" Events/Truth/hGenIDvsMotherRap" ))->Fill (collision.getGeneratorId (), particle.y ());
9191 const auto & daughters = particle.daughters_as <aod::McParticles>();
92- histos.get <TH2>(HIST (" Events/Truth/hGenIDvsNdaughters" ))->Fill (collision.generatorsID (), daughters.size ());
92+ histos.get <TH2>(HIST (" Events/Truth/hGenIDvsNdaughters" ))->Fill (collision.getGeneratorId (), daughters.size ());
9393 for (const auto & daughter : daughters) {
94- histos.get <TH2>(HIST (" Events/Truth/hGenIDvsPDGcodesDaughters" ))->Fill (collision.generatorsID (), daughter.pdgCode ());
94+ histos.get <TH2>(HIST (" Events/Truth/hGenIDvsPDGcodesDaughters" ))->Fill (collision.getGeneratorId (), daughter.pdgCode ());
9595 }
9696 }
9797
0 commit comments