@@ -29,14 +29,17 @@ struct otfParticlePrediction {
2929 ConfigurableAxis binsEta{" binsEta" , {100 , -5 , 5 }, " Binning of the Eta axis" };
3030 ConfigurableAxis binsPt{" binsPt" , {100 , 0 , 10 }, " Binning of the Pt axis" };
3131
32+ configurable<double > maxEtaParticle{" maxEtaParticle" , 5.0 , " Max eta of particles considered" }
33+
3234 // init function
33- void init ()
35+ void
36+ init ()
3437 {
3538
3639 const AxisSpec axisEta{binsEta, " #eta" };
3740 const AxisSpec axisPt{binsPt, " #it{p}_{T} (GeV/#it{c})" };
3841
39- histos.add <TH1>(" collisions/generated" , " collisions" , kTH1D , {{1 , -0.5 , 0 .5 }});
42+ histos.add <TH1>(" collisions/generated" , " collisions" , kTH1D , {{2 , -0.5 , 1 .5 }});
4043 histos.add <TH2>(" particles/generated/pi0" , " pi0" , kTH2D , {axisPt, axisEta});
4144 histos.add <TH2>(" particles/generated/eta" , " eta" , kTH2D , {axisPt, axisEta});
4245 histos.add <TH2>(" particles/generated/etaP" , " etaP" , kTH2D , {axisPt, axisEta});
@@ -48,12 +51,18 @@ struct otfParticlePrediction {
4851 void process (aod::McCollisions const & mcCollisions,
4952 aod::McParticles const & mcParticles)
5053 {
51- for (const auto & collission : mcCollisions) {
54+ for (const auto & collision : mcCollisions) {
5255 histos.fill (HIST (" collisions/generated" ), 0 );
56+ if (std::abs (collision.posZ ())) {
57+ histos.fill (HIST (" collisions/generated" ), 1 );
58+ }
5359 }
5460
5561 for (const auto & particle : mcParticles) {
5662 auto pdg = std::abs (particle.pdgCode ());
63+ if (particle.eta () < maxEtaParticle) {
64+ continue ;
65+ }
5766 if (pdg < 100 ) {
5867 continue ;
5968 }
0 commit comments