Newer
Older
/**
* (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 _Physics_NullModel_NullModel_h_
#define _Physics_NullModel_NullModel_h_
#include <corsika/process/ContinuousProcess.h>
#include <corsika/setup/SetupTrajectory.h>
namespace corsika::process::null_model {
class NullModel : public corsika::process::ContinuousProcess<NullModel> {
corsika::units::si::LengthType const fMaxStepLength;
ralfulrich
committed
NullModel(corsika::units::si::LengthType maxStepLength =
corsika::units::si::meter * std::numeric_limits<double>::infinity())
: fMaxStepLength(maxStepLength) {}
void Init();
ralfulrich
committed
template <typename Particle, typename Track, typename Stack>
process::EProcessReturn DoContinuous(Particle&, Track&, Stack&) const {
return EProcessReturn::eOk;
}
ralfulrich
committed
template <typename Particle, typename Track>
corsika::units::si::LengthType MaxStepLength(Particle&, Track&) const {
return fMaxStepLength;
}
};
} // namespace corsika::process::null_model