Main Page
Namespaces
Classes
Package Documentation
CommonTools
Utils
src
formulaEvaluatorBase.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: CommonTools/Utils
4
// Class : reco::formula::EvaluatorBase
5
//
6
// Implementation:
7
// [Notes on implementation]
8
//
9
// Original Author: Christopher Jones
10
// Created: Wed, 23 Sep 2015 16:26:03 GMT
11
//
12
13
// system include files
14
#include <algorithm>
15
16
// user include files
17
#include "
CommonTools/Utils/src/formulaEvaluatorBase.h
"
18
19
20
//
21
// constants, enums and typedefs
22
//
23
24
//
25
// static data member definitions
26
//
27
28
//
29
// constructors and destructor
30
//
31
reco::formula::EvaluatorBase::EvaluatorBase
():
32
m_precedence(static_cast<unsigned
int
>(
Precedence
::kFunction))
33
{
34
}
35
36
reco::formula::EvaluatorBase::EvaluatorBase
(
Precedence
iPrec):
37
m_precedence
(static_cast<unsigned
int
>(iPrec))
38
{
39
}
40
41
reco::formula::EvaluatorBase::~EvaluatorBase
()
42
{
43
}
44
45
std::vector<std::string>
46
reco::formula::shiftAST
(std::vector<std::string>
child
) {
47
for
(
auto
&
c
: child) {
48
c
.insert(
c
.begin(),
'.'
);
49
}
50
return
child
;
51
}
52
EnergyCorrector.c
c
Definition:
EnergyCorrector.py:43
reco::formula::EvaluatorBase::m_precedence
unsigned int m_precedence
Definition:
formulaEvaluatorBase.h:68
reco::formula::shiftAST
std::vector< std::string > shiftAST(std::vector< std::string > child)
Definition:
formulaEvaluatorBase.cc:46
createfilelist.int
int
Definition:
createfilelist.py:10
child
Definition:
simpleInheritance.h:11
class-composition.child
child
Definition:
class-composition.py:90
reco::formula::EvaluatorBase::EvaluatorBase
EvaluatorBase()
Definition:
formulaEvaluatorBase.cc:31
reco::formula::EvaluatorBase::Precedence
Precedence
Definition:
formulaEvaluatorBase.h:38
reco::formula::EvaluatorBase::~EvaluatorBase
virtual ~EvaluatorBase()
Definition:
formulaEvaluatorBase.cc:41
formulaEvaluatorBase.h
Generated for CMSSW Reference Manual by
1.8.11