IAP GITLAB

Skip to content
Snippets Groups Projects
Commit da5d757e authored by ralfulrich's avatar ralfulrich Committed by Ralf Ulrich
Browse files

conex, better PDG

parent ea9da2f4
No related branches found
No related tags found
1 merge request!265Add medium type, as new property (air, water, rock...)
......@@ -208,7 +208,8 @@ int main(int argc, char** argv) {
process::energy_loss::EnergyLoss eLoss{showerAxis, cut.GetECut()};
corsika::process::conex_source_cut::CONEXSourceCut conex(
center, showerAxis, t, injectionHeight, E0, particles::Code::Proton);
center, showerAxis, t, injectionHeight, E0,
particles::GetPDG(particles::Code::Proton));
process::on_shell_check::OnShellCheck reset_particle_mass(1.e-3, 1.e-1, false);
......
......@@ -191,7 +191,7 @@ CONEXSourceCut::CONEXSourceCut(geometry::Point center,
units::si::LengthType groundDist,
units::si::LengthType injectionHeight,
units::si::HEPEnergyType primaryEnergy,
particles::Code primaryPID)
particles::PDGCode primaryPDG)
: center_{center}
, showerAxis_{showerAxis}
, groundDist_{groundDist}
......@@ -283,7 +283,7 @@ CONEXSourceCut::CONEXSourceCut(geometry::Point center,
std::cout << "theta (deg) = " << theta << "; phi (deg) = " << phi << std::endl;
int ipart = static_cast<int>(particles::GetPDG(primaryPID));
int ipart = static_cast<int>(primaryPDG);
auto rng = corsika::random::RNGManager::GetInstance().GetRandomStream("cascade");
double dimpact = 0.; // valid only if shower core is fixed on the observation plane; for
......
......@@ -31,7 +31,7 @@ namespace corsika::process {
CONEXSourceCut(geometry::Point center, environment::ShowerAxis const& showerAxis,
units::si::LengthType groundDist,
units::si::LengthType injectionHeight,
units::si::HEPEnergyType primaryEnergy, particles::Code pid);
units::si::HEPEnergyType primaryEnergy, particles::PDGCode pdg);
corsika::process::EProcessReturn DoSecondaries(corsika::setup::StackView&);
void SolveCE();
......
......@@ -90,7 +90,8 @@ TEST_CASE("CONEXSourceCut") {
[[maybe_unused]] process::sibyll::NuclearInteraction sibyllNuc(sibyll, env);
corsika::process::conex_source_cut::CONEXSourceCut conex(
center, showerAxis, t, injectionHeight, E0, particles::Code::Proton);
center, showerAxis, t, injectionHeight, E0,
particles::GetPDG(particles::Code::Proton));
HEPEnergyType const Eem{1_PeV};
auto const momentum = showerAxis.GetDirection() * Eem;
......
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