CommonTools
Utils
src
formulaVariableEvaluator.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: CommonTools/Utils
4
// Class : reco::formula::VariableEvaluator
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 "
formulaVariableEvaluator.h
"
17
18
namespace
reco
{
19
namespace
formula
{
20
double
VariableEvaluator::evaluate
(
double
const
* iVariables,
double
const
*
/*iParameters*/
)
const
{
21
return
iVariables[
m_index
];
22
}
23
24
std::vector<std::string>
VariableEvaluator::abstractSyntaxTree
()
const
{
25
return
std::vector<std::string>{1,
std::string
(
"var["
) + std::to_string(
m_index
) +
"]"
};
26
}
27
}
// namespace formula
28
}
// namespace reco
pfMETCorrectionType0_cfi.formula
formula
Definition:
pfMETCorrectionType0_cfi.py:46
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:45
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
reco::formula::VariableEvaluator::abstractSyntaxTree
std::vector< std::string > abstractSyntaxTree() const final
Definition:
formulaVariableEvaluator.cc:24
formulaVariableEvaluator.h
reco::formula::VariableEvaluator::m_index
unsigned int m_index
Definition:
formulaVariableEvaluator.h:44
reco::formula::VariableEvaluator::evaluate
double evaluate(double const *iVariables, double const *iParameters) const final
Definition:
formulaVariableEvaluator.cc:20
Generated for CMSSW Reference Manual by
1.8.16