CMS 3D CMS Logo

formulaVariableEvaluator.h
Go to the documentation of this file.
1 #ifndef CommonTools_Utils_formulaVariableEvaluator_h
2 #define CommonTools_Utils_formulaVariableEvaluator_h
3 // -*- C++ -*-
4 //
5 // Package: CommonTools/Utils
6 // Class : reco::formula::VariableEvaluator
7 //
16 //
17 // Original Author: Christopher Jones
18 // Created: Wed, 23 Sep 2015 18:06:27 GMT
19 //
20 
21 // system include files
22 
23 // user include files
24 #include "formulaEvaluatorBase.h"
25 
26 // forward declarations
27 
28 namespace reco {
29  namespace formula {
31  public:
32  explicit VariableEvaluator(unsigned int iIndex) : m_index(iIndex) {}
33 
34  // ---------- const member functions ---------------------
35  double evaluate(double const* iVariables, double const* iParameters) const final;
36  std::vector<std::string> abstractSyntaxTree() const final;
37 
38  private:
40 
42 
43  // ---------- member data --------------------------------
44  unsigned int m_index;
45  };
46  } // namespace formula
47 } // namespace reco
48 
49 #endif
reco::formula::EvaluatorBase
Definition: formulaEvaluatorBase.h:34
pfMETCorrectionType0_cfi.formula
formula
Definition: pfMETCorrectionType0_cfi.py:46
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
watchdog.const
const
Definition: watchdog.py:83
Utilities.operator
operator
Definition: Utilities.py:24
reco::formula::VariableEvaluator
Definition: formulaVariableEvaluator.h:30
reco::formula::VariableEvaluator::VariableEvaluator
VariableEvaluator(unsigned int iIndex)
Definition: formulaVariableEvaluator.h:32
reco::formula::VariableEvaluator::abstractSyntaxTree
std::vector< std::string > abstractSyntaxTree() const final
Definition: formulaVariableEvaluator.cc:24
reco::formula::VariableEvaluator::m_index
unsigned int m_index
Definition: formulaVariableEvaluator.h:44
formulaEvaluatorBase.h
reco::formula::VariableEvaluator::evaluate
double evaluate(double const *iVariables, double const *iParameters) const final
Definition: formulaVariableEvaluator.cc:20