Auxiliary data structure to customize absorption length.
More...
#include <JPDFSupportkit.hh>
|
| typedef double(*) | pF(const double) |
| |
|
| static double & | get_factor () |
| | Get reference to multiplication factor.
|
| |
| static pF & | get_function () |
| | Get reference to global functon.
|
| |
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 }
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 |
( |
| ) |
|
|
inlinestaticprivate |
Get reference to multiplication factor.
- Returns
- factor
Definition at line 114 of file JPDFSupportkit.hh.
115 {
116 static double factor = 1.0;
117
118 return factor;
119 }
◆ get_function()
| static pF & JPHYSICS::JAbsorptionLength::get_function |
( |
| ) |
|
|
inlinestaticprivate |
Get reference to global functon.
- Returns
- function
Definition at line 127 of file JPDFSupportkit.hh.
128 {
130
131 return f1;
132 }
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: