CommonTools
Utils
interface
expressionParser.h
Go to the documentation of this file.
1
#ifndef CommonTools_Utils_expressionParset_h
2
#define CommonTools_Utils_expressionParset_h
3
#include "
CommonTools/Utils/src/ExpressionPtr.h
"
4
#include "
CommonTools/Utils/interface/Exception.h
"
5
#include "
FWCore/Reflection/interface/TypeWithDict.h
"
6
#include <string>
7
8
namespace
reco
{
9
namespace
parser
{
10
bool
expressionParser
(
const
edm::TypeWithDict
&
t
,
const
std::string
&
value
,
ExpressionPtr
&
expr
,
bool
lazy);
11
12
template
<
typename
T>
13
bool
expressionParser
(
const
std::string
&
value
,
ExpressionPtr
&
expr
,
bool
lazy =
false
) {
14
return
reco::parser::expressionParser
(
edm::TypeWithDict
(
typeid
(
T
)),
value
,
expr
, lazy);
15
}
16
17
}
// namespace parser
18
}
// namespace reco
19
20
#endif
writedatasetfile.parser
parser
Definition:
writedatasetfile.py:7
TypeWithDict.h
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:45
Exception.h
OrderedSet.t
t
Definition:
OrderedSet.py:90
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::TypeWithDict
Definition:
TypeWithDict.h:38
value
Definition:
value.py:1
reco::parser::ExpressionPtr
std::shared_ptr< ExpressionBase > ExpressionPtr
Definition:
ExpressionBase.h:25
ExpressionPtr.h
jets_cff.expr
expr
Definition:
jets_cff.py:449
T
long double T
Definition:
Basic3DVectorLD.h:48
reco::parser::expressionParser
bool expressionParser(const edm::TypeWithDict &t, const std::string &value, ExpressionPtr &expr, bool lazy)
Definition:
expressionParser.cc:7
Generated for CMSSW Reference Manual by
1.8.16