Forked from
Air Shower Physics / corsika
3885 commits behind the upstream repository.
-
ralfulrich authoredralfulrich authored
StackInspector.h 1.24 KiB
/**
* (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_StackInspector_StackInspector_h_
#define _Physics_StackInspector_StackInspector_h_
#include <corsika/process/ContinuousProcess.h>
#include <corsika/setup/SetupTrajectory.h>
namespace corsika::process {
namespace stack_inspector {
template <typename Stack>
class StackInspector
: public corsika::process::ContinuousProcess<StackInspector<Stack>> {
typedef typename Stack::ParticleType Particle;
public:
StackInspector(const bool aReport);
~StackInspector();
void Init();
// template <typename Particle, typename Trajectory, typename Stack>
EProcessReturn DoContinuous(Particle&, corsika::setup::Trajectory&, Stack& s) const;
// template <typename Particle>
void MinStepLength(Particle&, corsika::setup::Trajectory&) const;
private:
bool fReport;
mutable int fCountStep = 0;
};
} // namespace stack_inspector
} // namespace corsika::process
#endif