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 269 of file JPDFSupportkit.hh.
◆ pF
| double(*) JPHYSICS::JScatteringProbability_t::pF(const double) |
|
inherited |
◆ JScatteringProbability()
| JPHYSICS::JScatteringProbability::JScatteringProbability |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 276 of file JPDFSupportkit.hh.
277 {
280 (*this)[
"p00075"] =
p00075;
282 }
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 335 of file JPDFSupportkit.hh.
336 {
338 }
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 |
( |
| ) |
|
|
inlinestatic |
Get reference to weight.
- Returns
- weight
Definition at line 346 of file JPDFSupportkit.hh.
347 {
348 static double weight = 1.0;
349
350 return weight;
351 }
◆ get_function()
| static pF & JPHYSICS::JScatteringProbability::get_function |
( |
| ) |
|
|
inlinestatic |
Get reference to global functon.
- Returns
- function
Definition at line 359 of file JPDFSupportkit.hh.
360 {
362
363 return f1;
364 }
double(*) pF(const double)
◆ operator>>
Read scattering probability from input stream.
- Parameters
-
| in | input stream |
| scattering | scattering probability |
- Returns
- input stream
Definition at line 292 of file JPDFSupportkit.hh.
293 {
295
297
298 JScatteringProbability::const_iterator p = scattering.find(option);
299
300 if (p != scattering.end())
302 else
303 in.setstate(ios_base::badbit);
304 }
305
306 return in;
307 }
◆ operator<<
Write scattering probability to output stream.
- Parameters
-
| out | output stream |
| scattering | scattering probability |
- Returns
- output stream
Definition at line 317 of file JPDFSupportkit.hh.
318 {
319 for (const_iterator i = scattering.begin(); i != scattering.end(); ++i) {
321 out << i->first << ' ';
322 }
323 }
324
326 }
The documentation for this struct was generated from the following file: