IAP GITLAB

Skip to content
Snippets Groups Projects
Commit bf16a02a authored by Jean-Marco Alameddine's avatar Jean-Marco Alameddine
Browse files

Set energy_production_threshold for PROPOSAL in mars and water cascade_examples

parent 04fc0f77
No related branches found
No related tags found
1 merge request!598Set energy_production_threshold for PROPOSAL in mars and water cascade_examples
Pipeline #12538 passed
...@@ -312,6 +312,15 @@ int main(int argc, char** argv) { ...@@ -312,6 +312,15 @@ int main(int argc, char** argv) {
HEPEnergyType const hadcut = 1_GeV; HEPEnergyType const hadcut = 1_GeV;
ParticleCut<SubWriter<decltype(dEdX)>> cut(emcut, emcut, hadcut, hadcut, true, dEdX); ParticleCut<SubWriter<decltype(dEdX)>> cut(emcut, emcut, hadcut, hadcut, true, dEdX);
// tell proposal that we are interested in all energy losses above the particle cut
set_energy_production_threshold(Code::Electron, std::min({emcut, hadcut}));
set_energy_production_threshold(Code::Positron, std::min({emcut, hadcut}));
set_energy_production_threshold(Code::Photon, std::min({emcut, hadcut}));
set_energy_production_threshold(Code::MuMinus, std::min({emcut, hadcut}));
set_energy_production_threshold(Code::MuPlus, std::min({emcut, hadcut}));
set_energy_production_threshold(Code::TauMinus, std::min({emcut, hadcut}));
set_energy_production_threshold(Code::TauPlus, std::min({emcut, hadcut}));
/* === START: SETUP PROCESS LIST === */ /* === START: SETUP PROCESS LIST === */
corsika::sibyll::Interaction sibyll{env}; corsika::sibyll::Interaction sibyll{env};
InteractionCounter sibyllCounted(sibyll); InteractionCounter sibyllCounted(sibyll);
......
...@@ -212,6 +212,15 @@ int main(int argc, char** argv) { ...@@ -212,6 +212,15 @@ int main(int argc, char** argv) {
HEPEnergyType const hadCut = eCut; HEPEnergyType const hadCut = eCut;
ParticleCut<SubWriter<decltype(dEdX)>> cut(emCut, emCut, hadCut, hadCut, true, dEdX); ParticleCut<SubWriter<decltype(dEdX)>> cut(emCut, emCut, hadCut, hadCut, true, dEdX);
// tell proposal that we are interested in all energy losses above the particle cut
set_energy_production_threshold(Code::Electron, std::min({emcut, hadcut}));
set_energy_production_threshold(Code::Positron, std::min({emcut, hadcut}));
set_energy_production_threshold(Code::Photon, std::min({emcut, hadcut}));
set_energy_production_threshold(Code::MuMinus, std::min({emcut, hadcut}));
set_energy_production_threshold(Code::MuPlus, std::min({emcut, hadcut}));
set_energy_production_threshold(Code::TauMinus, std::min({emcut, hadcut}));
set_energy_production_threshold(Code::TauPlus, std::min({emcut, hadcut}));
// hadronic interactions // hadronic interactions
HEPEnergyType heHadronModelThreshold = std::pow(10, 1.9) * 1_GeV; HEPEnergyType heHadronModelThreshold = std::pow(10, 1.9) * 1_GeV;
corsika::sibyll::Interaction sibyll(env); corsika::sibyll::Interaction sibyll(env);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment