Jpp test-rotations-old-57-g407471f53
the software that should make you happy
|
Helper class for oscillation probability calculators. More...
#include <JOscProbHelper.hh>
Public Types | |
typedef JOscProbInterface::JOscParameters_t | JOscParameters_t |
typedef JOscProbInterface::JOscParameterReferences_t | JOscParameterReferences_t |
typedef JOscProbInterface::JParameter_t | JParameter_t |
typedef JOscProbInterface::argument_type | argument_type |
typedef JOscProbInterface::value_type | value_type |
typedef std::shared_ptr< JOscProbInterface > | pointer_type |
Public Member Functions | |
JOscProbHelper () | |
Default constructor. | |
JOscProbHelper (const pointer_type &pOscProb) | |
Copy constructor. | |
JOscProbHelper (const JOscProbInterface &oscProb) | |
Constructor. | |
void | configure (const pointer_type &pOscProb) |
Configure oscillation probability function. | |
void | configure (const JOscProbInterface &oscProb) |
Configure oscillation probability function. | |
JOscProbInterface & | getOscProbInterface () const |
Get reference to oscillation probability interface. | |
JOscParameterReferences_t & | getParameters () const |
Get reference to oscillation parameters interface. | |
void | set (const JOscParameters_t ¶meters) const |
Set oscillation parameters. | |
void | set (const std::string &name, const value_type &value) const |
Set value for a given oscillation parameter. | |
template<class ... Args> | |
void | set (const std::string &name, const value_type &value, const Args &...args) const |
Set value for given list of oscillation parameters. | |
double | getCosth (const double L) const |
Get cosine zenith angle for a given baseline. | |
double | getBaseline (const double costh) const |
Get baseline for a given cosine zenith angle. | |
double | getP (const JOscChannel &channel, const double energy, const double costh) const |
Get oscillation probability corresponding to given oscillation channel, neutrino energy and zenith angle. | |
double | getP (const JOscParameters_t ¶meters, const JOscChannel &channel, const double energy, const double costh) const |
Get oscillation probability for a given set of oscillation parameters and a given oscillation channel. | |
double | getP (const std::string &name, const double value, const JOscChannel &channel, const double E, const double costh) const |
Get oscillation probability for a given oscillation parameter and a given oscillation channel. | |
template<class ... Args> | |
double | getP (const std::string &name, const double value, const Args &...args) const |
Get oscillation probability for a given set of oscillation parameters and a given oscillation channel. | |
JProperties | getProperties (const JEquationParameters &eqpars=JOscProbInterface::getEquationParameters()) |
Get properties of this class. | |
JProperties | getProperties (const JEquationParameters &eqpars=JOscProbInterface::getEquationParameters()) const |
Get properties of this class. | |
Friends | |
std::istream & | operator>> (std::istream &in, JOscProbHelper &object) |
Read from input. | |
std::ostream & | operator<< (std::ostream &out, const JOscProbHelper &object) |
Write to output. | |
Helper class for oscillation probability calculators.
Definition at line 31 of file JOscProbHelper.hh.
Definition at line 34 of file JOscProbHelper.hh.
Definition at line 35 of file JOscProbHelper.hh.
Definition at line 36 of file JOscProbHelper.hh.
Definition at line 38 of file JOscProbHelper.hh.
Definition at line 39 of file JOscProbHelper.hh.
std::shared_ptr<JOscProbInterface> JOSCPROB::JOscProbHelper::pointer_type |
Definition at line 41 of file JOscProbHelper.hh.
|
inline |
|
inline |
Copy constructor.
pOscProb | shared pointer to oscillation probability function |
Definition at line 56 of file JOscProbHelper.hh.
|
inline |
Constructor.
oscProb | oscillation probability function |
Definition at line 66 of file JOscProbHelper.hh.
|
inline |
Configure oscillation probability function.
pOscProb | shared pointer to oscillation probability function |
Definition at line 77 of file JOscProbHelper.hh.
|
inline |
Configure oscillation probability function.
oscProb | oscillation probability function |
Definition at line 88 of file JOscProbHelper.hh.
|
inline |
Get reference to oscillation probability interface.
Definition at line 99 of file JOscProbHelper.hh.
|
inline |
Get reference to oscillation parameters interface.
Definition at line 116 of file JOscProbHelper.hh.
|
inline |
Set oscillation parameters.
parameters | oscillation parameters |
Definition at line 127 of file JOscProbHelper.hh.
|
inline |
Set value for a given oscillation parameter.
name | parameter name |
value | parameter value |
Definition at line 139 of file JOscProbHelper.hh.
|
inline |
Set value for given list of oscillation parameters.
name | parameter name |
value | parameter value |
args | remaining pairs of parameter names and values |
Definition at line 154 of file JOscProbHelper.hh.
|
inline |
Get cosine zenith angle for a given baseline.
L | baseline [km] |
Definition at line 168 of file JOscProbHelper.hh.
|
inline |
Get baseline for a given cosine zenith angle.
costh | cosine zenith angle |
Definition at line 180 of file JOscProbHelper.hh.
|
inline |
Get oscillation probability corresponding to given oscillation channel, neutrino energy and zenith angle.
channel | oscillation channel |
energy | neutrino energy [GeV] |
costh | cosine zenith angle |
Definition at line 195 of file JOscProbHelper.hh.
|
inline |
Get oscillation probability for a given set of oscillation parameters
and a given oscillation channel.
channel | oscillation channel |
parameters | oscillation parameters |
energy | neutrino energy [GeV] |
costh | cosine zenith angle |
Definition at line 213 of file JOscProbHelper.hh.
|
inline |
Get oscillation probability for a given oscillation parameter
and a given oscillation channel.
name | parameter name |
value | parameter value |
channel | oscillation channel |
E | neutrino energy [GeV] |
costh | cosine zenith angle |
Definition at line 233 of file JOscProbHelper.hh.
|
inline |
Get oscillation probability for a given set of oscillation parameters
and a given oscillation channel.
name | parameter name |
value | parameter value |
args | remaining arguments |
Definition at line 252 of file JOscProbHelper.hh.
|
inline |
Get properties of this class.
eqpars | equation parameters |
Definition at line 265 of file JOscProbHelper.hh.
|
inline |
Get properties of this class.
eqpars | equation parameters |
Definition at line 276 of file JOscProbHelper.hh.
|
friend |
Read from input.
Input syntax according to one of the following options:
<oscprob_file>
,oscprob=<oscprob_file>
,<oscprob_key>=<oscprob_value>[<end of line> <oscprob_key>=<oscprob_value> ...]
oroscprob.<oscprob_key>=<oscprob_value>[<end of line> oscprob.<oscprob_key>=<oscprob_value> ...]
, where:oscprob_key
refers to an oscillation probability calculator configuration key;oscprob_value
to an oscillation probability calculator configuration value;oscprob_file
to an oscillation probability calculator configuration file with key-value pairs.in | input stream |
object | object |
Definition at line 299 of file JOscProbHelper.hh.
|
friend |
Write to output.
out | output stream |
object | object |
Definition at line 373 of file JOscProbHelper.hh.