CMS 3D CMS Logo

formulaConstantEvaluator.h
Go to the documentation of this file.
1 #ifndef CommonTools_Utils_formulaConstantEvaluator_h
2 #define CommonTools_Utils_formulaConstantEvaluator_h
3 // -*- C++ -*-
4 //
5 // Package: CommonTools/Utils
6 // Class : reco::formula::ConstantEvaluator
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  {
32 
33  public:
34  explicit ConstantEvaluator(double iValue) : m_value(iValue) {}
35 
36 
37  // ---------- const member functions ---------------------
38  double evaluate(double const* iVariables, double const* iParameters) const final;
39  std::vector<std::string> abstractSyntaxTree() const final ;
40 
41  private:
42  ConstantEvaluator(const ConstantEvaluator&) = delete;
43 
44  const ConstantEvaluator& operator=(const ConstantEvaluator&) = delete;
45 
46  // ---------- member data --------------------------------
47  double m_value;
48  };
49  }
50 }
51 
52 
53 #endif
const ConstantEvaluator & operator=(const ConstantEvaluator &)=delete
std::vector< std::string > abstractSyntaxTree() const final
double evaluate(double const *iVariables, double const *iParameters) const final
fixed size matrix