IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 6501af37 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan:
Browse files

SIBYLL coding style

parent 6f2ab230
No related branches found
No related tags found
1 merge request!111SIBYLL coding style
......@@ -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;
......
......@@ -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
......
......@@ -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;
......
......@@ -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
......
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