1 #ifndef __JOSCPROB__JOSCPROBINTERFACE__
2 #define __JOSCPROB__JOSCPROBINTERFACE__
19 namespace JPP {
using namespace JOSCPROB; }
68 const double costh)
const = 0;
84 const double costh)
const
86 this->
set(parameters);
88 return getP(channel, E, costh);
107 const double costh)
const
109 this->
set(name, value);
111 return getP(channel, E, costh);
123 template<
class ...Args>
126 const Args& ...
args)
const
128 this->
set(name, value);
130 return getP(args...);
144 const double costh)
const
146 return getP(channel, E, costh);
163 const double costh)
const
165 return getP(parameters, channel, E, costh);
184 const double costh)
const
186 return getP(name, value, channel, E, costh);
198 template<
class ...Args>
201 const Args& ...
args)
const
203 return getP(name, value, args...);
Abstract base class for oscillation parameter.
virtual double getP(const JOscChannel &channel, const double E, const double costh) const =0
Get oscillation probability for a given oscillation channel.
then usage $script< input file >[option[primary[working directory]]] nWhere option can be E
Neutrino oscillation channel.
JOscParametersHelper_t::JOscParameters_t JOscParameters_t
JOscParametersHelper_t::JOscParameter_t JOscParameter_t
JOscParametersHelper< double > JOscParametersHelper_t
Low-level interface for oscillation baseline calculators.
Low-level interface for oscillation probability calculators.
then echo Enter input within $TIMEOUT_S seconds echo n User name
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
virtual ~JOscProbInterface()
Virtual destructor.
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...
virtual void set(const std::string &name, argument_type value) const
Set value for a given oscillation parameter.
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...
Helper class for oscillation parameters.
JOscParametersHelper_t::JParameter_t JParameter_t
Template class for object cloning.
JOscParametersHelper_t::argument_type argument_type
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...
JOscProbInterface()
Default constructor.
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...
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...
double operator()(const JOscChannel &channel, const double E, const double costh) const
Get oscillation probability for a given oscillation channel.
JOscParameters_t::argument_type argument_type
Interface class for sets of oscillation parameters.
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...