1#ifndef __JAANET__JEVTWEIGHTFACTORTFORMULA__
2#define __JAANET__JEVTWEIGHTFACTORTFORMULA__
13#pragma GCC diagnostic push
14#pragma GCC diagnostic ignored "-Wall"
16#pragma GCC diagnostic pop
74 void load(
const char*
const formula)
78 if (this->Compile(formula)) {
102 return this->IsValid();
134 std::istream&
read(std::istream& in)
override final
140 streampos pos = in.tellg();
185 return in >>
static_cast<std::string&
>(object);
199 return out << static_cast<const std::string&>(
object);
221 template<
class JEvtWeightFactorTFormula_t>
231 Double_t* parameters = formula.GetParameters();
233 for (
int i = 0; i < formula.GetNpar(); ++i) {
235 const string parname = formula.GetParName(i);
237 (*this)[parname] = parameters[i];
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Utility class to parse parameter values.
Utility class to parse parameter values.
Simple data structure to support I/O of equations (see class JLANG::JEquation).
Data structure for object properties which require reloading whenever the property is reread.
Exception for accessing a value in a collection that is outside of its range.
Extensions to Evt data format.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Abstract base class for specifiable event-weight factors.
static const char *const getTypeKey()
Get type keyword.
void check_validity() const
Check validity of this event-weight factor.
static JEquationParameters & getEquationParameters()
Get equation parameters.