diff --git a/Framework/ProcessSequence/DiscreteProcess.h b/Framework/ProcessSequence/DiscreteProcess.h deleted file mode 100644 index 40b54453007855540a72910ab9da708201b17b88..0000000000000000000000000000000000000000 --- 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