CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
SecondaryParticle.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 
11 #include <corsika/framework/geometry/Vector.hpp>
14 
15 #include <vector>
16 
17 namespace corsika::history {
18 
24  HEPEnergyType const energy_;
25  Vector<hepmomentum_d> const momentum_;
26  Code const pid_;
27 
28  public:
29  SecondaryParticle(HEPEnergyType energy, Vector<hepmomentum_d> momentum, Code pid)
30  : energy_{energy}
31  , momentum_{momentum}
32  , pid_{pid} {}
33  };
34 
35 } // namespace corsika::history
Import and extend the phys::units package.
This class stores the non-common properties of secondaries in an event.
Interface to particle properties.