#include <FormulaEvaluator.h>
Public Member Functions | |
template<typename V , typename P > | |
double | evaluate (V const &iVariables, P const &iParameters) const |
FormulaEvaluator (std::string const &iFormula) | |
unsigned int | numberOfParameters () const |
unsigned int | numberOfVariables () const |
Private Member Functions | |
double | evaluate (double const *iVariables, double const *iParameters) const |
void | throwWrongNumberOfParameters (size_t) const |
void | throwWrongNumberOfVariables (size_t) const |
Private Attributes | |
std::shared_ptr < formula::EvaluatorBase const > | m_evaluator |
unsigned int | m_nParameters = 0 |
unsigned int | m_nVariables = 0 |
Definition at line 66 of file FormulaEvaluator.h.
|
explicit |
Definition at line 678 of file FormulaEvaluator.cc.
References Exception, m_evaluator, m_nParameters, m_nVariables, eostools::move(), or, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 74 of file FormulaEvaluator.h.
References m_nParameters, m_nVariables, reco::formula::startingAddress(), throwWrongNumberOfParameters(), and throwWrongNumberOfVariables().
Referenced by SimpleJetCorrector::correctionBin(), and SimpleJetCorrector::invert().
|
private |
Definition at line 694 of file FormulaEvaluator.cc.
References m_evaluator.
|
inline |
Definition at line 85 of file FormulaEvaluator.h.
References m_nParameters.
Referenced by SimpleJetCorrector::invert().
|
inline |
|
private |
Definition at line 704 of file FormulaEvaluator.cc.
References Exception, fireworks::iSize, and m_nParameters.
Referenced by evaluate().
|
private |
Definition at line 700 of file FormulaEvaluator.cc.
References Exception, fireworks::iSize, and m_nVariables.
Referenced by evaluate().
|
private |
Definition at line 94 of file FormulaEvaluator.h.
Referenced by evaluate(), and FormulaEvaluator().
|
private |
Definition at line 96 of file FormulaEvaluator.h.
Referenced by evaluate(), FormulaEvaluator(), numberOfParameters(), and throwWrongNumberOfParameters().
|
private |
Definition at line 95 of file FormulaEvaluator.h.
Referenced by evaluate(), FormulaEvaluator(), numberOfVariables(), and throwWrongNumberOfVariables().