1 #ifndef __JOSCPROB__JCOMPLEXPHASE__
2 #define __JOSCPROB__JCOMPLEXPHASE__
85 return this->
isDefined() ? !(phase < 0.0 || phase > 2 * M_PI) :
true;
184 const double minPhase = this->
getValue().getXmin();
185 const double maxPhase = this->
getValue().getXmax();
187 return (this->
isDefined() ? !(minPhase < 0.0 || minPhase > 2 * M_PI ||
188 maxPhase < 0.0 || maxPhase > 2 * M_PI) :
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.
JClass< T >::argument_type argument_type
JClass< T >::value_type value_type
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).
JOscParameter< JGrid_t > JOscParameter_t
JComplexPhase()
Default constructor.
static JComplexPhase_t make_parameter(const double value)
Auxiliary function to create a complex phase parameter grid.
JComplexPhase_t & operator=(const JGrid_t &grid)
Assignment operator.
JOscParameter_t::JParameter_t JParameter_t
JComplexPhase< JGrid_t > JComplexPhase_t
JComplexPhase(const JGrid_t &grid)
Constructor.
bool is_valid() const override final
Check validity of oscillation parameter.
JComplexPhase(const int nx, const double xmin, const double xmax)
Constructor.
JComplexPhase(const double value)
Constructor.
Implementation of oscillation complex phase.
JComplexPhase(argument_type value)
Constructor.
JOscParameter_t::argument_type argument_type
JOscParameter_t::JParameter_t JParameter_t
bool is_valid() const override final
Check validity of oscillation parameter.
JComplexPhase()
Default constructor.
JOscParameter< T > JOscParameter_t
JComplexPhase_t & operator=(const value_type &value)
Assignment operator.
JComplexPhase< T > JComplexPhase_t
static JComplexPhase_t make_parameter(argument_type value)
Auxiliary function to create a complex phase parameter grid.
JOscParameter_t::value_type value_type
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