#include <StringParserTools.h>
Public Member Functions | |
double | operator() (const reco::Candidate &c) const |
PATStringObjectFunction () | |
PATStringObjectFunction (const std::string &string) | |
Private Member Functions | |
void | throwBadType (const std::type_info &ty1) const |
template<typename Obj > | |
double | tryEval (const reco::Candidate &c, const std::shared_ptr< StringObjectFunction< Obj > > &func) const |
template<typename Obj > | |
std::shared_ptr< StringObjectFunction< Obj > > | tryGet (const std::string &str) |
Private Attributes | |
std::shared_ptr< StringObjectFunction< reco::Candidate > > | candFunc_ |
std::shared_ptr< StringObjectFunction< pat::Electron > > | eleFunc_ |
std::string | expr_ |
std::shared_ptr< StringObjectFunction< pat::Photon > > | gamFunc_ |
std::shared_ptr< StringObjectFunction< pat::GenericParticle > > | gpFunc_ |
std::shared_ptr< StringObjectFunction< pat::Jet > > | jetFunc_ |
std::shared_ptr< StringObjectFunction< pat::MET > > | metFunc_ |
std::shared_ptr< StringObjectFunction< pat::Muon > > | muFunc_ |
std::shared_ptr< StringObjectFunction< pat::PFParticle > > | pfFunc_ |
std::shared_ptr< StringObjectFunction< pat::Tau > > | tauFunc_ |
Definition at line 16 of file StringParserTools.h.
|
inline |
Definition at line 18 of file StringParserTools.h.
PATStringObjectFunction::PATStringObjectFunction | ( | const std::string & | string | ) |
double PATStringObjectFunction::operator() | ( | const reco::Candidate & | c | ) | const |
Definition at line 18 of file StringParserTools.cc.
References HltBtagPostValidation_cff::c, candFunc_, eleFunc_, Exception, expr_, gamFunc_, gpFunc_, jetFunc_, metFunc_, muFunc_, pfFunc_, and tauFunc_.
|
private |
Definition at line 43 of file StringParserTools.cc.
References Exception, and expr_.
Referenced by tryEval().
|
inlineprivate |
Definition at line 46 of file StringParserTools.h.
References cms::cuda::assert(), HltBtagPostValidation_cff::c, TrackCollections2monitor_cff::func, and throwBadType().
|
inlineprivate |
|
private |
Definition at line 25 of file StringParserTools.h.
Referenced by operator()(), and PATStringObjectFunction().
|
private |
Definition at line 27 of file StringParserTools.h.
Referenced by operator()(), and PATStringObjectFunction().
|
private |
Definition at line 24 of file StringParserTools.h.
Referenced by operator()(), and throwBadType().
|
private |
Definition at line 30 of file StringParserTools.h.
Referenced by operator()(), and PATStringObjectFunction().
|
private |
Definition at line 33 of file StringParserTools.h.
Referenced by operator()(), and PATStringObjectFunction().
|
private |
Definition at line 31 of file StringParserTools.h.
Referenced by operator()(), and PATStringObjectFunction().
|
private |
Definition at line 32 of file StringParserTools.h.
Referenced by operator()(), and PATStringObjectFunction().
|
private |
Definition at line 28 of file StringParserTools.h.
Referenced by operator()(), and PATStringObjectFunction().
|
private |
Definition at line 34 of file StringParserTools.h.
Referenced by operator()(), and PATStringObjectFunction().
|
private |
Definition at line 29 of file StringParserTools.h.
Referenced by operator()(), and PATStringObjectFunction().