CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
formulaParameterEvaluator.h
Go to the documentation of this file.
1 #ifndef CommonTools_Utils_formulaParameterEvaluator_h
2 #define CommonTools_Utils_formulaParameterEvaluator_h
3 // -*- C++ -*-
4 //
5 // Package: CommonTools/Utils
6 // Class : reco::formula::ParameterEvaluator
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 ParameterEvaluator(unsigned int iIndex) : m_index(iIndex) {}
35 
36 
37  // ---------- const member functions ---------------------
38  double evaluate(double const* iVariables, double const* iParameters) const override final;
39 
40  private:
41  ParameterEvaluator(const ParameterEvaluator&) = delete;
42 
43  const ParameterEvaluator& operator=(const ParameterEvaluator&) = delete;
44 
45  // ---------- member data --------------------------------
46  unsigned int m_index;
47  };
48  }
49 }
50 
51 
52 #endif
const ParameterEvaluator & operator=(const ParameterEvaluator &)=delete
double evaluate(double const *iVariables, double const *iParameters) const overridefinal