CMS 3D CMS Logo

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
18 
19 
20 //
21 // constants, enums and typedefs
22 //
23 
24 //
25 // static data member definitions
26 //
27 
28 //
29 // constructors and destructor
30 //
32  m_precedence(static_cast<unsigned int>(Precedence::kFunction))
33 {
34 }
35 
37  m_precedence(static_cast<unsigned int>(iPrec))
38 {
39 }
40 
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 
std::vector< std::string > shiftAST(std::vector< std::string > child)