Skip to content
Snippets Groups Projects
Commit 2e05132f authored by Marshall Scott's avatar Marshall Scott
Browse files

Changed pid function

parent 1497787c
Branches
Tags
1 merge request!37Fix pions
This commit is part of merge request !29. Comments created here will be created in the context of that merge request.
...@@ -79,17 +79,10 @@ void emcal_barrel_pions_electrons(int n_events = 1e6, double e_start = 0.0, doub ...@@ -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>(); GenVertexPtr v2 = std::make_shared<GenVertex>();
v1->add_particle_in(p1); v1->add_particle_in(p1);
v1->add_particle_in(p2); v1->add_particle_in(p2);
v1->add_particle_out(p3);
v2->add_particle_in(p1); v1->add_particle_out(p3);
v2->add_particle_in(p2); v1->add_particle_out(p4);
v2->add_particle_out(p4);
/*
if (phi <= M_PI) {v1->add_particle_out(p3);}
if (phi > M_PI) {v1->add_particle_out(p4);}
*/
evt.add_vertex(v1); evt.add_vertex(v1);
evt.add_vertex(v2);
if (events_parsed == 0) { if (events_parsed == 0) {
std::cout << "First event: " << std::endl; std::cout << "First event: " << std::endl;
......
...@@ -70,7 +70,7 @@ void emcal_barrel_pions_electrons_analysis(const char* input_fname = "sim_output ...@@ -70,7 +70,7 @@ void emcal_barrel_pions_electrons_analysis(const char* input_fname = "sim_output
// Returns the pdgID of the particle // Returns the pdgID of the particle
auto getpid = [](std::vector<dd4pod::Geant4ParticleData> const& input) { auto getpid = [](std::vector<dd4pod::Geant4ParticleData> const& input) {
return input[2].pdgID; return {input[2].pdgID, input[3].pdgID};
}; };
// Returns number of particle daughters // Returns number of particle daughters
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment