41 if (!strcmp(iType.
name().c_str(),
"CaloTower"))
43 if ( iPurpose ==
"ECal" )
45 else if ( iPurpose ==
"HCal" )
47 else if (iPurpose ==
"HCal Outer")
50 else if (strstr(iPurpose.c_str(),
"Beam Spot") )
56 else if (strstr(iPurpose.c_str(),
"Conversion") )
58 addEntry(
"pairMomentum().rho()", 1,
"pt",
"GeV" );
59 addEntry(
"pairMomentum().eta()", 2,
"eta");
60 addEntry(
"pairMomentum().phi()", 2,
"phi");
62 else if (strstr(iPurpose.c_str(),
"Candidate") || strstr(iPurpose.c_str(),
"GenParticle"))
69 else if (iPurpose ==
"Jets" )
88 using namespace boost::spirit::classic;
95 using namespace fireworks::expression;
103 if(
parse(
temp.c_str(), grammar.use_parser<1>() >> end_p, space_p).full)
105 m_entries.push_back(
Entry(tmpPtr, iExpression, iUnit, iTitle.empty() ? iExpression :iTitle , iPrec));
135 std::vector<std::string>
138 std::vector<std::string> titles;
142 titles.push_back((*i).m_title.empty() ? (*i).m_expression : (*i).m_title );
150 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