Auxiliary data structure to customize scattering 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 scattering length.
Definition at line 147 of file JPDFSupportkit.hh.
◆ pF
| double(*) JPHYSICS::JScatteringLength_t::pF(const double) |
|
inherited |
◆ JScatteringLength()
| JPHYSICS::JScatteringLength::JScatteringLength |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 154 of file JPDFSupportkit.hh.
155 {
157 }
double getScatteringLength(const double lambda)
◆ getScatteringLength()
| static double JPHYSICS::JScatteringLength::getScatteringLength |
( |
const double | lambda | ) |
|
|
inlinestatic |
Get scattering length.
- Parameters
-
| lambda | wavelength of light [nm] |
- Returns
- scattering length [m]
Definition at line 210 of file JPDFSupportkit.hh.
211 {
213 }
static double & get_factor()
Get reference to multiplication factor.
static pF & get_function()
Get reference to global functon.
◆ get_factor()
| static double & JPHYSICS::JScatteringLength::get_factor |
( |
| ) |
|
|
inlinestaticprivate |
Get reference to multiplication factor.
- Returns
- factor
Definition at line 221 of file JPDFSupportkit.hh.
222 {
223 static double factor = 1.0;
224
225 return factor;
226 }
◆ get_function()
| static pF & JPHYSICS::JScatteringLength::get_function |
( |
| ) |
|
|
inlinestaticprivate |
Get reference to global functon.
- Returns
- function
Definition at line 234 of file JPDFSupportkit.hh.
235 {
237
238 return f1;
239 }
double(*) pF(const double)
◆ operator>>
Read scattering length from input stream.
- Parameters
-
| in | input stream |
| scattering | scattering length |
- Returns
- input stream
Definition at line 167 of file JPDFSupportkit.hh.
168 {
170
172
173 JScatteringLength::const_iterator p = scattering.find(option);
174
175 if (p != scattering.end())
177 else
178 in.setstate(ios_base::badbit);
179 }
180
181 return in;
182 }
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | out, |
|
|
const JScatteringLength & | scattering ) |
|
friend |
Write scattering length to output stream.
- Parameters
-
| out | output stream |
| scattering | scattering length |
- Returns
- output stream
Definition at line 192 of file JPDFSupportkit.hh.
193 {
194 for (const_iterator i = scattering.begin(); i != scattering.end(); ++i) {
196 out << i->first << ' ';
197 }
198 }
199
201 }
The documentation for this struct was generated from the following file: