40 if (!strcmp(iType.
name().c_str(),
"CaloTower"))
42 if ( iPurpose ==
"ECal" )
44 else if ( iPurpose ==
"HCal" )
46 else if (iPurpose ==
"HCal Outer")
49 else if (strstr(iPurpose.c_str(),
"Beam Spot") )
55 else if (strstr(iPurpose.c_str(),
"Vertices") )
61 else if (strstr(iPurpose.c_str(),
"Conversion") )
63 addEntry(
"pairMomentum().rho()", 1,
"pt",
"GeV" );
64 addEntry(
"pairMomentum().eta()", 2,
"eta");
65 addEntry(
"pairMomentum().phi()", 2,
"phi");
67 else if (strstr(iPurpose.c_str(),
"Candidate") || strstr(iPurpose.c_str(),
"GenParticle"))
74 else if (iPurpose ==
"Jets" )
93 using namespace boost::spirit::classic;
100 using namespace fireworks::expression;
108 if(
parse(
temp.c_str(), grammar.use_parser<1>() >> end_p, space_p).full)
110 m_entries.push_back(
Entry(tmpPtr, iExpression, iUnit, iTitle.empty() ? iExpression :iTitle , iPrec));
140 std::vector<std::string>
143 std::vector<std::string> titles;
147 titles.push_back((*i).m_title.empty() ? (*i).m_expression : (*i).m_title );
155 return static_cast<int>(
m_entries.size());
boost::spirit::classic::parser_error< reco::parser::SyntaxErrors > BaseException
Evaluator * parse(const T &text)
bool addEntry(std::string iExpression, int iPrec=2, std::string iTitle="", std::string iUnit="")
FWItemValueGetter(const edm::TypeWithDict &, const std::string &iPurpose)
boost::shared_ptr< ExpressionBase > ExpressionPtr
std::vector< std::string > getTitles() const
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
double valueFor(const void *, int idx) const
std::string oldToNewFormat(const std::string &iExpression)
const std::string & getToolTip(const void *iObject) const
reco::parser::ExpressionPtr m_expr
UInt_t precision(int idx) const