CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
IMediumPropertyModel.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/MediumProperties.hpp>
12 
13 #include <corsika/framework/geometry/Point.hpp>
15 
16 namespace corsika {
17 
23  template <typename TModel>
24  class IMediumPropertyModel : public TModel {
25 
26  public:
33  virtual Medium getMedium() const = 0;
34 
38  virtual ~IMediumPropertyModel() = default;
39 
40  }; // END: class IMediumTypeModel
41 
42 } // namespace corsika
Import and extend the phys::units package.
`, since they are used everywhere as integral part of the framework.
An interface for type of media, needed e.g.
virtual ~IMediumPropertyModel()=default
A virtual default destructor.
virtual Medium getMedium() const =0
Evaluate the medium type at a given location.