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

Changed back

parent f5a3ac29
Branches
No related tags found
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.
...@@ -80,8 +80,8 @@ void emcal_barrel_pions_electrons(int n_events = 1e6, double e_start = 0.0, doub ...@@ -80,8 +80,8 @@ void emcal_barrel_pions_electrons(int n_events = 1e6, double e_start = 0.0, doub
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); if (r1 -> Uniform(0,1) <= 0.5) {v1->add_particle_out(p3);}
v1->add_particle_out(p4); else {v1->add_particle_out(p4);}
evt.add_vertex(v1); evt.add_vertex(v1);
if (events_parsed == 0) { if (events_parsed == 0) {
......
...@@ -70,8 +70,8 @@ void emcal_barrel_pions_electrons_analysis(const char* input_fname = "sim_output ...@@ -70,8 +70,8 @@ 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) {
std::vector<int> result = {input[2].pdgID, input[3].pdgID}; //std::vector<int> result = {input[2].pdgID, input[3].pdgID};
return result; return input[2].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