CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
MediumPropertyModel.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/media/IMediumPropertyModel.hpp>
12 
13 namespace corsika {
14 
18  template <typename T>
19  class MediumPropertyModel : public T {
20 
21  Medium medium_;
22 
23  public:
29  template <typename... Args>
30  MediumPropertyModel(Medium const medium, Args&&... args);
31 
38  Medium getMedium() const override;
39 
46  void setMedium(Medium const medium);
47 
48  }; // END: class MediumPropertyModel
49 
50 } // namespace corsika
51 
52 #include <corsika/detail/media/MediumPropertyModel.inl>
MediumPropertyModel(Medium const medium, Args &&... args)
Construct a MediumPropertyModel.
void setMedium(Medium const medium)
Set the medium type.
`, since they are used everywhere as integral part of the framework.
Medium getMedium() const override
Evaluate the medium type at a given location.
A model for the energy loss property of a medium.