Auxiliary data structure to customize scattering probability.
More...
#include <JPDFSupportkit.hh>
|
| typedef double(*) | pF(const double) |
| |
Auxiliary data structure to customize scattering probability.
Definition at line 254 of file JPDFSupportkit.hh.
◆ pF
| double(*) JPHYSICS::JScatteringProbability_t::pF(const double) |
|
inherited |
◆ JScatteringProbability()
| JPHYSICS::JScatteringProbability::JScatteringProbability |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 261 of file JPDFSupportkit.hh.
262 {
265 (*this)[
"p00075"] =
p00075;
267 }
double p00075(const double x)
Model specific function to describe light scattering in water (p00075).
double petzhold(const double x)
Model specific function to describe light scattering in water (Petzhold).
double f4(const double x)
Model specific function to describe light scattering in water (f4).
double getScatteringProbability(const double x)
◆ getScatteringProbability()
| static double JPHYSICS::JScatteringProbability::getScatteringProbability |
( |
const double | x | ) |
|
|
inlinestatic |
Get scattering probability.
- Parameters
-
- Returns
- probability
Definition at line 320 of file JPDFSupportkit.hh.
321 {
323 }
double rayleigh(const double a, const double x)
Auxiliary method to describe light scattering in water (Rayleigh).
static double & get_weight()
Get reference to weight.
static pF & get_function()
Get reference to global functon.
◆ get_weight()
| static double & JPHYSICS::JScatteringProbability::get_weight |
( |
| ) |
|
|
inlinestaticprivate |
Get reference to weight.
- Returns
- weight
Definition at line 331 of file JPDFSupportkit.hh.
332 {
333 static double weight = 1.0;
334
335 return weight;
336 }
◆ get_function()
| static pF & JPHYSICS::JScatteringProbability::get_function |
( |
| ) |
|
|
inlinestaticprivate |
Get reference to global functon.
- Returns
- function
Definition at line 344 of file JPDFSupportkit.hh.
345 {
347
348 return f1;
349 }
double(*) pF(const double)
◆ operator>>
Read scattering probability from input stream.
- Parameters
-
| in | input stream |
| scattering | scattering probability |
- Returns
- input stream
Definition at line 277 of file JPDFSupportkit.hh.
278 {
280
282
283 JScatteringProbability::const_iterator p = scattering.find(option);
284
285 if (p != scattering.end())
287 else
288 in.setstate(ios_base::badbit);
289 }
290
291 return in;
292 }
◆ operator<<
Write scattering probability to output stream.
- Parameters
-
| out | output stream |
| scattering | scattering probability |
- Returns
- output stream
Definition at line 302 of file JPDFSupportkit.hh.
303 {
304 for (const_iterator i = scattering.begin(); i != scattering.end(); ++i) {
306 out << i->first << ' ';
307 }
308 }
309
311 }
The documentation for this struct was generated from the following file: