1 #ifndef __JOSCPROB__JOSCPARAMETERSHELPER__
2 #define __JOSCPROB__JOSCPARAMETERSHELPER__
16 namespace JPP {
using namespace JOSCPROB; }
25 public std::shared_ptr<JOscParametersInterface<T> >
67 template<
class ...Args>
69 const std::string&
name,
74 this->
set(name, value, args...);
107 if (static_cast<const JOscParametersHelper_t&>(*
this)) {
108 return *(this->
get());
135 template<
class ...Args>
138 const Args& ...
args)
const
140 this->
set(name, value);
157 for (JProperties::const_iterator
i = properties.cbegin();
i != properties.cend(); ++
i) {
void set(const std::string &name, const value_type &value, const Args &...args) const
Set value for given list of oscillation parameters.
Abstract base class for oscillation parameter.
void set(const JOscParametersInterface< value_type > ¶meters) const
Set oscillation parameters.
JOscParameters_t::JParameter_t JParameter_t
JOscParameters_t & getParameters() const
Get reference to oscillation parameters interface.
JOscParameters_t::JOscParameter_t JOscParameter_t
JOscParametersHelper< T > JOscParametersHelper_t
JOscParametersHelper(const JOscParameters_t ¶meters, const std::string &name, argument_type value, const Args &...args)
Constructor.
virtual void set(const std::string &name, const value_type &value) const
Set value for a given oscillation parameter.
JOscParametersHelper(const JOscParameters_t ¶meters)
Constructor.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Utility class to parse parameter values.
*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
bool is_valid() const
Check validity of oscillation parameters.
JOscParametersHelper()
Default constructor.
JParameter_t::argument_type argument_type
void set(const std::string &name, const value_type &value)
Set value for a given oscillation parameter.
virtual clone_type clone() const override
Get clone of this object.
Exception for null pointer operation.
Helper class for oscillation parameters.
bool is_valid() const
Check validity of oscillation parameters.
virtual void configure(const JOscParameters_t ¶meters)
Configure oscillation parameters.
then fatal The output file must have the wildcard in the name
JOscParameters_t::value_type value_type
virtual JProperties getProperties(const JEquationParameters &equation=JOscParametersInterface_t::getEquationParameters())=0
Get properties of this class.
JParameter_t::value_type value_type
JOscParameters_t::argument_type argument_type
Interface class for sets of oscillation parameters.
JOscParametersInterface< T > JOscParameters_t
const value_type getValue() const
Get value of parameter.
std::shared_ptr< JOscParameters_t > pointer_type