From 8b912f051dda5afa0f9d4a8ccb31a324509d6878 Mon Sep 17 00:00:00 2001 From: Maximilian Reininghaus <maximilian.reininghaus@kit.edu> Date: Fri, 15 Feb 2019 11:35:12 +0100 Subject: [PATCH] removed obsolete DiscreteProcess.h --- Framework/ProcessSequence/DiscreteProcess.h | 52 --------------------- 1 file changed, 52 deletions(-) delete mode 100644 Framework/ProcessSequence/DiscreteProcess.h diff --git a/Framework/ProcessSequence/DiscreteProcess.h b/Framework/ProcessSequence/DiscreteProcess.h deleted file mode 100644 index 40b544530..000000000 --- a/Framework/ProcessSequence/DiscreteProcess.h +++ /dev/null @@ -1,52 +0,0 @@ - -/* - * (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 _include_corsika_discreteprocess_h_ -#define _include_corsika_discreteprocess_h_ - -#include <corsika/process/ProcessReturn.h> // for convenience -#include <corsika/setup/SetupTrajectory.h> -#include <iostream> // debug - -namespace corsika::process { - - /** - \class DiscreteProcess - - The structural base type of a process object in a - ProcessSequence. Both, the ProcessSequence and all its elements - are of type DiscreteProcess<T> - - */ - - template <typename derived> - struct DiscreteProcess { - - derived& GetRef() { return static_cast<derived&>(*this); } - const derived& GetRef() const { return static_cast<const derived&>(*this); } - - /// here starts the interface-definition part - // -> enforce derived to implement DoDiscrete... - template <typename Particle, typename Stack> - inline EProcessReturn DoDiscrete(Particle&, Stack&) const; - - template <typename Particle, typename Track> - inline double GetInteractionLength(Particle& p, Track& t) const; - - template <typename Particle, typename Track> - inline double GetInverseInteractionLength(Particle& p, Track& t) const { - return 1. / GetRef().GetInteractionLength(p, t); - } - }; - -} // namespace corsika::process - -#endif -- GitLab