1#ifndef __JOSCPROB__JMIXINGANGLE__
2#define __JOSCPROB__JMIXINGANGLE__
85 return this->
isDefined() ? !(angle < 0.0 || angle > M_PI / 2.0) :
true;
122 THROW(
JValueOutOfRange,
"JMixingAngle::JMixingAngle(): Invalid mixing angle parameter grid " << grid);
172 const double minAngle = this->
getValue().getXmin();
173 const double maxAngle = this->
getValue().getXmax();
175 return (this->
isDefined() ? !(minAngle < 0.0 || minAngle > M_PI / 2.0 ||
176 maxAngle < 0.0 || maxAngle > M_PI / 2.0) :
true);
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
const value_type getValue() const
Get value of parameter.
const bool isDefined() const
Get status of parameter.
Exception for accessing a value in a collection that is outside of its range.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
JMixingAngle()
Default constructor.
JOscParameter< JGrid_t > JOscParameter_t
JMixingAngle(const JGrid_t &grid)
Constructor.
bool is_valid() const override final
Check validity of oscillation parameter.
JMixingAngle< JGrid_t > JMixingAngle_t
JOscParameter_t::JParameter_t JParameter_t
JMixingAngle(const int nx, const double xmin, const double xmax)
Constructor.
JMixingAngle_t & operator=(const JGrid_t &grid)
Assignment operator.
JMixingAngle(const double value)
Constructor.
Implementation of oscillation mixing angle.
JMixingAngle()
Default constructor.
JOscParameter_t::value_type value_type
JOscParameter< T > JOscParameter_t
JMixingAngle_t & operator=(const value_type &value)
Assignment operator.
JMixingAngle(argument_type value)
Constructor.
JOscParameter_t::JParameter_t JParameter_t
bool is_valid() const override final
Check validity of oscillation parameter.
JOscParameter_t::argument_type argument_type
JMixingAngle< T > JMixingAngle_t
Abstract base class for oscillation parameter.
void setValue(const value_type &value)
Set parameter.
JParameter_t::argument_type argument_type
JParameter_t::value_type value_type