#include <FormulaEvaluator.h>
Public Member Functions | |
std::vector< std::string > | abstractSyntaxTree () const |
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 67 of file FormulaEvaluator.h.
|
explicit |
Definition at line 902 of file FormulaEvaluator.cc.
References cms::cuda::assert(), DEBUG_STATE, Exception, pfMETCorrectionType0_cfi::formula, info(), lastIndex, m_evaluator, m_nParameters, m_nVariables, eostools::move(), or, and AlCaHLTBitMon_QueryRunRegistry::string.
std::vector< std::string > FormulaEvaluator::abstractSyntaxTree | ( | ) | const |
|
private |
Definition at line 938 of file FormulaEvaluator.cc.
References m_evaluator.
|
inline |
Definition at line 73 of file FormulaEvaluator.h.
References m_nParameters, m_nVariables, reco::formula::startingAddress(), throwWrongNumberOfParameters(), and throwWrongNumberOfVariables().
Referenced by SimpleJetCorrector::correctionBin(), SimpleJetCorrector::invert(), main(), CTPPSTimingTrackRecognition< CTPPSDiamondLocalTrack, CTPPSDiamondRecHit >::producePartialTracks(), ETLElectronicsSim::run(), and TotemTimingConversions::voltSamples().
|
inline |
Definition at line 83 of file FormulaEvaluator.h.
References m_nParameters.
Referenced by CTPPSTimingTrackRecognition< CTPPSDiamondLocalTrack, CTPPSDiamondRecHit >::CTPPSTimingTrackRecognition(), SimpleJetCorrector::invert(), and TotemTimingConversions::voltSamples().
|
inline |
Definition at line 84 of file FormulaEvaluator.h.
References m_nVariables.
Referenced by TotemTimingConversions::voltSamples().
|
private |
Definition at line 946 of file FormulaEvaluator.cc.
References Exception, and m_nParameters.
Referenced by evaluate().
|
private |
Definition at line 942 of file FormulaEvaluator.cc.
References Exception, and m_nVariables.
Referenced by evaluate().
|
private |
Definition at line 94 of file FormulaEvaluator.h.
Referenced by abstractSyntaxTree(), 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().