Jpp test-rotations-old
the software that should make you happy
|
Low-level interface for oscillation probability calculators. More...
#include <JOscProbInterface.hh>
Public Types | |
typedef JOscParametersHelper< double & > | JOscParametersHelper_t |
typedef JOscParametersInterface< double > | JOscParameters_t |
typedef JOscParametersInterface< double & > | JOscParameterReferences_t |
typedef JOscParameters_t::JOscParameter_t | JOscParameter_t |
typedef JOscParameters_t::JParameter_t | JParameter_t |
typedef JOscParameters_t::argument_type | argument_type |
typedef JOscParameters_t::value_type | value_type |
typedef std::unique_ptr< JOscParameters_t > | pointer_type |
typedef JClonable< JClonable_t >::clone_type | clone_type |
Public Member Functions | |
JOscProbInterface () | |
Default constructor. | |
JOscProbInterface (const JOscParameterReferences_t ¶meters) | |
Constructor. | |
template<class ... Args> | |
JOscProbInterface (const JOscParameterReferences_t ¶meters, const std::string &name, double &value, const Args &...args) | |
Constructor. | |
virtual | ~JOscProbInterface () |
Virtual destructor. | |
virtual double | getP (const JOscChannel &channel, const double E, const double costh) const =0 |
Get oscillation probability for a given oscillation channel. | |
double | getP (const JOscParameters_t ¶meters, const JOscChannel &channel, const double E, 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. | |
double | operator() (const JOscChannel &channel, const double E, const double costh) const |
Get oscillation probability for a given oscillation channel. | |
double | operator() (const JOscParameters_t ¶meters, const JOscChannel &channel, const double E, const double costh) const |
Get oscillation probability for a given set of oscillation parameters and a given oscillation channel. | |
double | operator() (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 | operator() (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. | |
virtual std::istream & | read (std::istream &in) |
Read configuration of oscillation probability calculator from input. | |
virtual std::ostream & | write (std::ostream &out) const |
Write configuration of oscillation probability calculator to output. | |
virtual double | getCosth (const double L) const =0 |
Get cosine zenith angle for a given baseline. | |
virtual double | getBaseline (const double costh) const =0 |
Get baseline for a given cosine zenith angle. | |
void | configure (const pointer_type &p) |
Configure oscillation parameters. | |
void | configure (const JOscParameters_t ¶meters) |
Configure oscillation parameters. | |
JOscParameters_t & | getParameters () const |
Get reference to oscillation parameters interface. | |
JOscParameters_t * | get () const |
Get pointer to oscillation parameters interface. | |
JOscParameter_t & | get (const std::string &name) const |
Get oscillation parameter. | |
void | set (const std::string &name, const value_type &value) const |
Set value for a given oscillation parameter. | |
void | set (const std::string &name, const value_type &value, const Args &...args) const |
Set value for given list of oscillation parameters. | |
void | set (const JOscParametersInterface< value_type > ¶meters) const |
Set oscillation parameters. | |
virtual JProperties | getProperties (const JEquationParameters &equation=JOscParameters_t::getEquationParameters()) |
Get properties of this class. | |
virtual JProperties | getProperties (const JEquationParameters &equation=JOscParameters_t::getEquationParameters()) const |
Get properties of this class. | |
virtual clone_type | clone () const override |
Get clone of this object. | |
Static Public Member Functions | |
static const char *const | getTypeKey () |
Get type keyword. | |
static JEquationParameters & | getEquationParameters () |
Get equation parameters. | |
static void | setEquationParameters (const JEquationParameters &eqpars) |
Set equation parameters. | |
Friends | |
std::istream & | operator>> (std::istream &in, JOscProbInterface &object) |
Read oscillation probability calculator from input. | |
std::ostream & | operator<< (std::ostream &out, const JOscProbInterface &object) |
Write oscillation probability calculator to output. | |
Low-level interface for oscillation probability calculators.
Definition at line 33 of file JOscProbInterface.hh.
Definition at line 40 of file JOscProbInterface.hh.
Definition at line 42 of file JOscProbInterface.hh.
Definition at line 43 of file JOscProbInterface.hh.
Definition at line 45 of file JOscProbInterface.hh.
Definition at line 46 of file JOscProbInterface.hh.
|
inherited |
Definition at line 35 of file JOscParametersHelper.hh.
|
inherited |
Definition at line 36 of file JOscParametersHelper.hh.
|
inherited |
Definition at line 38 of file JOscParametersHelper.hh.
|
inherited |
Definition at line 61 of file JClonable.hh.
|
inline |
|
inline |
Constructor.
parameters | oscillation parameters |
Definition at line 61 of file JOscProbInterface.hh.
|
inline |
Constructor.
parameters | oscillation parameters |
name | parameter name |
value | parameter value |
args | remaining pairs of parameter names and values |
Definition at line 75 of file JOscProbInterface.hh.
|
inlinevirtual |
|
inlinestatic |
Get type keyword.
Definition at line 95 of file JOscProbInterface.hh.
|
pure virtual |
Get oscillation probability for a given oscillation channel.
channel | oscillation channel |
E | neutrino energy [GeV] |
costh | cosine zenith angle |
|
inline |
Get oscillation probability for a given set of oscillation parameters
and a given oscillation channel.
channel | oscillation channel |
parameters | oscillation parameters |
E | neutrino energy [GeV] |
costh | cosine zenith angle |
Definition at line 124 of file JOscProbInterface.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 146 of file JOscProbInterface.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 167 of file JOscProbInterface.hh.
|
inline |
Get oscillation probability for a given oscillation channel.
channel | oscillation channel |
E | neutrino energy [GeV] |
costh | cosine zenith angle |
Definition at line 185 of file JOscProbInterface.hh.
|
inline |
Get oscillation probability for a given set of oscillation parameters
and a given oscillation channel.
channel | oscillation channel |
parameters | oscillation parameters |
E | neutrino energy [GeV] |
costh | cosine zenith angle |
Definition at line 203 of file JOscProbInterface.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 223 of file JOscProbInterface.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 242 of file JOscProbInterface.hh.
|
inlinestatic |
Get equation parameters.
Definition at line 255 of file JOscProbInterface.hh.
|
inlinestatic |
Set equation parameters.
eqpars | equation parameters |
Definition at line 268 of file JOscProbInterface.hh.
|
inlinevirtual |
Read configuration of oscillation probability calculator from input.
in | input stream |
Definition at line 280 of file JOscProbInterface.hh.
|
inlinevirtual |
Write configuration of oscillation probability calculator to output.
out | output stream |
Definition at line 303 of file JOscProbInterface.hh.
|
pure virtualinherited |
Get cosine zenith angle for a given baseline.
L | baseline [km] |
Implemented in JOSCPROB::JBaselineComputer.
|
pure virtualinherited |
Get baseline for a given cosine zenith angle.
costh | cosine zenith angle |
Implemented in JOSCPROB::JBaselineComputer.
|
inlineinherited |
Configure oscillation parameters.
p | unique pointer to oscillation parameters |
Definition at line 95 of file JOscParametersHelper.hh.
|
inlineinherited |
Configure oscillation parameters.
parameters | oscillation parameters |
Definition at line 106 of file JOscParametersHelper.hh.
|
inlineinherited |
Get reference to oscillation parameters interface.
Definition at line 126 of file JOscParametersHelper.hh.
|
inlineinherited |
Get pointer to oscillation parameters interface.
Definition at line 143 of file JOscParametersHelper.hh.
|
inlineinherited |
Get oscillation parameter.
name | parameter name |
Definition at line 155 of file JOscParametersHelper.hh.
|
inlineinherited |
Set value for a given oscillation parameter.
name | parameter name |
value | parameter value |
Definition at line 168 of file JOscParametersHelper.hh.
|
inlineinherited |
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 183 of file JOscParametersHelper.hh.
|
inlineinherited |
Set oscillation parameters.
parameters | oscillation parameters |
Definition at line 197 of file JOscParametersHelper.hh.
|
inlinevirtualinherited |
Get properties of this class.
equation | equation parameters |
Definition at line 219 of file JOscParametersHelper.hh.
|
inlinevirtualinherited |
Get properties of this class.
equation | equation parameters |
Definition at line 231 of file JOscParametersHelper.hh.
|
inlineoverridevirtualinherited |
Get clone of this object.
Reimplemented in JPHYSICS::JPD0Transformer_t< JArgument_t >, JPHYSICS::JPDFTransformer< 2, JArgument_t >, JPHYSICS::JPDFTransformer< 3, JArgument_t >, JPHYSICS::JPDFTransformer< 4, JArgument_t >, JPHYSICS::JPDFTransformer< 5, JArgument_t >, JPHYSICS::JPDFTransformer_t< JArgument_t >, JPHYSICS::JPDGTransformer_t< JArgument_t >, and JTOOLS::JMultiMapTransformer< N, JArgument_t >::JMultiMapDefaultTransformer.
Definition at line 69 of file JClonable.hh.
|
friend |
Read oscillation probability calculator from input.
in | input stream |
object | oscillation probability calculator |
Definition at line 316 of file JOscProbInterface.hh.
|
friend |
Write oscillation probability calculator to output.
out | output stream |
object | oscillation probability calculator |
Definition at line 329 of file JOscProbInterface.hh.