CORSIKA8  0.0.0
The framework to simulate particle cascades for astroparticle physics
UniformRefractiveIndex.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/IRefractiveIndexModel.hpp>
12 
13 namespace corsika {
14 
22  template <typename T>
23  class UniformRefractiveIndex final : public T {
24 
25  double n_;
26 
27  public:
36  template <typename... Args>
37  UniformRefractiveIndex(double const n, Args&&... args);
38 
45  double getRefractiveIndex(Point const&) const override;
46 
53  void setRefractiveIndex(double const& n);
54 
55  }; // END: class RefractiveIndex
56 
57 } // namespace corsika
58 
59 #include <corsika/detail/media/UniformRefractiveIndex.inl>
UniformRefractiveIndex(double const n, Args &&... args)
Construct a UniformRefractiveIndex.
The cascade namespace assembles all objects needed to simulate full particles cascades.
void setRefractiveIndex(double const &n)
Set the refractive index returned by this instance.
double getRefractiveIndex(Point const &) const override
Evaluate the refractive index at a given location.
A uniform refractive index.