Auxiliary data structure to customize absorption length.
More...
#include <JPDFSupportkit.hh>
|
| typedef double(*) | pF(const double) |
| |
Auxiliary data structure to customize absorption length.
Definition at line 39 of file JPDFSupportkit.hh.
◆ pF
| double(*) JPHYSICS::JAbsorptionLength_t::pF(const double) |
|
inherited |
◆ JAbsorptionLength()
| JPHYSICS::JAbsorptionLength::JAbsorptionLength |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 46 of file JPDFSupportkit.hh.
47 {
50 }
double getAbsorptionLengthSmithAndBaker(const double lambda)
Absorption length of deep-sea water according Smith & Baker.
double getAbsorptionLength(const double lambda)
◆ 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 103 of file JPDFSupportkit.hh.
104 {
106
108 }
static double & get_offset()
Get reference to offset.
static double & get_factor()
Get reference to multiplication factor.
static pF & get_function()
Get reference to global functon.
◆ get_factor()
| static double & JPHYSICS::JAbsorptionLength::get_factor |
( |
| ) |
|
|
inlinestatic |
Get reference to multiplication factor.
- Returns
- factor
Definition at line 116 of file JPDFSupportkit.hh.
117 {
118 static double factor = 1.0;
119
120 return factor;
121 }
◆ get_offset()
| static double & JPHYSICS::JAbsorptionLength::get_offset |
( |
| ) |
|
|
inlinestatic |
Get reference to offset.
- Returns
- offset
Definition at line 129 of file JPDFSupportkit.hh.
130 {
131 static double offset = 1.0e6;
132
133 return offset;
134 }
◆ get_function()
| static pF & JPHYSICS::JAbsorptionLength::get_function |
( |
| ) |
|
|
inlinestatic |
Get reference to global functon.
- Returns
- function
Definition at line 142 of file JPDFSupportkit.hh.
143 {
145
146 return f1;
147 }
double(*) pF(const double)
◆ operator>>
Read absorption length from input stream.
- Parameters
-
| in | input stream |
| absorption | absorption length |
- Returns
- input stream
Definition at line 60 of file JPDFSupportkit.hh.
61 {
63
65
66 JAbsorptionLength::const_iterator p = absorption.find(option);
67
68 if (p != absorption.end())
70 else
71 in.setstate(ios_base::badbit);
72 }
73
74 return in;
75 }
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | out, |
|
|
const JAbsorptionLength & | absorption ) |
|
friend |
Write absorption length to output stream.
- Parameters
-
| out | output stream |
| absorption | absorption length |
- Returns
- output stream
Definition at line 85 of file JPDFSupportkit.hh.
86 {
87 for (const_iterator i = absorption.begin(); i != absorption.end(); ++i) {
89 out << i->first << ' ';
90 }
91 }
92
94 }
The documentation for this struct was generated from the following file: