src
CommonTools
Utils
src
formulaConstantEvaluator.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: CommonTools/Utils
4
// Class : reco::formula::ConstantEvaluator
5
//
6
// Implementation:
7
// [Notes on implementation]
8
//
9
// Original Author: Christopher Jones
10
// Created: Wed, 23 Sep 2015 18:06:29 GMT
11
//
12
13
// system include files
14
15
// user include files
16
#include "
formulaConstantEvaluator.h
"
17
18
namespace
reco
{
19
namespace
formula
{
20
double
ConstantEvaluator::evaluate
(
double
const
*
/*iVariables*/
,
double
const
*
/*iParameters*/
)
const
{
21
return
m_value
;
22
}
23
24
std::vector<std::string>
ConstantEvaluator::abstractSyntaxTree
()
const
{
25
return
std::vector<std::string>{1,
std::to_string
(
m_value
)};
26
}
27
}
// namespace formula
28
}
// namespace reco
reco::formula::ConstantEvaluator::evaluate
double evaluate(double const *iVariables, double const *iParameters) const final
Definition:
formulaConstantEvaluator.cc:20
pfMETCorrectionType0_cfi.formula
formula
Definition:
pfMETCorrectionType0_cfi.py:46
reco::formula::ConstantEvaluator::m_value
double m_value
Definition:
formulaConstantEvaluator.h:44
formulaConstantEvaluator.h
to_string
static std::string to_string(const XMLCh *ch)
Definition:
TotemDAQMappingESSourceXML.cc:353
reco::formula::ConstantEvaluator::abstractSyntaxTree
std::vector< std::string > abstractSyntaxTree() const final
Definition:
formulaConstantEvaluator.cc:24
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:46
Generated for CMSSW Reference Manual by
1.8.14