CORSIKA8  0.0.0
The framework to simulate particle cascades for astroparticle physics
ExponentialRefractiveIndex.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 ExponentialRefractiveIndex : public T {
24 
25  double n_0;
26  InverseLengthType lambda_;
27 
28  public:
38  template <typename... Args>
39  ExponentialRefractiveIndex(double const n0, InverseLengthType const lambda,
40  Args&&... args);
41 
48  double getRefractiveIndex(Point const& point) const final override;
49 
50  }; // END: class ExponentialRefractiveIndex
51 
52 } // namespace corsika
53 
54 #include <corsika/detail/media/ExponentialRefractiveIndex.inl>
double getRefractiveIndex(Point const &point) const final override
Evaluate the refractive index at a given location using its z-coordinate.
The cascade namespace assembles all objects needed to simulate full particles cascades.
ExponentialRefractiveIndex(double const n0, InverseLengthType const lambda, Args &&... args)
Construct an ExponentialRefractiveIndex.