diff --git a/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_electrons.cxx b/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_electrons.cxx index 4aff5843820512b0fc8b50575721da171542e8b4..1bdfaea7d5b090e6c463f432331cd69119e3f4d1 100644 --- a/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_electrons.cxx +++ b/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_electrons.cxx @@ -79,17 +79,10 @@ void emcal_barrel_pions_electrons(int n_events = 1e6, double e_start = 0.0, doub GenVertexPtr v2 = std::make_shared<GenVertex>(); v1->add_particle_in(p1); v1->add_particle_in(p2); - v1->add_particle_out(p3); - v2->add_particle_in(p1); - v2->add_particle_in(p2); - v2->add_particle_out(p4); -/* - if (phi <= M_PI) {v1->add_particle_out(p3);} - if (phi > M_PI) {v1->add_particle_out(p4);} - */ + v1->add_particle_out(p3); + v1->add_particle_out(p4); evt.add_vertex(v1); - evt.add_vertex(v2); if (events_parsed == 0) { std::cout << "First event: " << std::endl; diff --git a/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_electrons_analysis.cxx b/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_electrons_analysis.cxx index 140c6c95e8667130a4b4d3d7f483b562f29d1d3b..fbb52837998e537f6b947b87f7f9ff3c12a541f9 100644 --- a/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_electrons_analysis.cxx +++ b/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_electrons_analysis.cxx @@ -70,7 +70,7 @@ void emcal_barrel_pions_electrons_analysis(const char* input_fname = "sim_output // Returns the pdgID of the particle auto getpid = [](std::vector<dd4pod::Geant4ParticleData> const& input) { - return input[2].pdgID; + return {input[2].pdgID, input[3].pdgID}; }; // Returns number of particle daughters