Auxiliary data structure to customize absorption length.
More...
#include <JPDFSupportkit.hh>
|
| static double | getAbsorptionLength (const double lambda) |
| | Get absorption length.
|
| |
| static double & | get_factor () |
| | Get reference to multiplication factor.
|
| |
| static double & | get_offset () |
| | Get reference to offset.
|
| |
| static mapped_type & | get_function () |
| | Get reference to global functon.
|
| |
|
| static constexpr const char *const | default_t = "default" |
| |
| static constexpr const char *const | nemo_t = "nemo" |
| |
| static constexpr const char *const | SmithAndBaker_t = "SmithAndBaker" |
| |
Auxiliary data structure to customize absorption length.
Definition at line 63 of file JPDFSupportkit.hh.
◆ JAbsorptionLength()
| JPHYSICS::JAbsorptionLength::JAbsorptionLength |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 74 of file JPDFSupportkit.hh.
75 {
79
83 }
double getAbsorptionLengthSmithAndBaker(const double lambda)
Absorption length of deep-sea water according Smith & Baker.
double getAbsorptionLength(const double lambda)
static double & get_offset()
Get reference to offset.
static constexpr const char *const default_t
static constexpr const char *const SmithAndBaker_t
static double & get_factor()
Get reference to multiplication factor.
static constexpr const char *const nemo_t
static mapped_type & get_function()
Get reference to global functon.
◆ getAbsorptionLength()
| static double JPHYSICS::JAbsorptionLength::getAbsorptionLength |
( |
const double | lambda | ) |
|
|
inlinestatic |
Get absorption length.
- Parameters
-
| lambda | wavelength of light [nm] |
- Returns
- absorption length [m]
Definition at line 132 of file JPDFSupportkit.hh.
◆ get_factor()
| static double & JPHYSICS::JAbsorptionLength::get_factor |
( |
| ) |
|
|
inlinestatic |
Get reference to multiplication factor.
- Returns
- factor
Definition at line 145 of file JPDFSupportkit.hh.
146 {
147 static double factor = 1.0;
148
149 return factor;
150 }
◆ get_offset()
| static double & JPHYSICS::JAbsorptionLength::get_offset |
( |
| ) |
|
|
inlinestatic |
Get reference to offset.
- Returns
- offset
Definition at line 158 of file JPDFSupportkit.hh.
159 {
160 static double offset = 1.0e6;
161
162 return offset;
163 }
◆ get_function()
| static mapped_type & JPHYSICS::JAbsorptionLength::get_function |
( |
| ) |
|
|
inlinestatic |
Get reference to global functon.
- Returns
- function
Definition at line 171 of file JPDFSupportkit.hh.
172 {
174
175 return f1;
176 }
◆ operator>>
Read absorption length from input stream.
- Parameters
-
| in | input stream |
| object | absorption length |
- Returns
- input stream
Definition at line 93 of file JPDFSupportkit.hh.
94 {
96
98
99 JAbsorptionLength::const_iterator p = object.find(option);
100
101 if (p != object.end())
103 else
104 in.setstate(ios_base::badbit);
105 }
106
107 return in;
108 }
◆ operator<<
Write absorption length to output stream.
- Parameters
-
| out | output stream |
| object | absorption length |
- Returns
- output stream
Definition at line 118 of file JPDFSupportkit.hh.
119 {
123 }
std::string getKey(const std::map< std::string, T > &map, const std::string &key, const T &value)
Auxiliary method to get preferred key for given value.
◆ default_t
| const char* const JPHYSICS::JAbsorptionLength::default_t = "default" |
|
staticconstexpr |
◆ nemo_t
| const char* const JPHYSICS::JAbsorptionLength::nemo_t = "nemo" |
|
staticconstexpr |
◆ SmithAndBaker_t
| const char* const JPHYSICS::JAbsorptionLength::SmithAndBaker_t = "SmithAndBaker" |
|
staticconstexpr |
The documentation for this struct was generated from the following file: