Skip to content

Commit

Permalink
Merge pull request #130 from rest-for-physics/more-cosmic-neutrons
Browse files Browse the repository at this point in the history
More cosmic neutrons
  • Loading branch information
lobis authored Sep 29, 2024
2 parents 85dd054 + f481a94 commit 52c2ef1
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/TRestGeant4ParticleSourceCosmics.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,17 @@ mutex TRestGeant4ParticleSourceCosmics::fMutex;
unique_ptr<TRandom3> TRestGeant4ParticleSourceCosmics::fRandom = nullptr;

const map<string, string> geant4ParticleNames = {
{"neutron", "neutron"}, {"proton", "proton"}, {"gamma", "gamma"}, {"electron_minus", "e-"},
{"electron_plus", "e+"}, {"muon_minus", "mu-"}, {"muon_plus", "mu+"},
{"neutron", "neutron"},
{"proton", "proton"},
{"gamma", "gamma"},
{"electron_minus", "e-"},
{"electron_plus", "e+"},
{"muon_minus", "mu-"},
{"muon_plus", "mu+"},
//
{"neutron_below_1MeV", "neutron"},
{"neutron_above_10GeV", "neutron"},
{"neutron_between_1MeV_and_10GeV", "neutron"},
};

TRestGeant4ParticleSourceCosmics::TRestGeant4ParticleSourceCosmics() = default;
Expand Down

0 comments on commit 52c2ef1

Please sign in to comment.