CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
IEmpty.hpp
1 /*
2  * (c) Copyright 2020 CORSIKA Project, corsika-project@lists.kit.edu
3  *
4  * This software is distributed under the terms of the GNU General Public
5  * Licence version 3 (GPL Version 3). See file LICENSE for a full version of
6  * the license.
7  */
8 
9 #pragma once
10 
12 #include <corsika/framework/geometry/BaseTrajectory.hpp>
13 
14 namespace corsika {
15 
26  class IEmpty {
27  public:
28  virtual LengthType getArclengthFromGrammage(BaseTrajectory const&,
29  GrammageType) const = 0;
30 
31  virtual ~IEmpty() {}
32  };
33 
34  template <typename TModel = IEmpty>
35  class Empty : public TModel {
36  public:
37  LengthType getArclengthFromGrammage(BaseTrajectory const&, GrammageType) const {
38  return 0. * meter;
39  }
40  };
41 
42 } // namespace corsika
Import and extend the phys::units package.
`, since they are used everywhere as integral part of the framework.
A Trajectory is a description of a momvement of an object in three-dimensional space that describes t...
Intended for usage as default template argument for environments with no properties.
Definition: IEmpty.hpp:26