Auxiliary data structure to customize PMT angular acceptance.
More...
#include <JPDFSupportkit.hh>
|
| static constexpr const char *const | default_t = "default" |
| |
Auxiliary data structure to customize PMT angular acceptance.
Definition at line 387 of file JPDFSupportkit.hh.
◆ JPMTAngularAcceptance()
| JPHYSICS::JPMTAngularAcceptance::JPMTAngularAcceptance |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 396 of file JPDFSupportkit.hh.
397 {
399
401 }
double getAngularAcceptance(const double x)
static constexpr const char *const default_t
static mapped_type & get_function()
Get reference to global functon.
◆ getAngularAcceptance()
| static double JPHYSICS::JPMTAngularAcceptance::getAngularAcceptance |
( |
const double | x | ) |
|
|
inlinestatic |
Get angular acceptance of PMT.
- Parameters
-
| x | cosine angle of incidence |
- Returns
- probability
Definition at line 448 of file JPDFSupportkit.hh.
◆ get_function()
| static mapped_type & JPHYSICS::JPMTAngularAcceptance::get_function |
( |
| ) |
|
|
inlinestatic |
Get reference to global functon.
- Returns
- function
Definition at line 459 of file JPDFSupportkit.hh.
460 {
462
463 return f1;
464 }
◆ operator>>
Read PMT angular acceptance from input stream.
- Parameters
-
| in | input stream |
| object | PMT angular acceptance |
- Returns
- input stream
Definition at line 411 of file JPDFSupportkit.hh.
412 {
414
415 for (string option; in >> option; ) {
416
417 JPMTAngularAcceptance::const_iterator p = object.find(option);
418
419 if (p != object.end())
421 else
422 in.setstate(ios_base::badbit);
423 }
424
425 return in;
426 }
◆ operator<<
Write PMT angular acceptance to output stream.
- Parameters
-
| out | output stream |
| object | PMT angular acceptance |
- Returns
- output stream
Definition at line 436 of file JPDFSupportkit.hh.
437 {
439 }
std::string getKey(const std::map< std::string, T > &map, const std::string &key, const T &value)
Auxiliary method to get preferred key for given value.
◆ default_t
| const char* const JPHYSICS::JPMTAngularAcceptance::default_t = "default" |
|
staticconstexpr |
The documentation for this struct was generated from the following file: