From 2f99c859fedb716d5adc7c12943a17800d21f957 Mon Sep 17 00:00:00 2001 From: Maximilian Sackel <maximilian.sackel@gmx.de> Date: Tue, 3 Dec 2019 09:39:34 +0100 Subject: [PATCH] add continuous and interaction class-functions which has to be override --- Processes/Proposal/ContinuousProcess.h | 30 +++++++++++++++++++++++++ Processes/Proposal/Interaction.h | 31 ++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 Processes/Proposal/ContinuousProcess.h create mode 100644 Processes/Proposal/Interaction.h diff --git a/Processes/Proposal/ContinuousProcess.h b/Processes/Proposal/ContinuousProcess.h new file mode 100644 index 000000000..91d351746 --- /dev/null +++ b/Processes/Proposal/ContinuousProcess.h @@ -0,0 +1,30 @@ +/* + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + +#ifndef _corsika_process_proposal_interaction_h_ +#define _corsika_process_proposalythia_interaction_h_ + +#include <PROPOSAL/PROPOSAL.h> + + +namespace corsika::process::proposal { + + class Interaction : public corsika::process::ContinuousProcess<Continuous> { + private: + + + public: + template <typename Particle, typename Track> + EProcessReturn DoContinuous(Particle&, Track const&) const; + + template <typename Particle, typename Track> + units::si::LengthType MaxStepLength(Particle const& p, Track const& track) const; + } +} // namespace corsika::process diff --git a/Processes/Proposal/Interaction.h b/Processes/Proposal/Interaction.h new file mode 100644 index 000000000..4a3f533a1 --- /dev/null +++ b/Processes/Proposal/Interaction.h @@ -0,0 +1,31 @@ +/* + * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu + * + * See file AUTHORS for a list of contributors. + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + +#ifndef _corsika_process_proposal_interaction_h_ +#define _corsika_process_proposalythia_interaction_h_ + +#include <PROPOSAL/PROPOSAL.h> + + +namespace corsika::process::proposal { + + class Interaction : public corsika::process::InteractionProcess<Interaction> { + private: + + + public: + template <typename Particle> + EProcessReturn DoInteraction(Particle&); + + template <typename TParticle> + corsika::units::si::GrammageType GetInteractionLength(TParticle& p); + + } +} // namespace corsika::process -- GitLab