diff --git a/Processes/Sibyll/Decay.cc b/Processes/Sibyll/Decay.cc index 7a865e92fa08d606c68c5bad782e0a70e826f101..9cb42f0c5c2f20db356218450684b41d5d6f1bd5 100644 --- a/Processes/Sibyll/Decay.cc +++ b/Processes/Sibyll/Decay.cc @@ -24,9 +24,8 @@ using std::vector; using namespace corsika; using namespace corsika::setup; -using Projectile = corsika::setup::StackView::ParticleType; -using Particle = corsika::setup::Stack::ParticleType; -using Track = Trajectory; +using SetupProjectile = corsika::setup::StackView::ParticleType; +using SetupParticle = corsika::setup::Stack::ParticleType; namespace corsika::process::sibyll { @@ -104,7 +103,7 @@ namespace corsika::process::sibyll { } template <> - units::si::TimeType Decay::GetLifetime(Particle const& vP) { + units::si::TimeType Decay::GetLifetime(SetupParticle const& vP) const { using namespace units::si; HEPEnergyType E = vP.GetEnergy(); @@ -133,7 +132,7 @@ namespace corsika::process::sibyll { } template <> - void Decay::DoDecay(Projectile& vP) { + void Decay::DoDecay(SetupProjectile& vP) { using geometry::Point; using namespace units::si; diff --git a/Processes/Sibyll/Decay.h b/Processes/Sibyll/Decay.h index 5dc06bd0cfc6db1a59c74f04dd78971b3f01a748..03efcb97138f2525b676ea66e0bbe121fc4045dc 100644 --- a/Processes/Sibyll/Decay.h +++ b/Processes/Sibyll/Decay.h @@ -22,7 +22,7 @@ namespace corsika::process { namespace sibyll { class Decay : public corsika::process::DecayProcess<Decay> { - std::vector<particles::Code> fTrackedParticles; + std::vector<particles::Code> const fTrackedParticles; int fCount = 0; public: @@ -36,11 +36,11 @@ namespace corsika::process { void SetAllStable(); void SetHadronsUnstable(); - template <typename Particle> - corsika::units::si::TimeType GetLifetime(Particle const&); + template <typename TParticle> + corsika::units::si::TimeType GetLifetime(TParticle const&) const; - template <typename Projectile> - void DoDecay(Projectile&); + template <typename TProjectile> + void DoDecay(TProjectile&); }; } // namespace sibyll } // namespace corsika::process diff --git a/Processes/Sibyll/Interaction.cc b/Processes/Sibyll/Interaction.cc index 949086012af40a584c35d9e5dc9c806526828932..d674f9a3a775970bf60de08c0cf33b55fc73a17d 100644 --- a/Processes/Sibyll/Interaction.cc +++ b/Processes/Sibyll/Interaction.cc @@ -118,7 +118,8 @@ namespace corsika::process::sibyll { } template <> - units::si::GrammageType Interaction::GetInteractionLength(SetupParticle& vP, Track&) const { + units::si::GrammageType Interaction::GetInteractionLength(SetupParticle& vP, + Track&) const { using namespace units; using namespace units::si; diff --git a/Processes/Sibyll/Interaction.h b/Processes/Sibyll/Interaction.h index 4e1899f685e9254c3207850c227328340a051e94..e7d7a0902116c2fceb9240cf9266d04a2ea2fd72 100644 --- a/Processes/Sibyll/Interaction.h +++ b/Processes/Sibyll/Interaction.h @@ -49,12 +49,11 @@ namespace corsika::process::sibyll { } std::tuple<corsika::units::si::CrossSectionType, corsika::units::si::CrossSectionType> - GetCrossSection(const corsika::particles::Code BeamId, - const corsika::particles::Code TargetId, - const corsika::units::si::HEPEnergyType CoMenergy) const; + GetCrossSection(const corsika::particles::Code, const corsika::particles::Code, + const corsika::units::si::HEPEnergyType) const; - template <typename Particle, typename Track> - corsika::units::si::GrammageType GetInteractionLength(Particle&, Track&) const; + template <typename TParticle, typename TTrack> + corsika::units::si::GrammageType GetInteractionLength(TParticle&, TTrack&) const; /** In this function SIBYLL is called to produce one event. The