7 candFunc_ = tryGet<reco::Candidate>(string);
9 eleFunc_ = tryGet<pat::Electron>(string);
10 muFunc_ = tryGet<pat::Muon>(string);
12 gamFunc_ = tryGet<pat::Photon>(string);
15 gpFunc_ = tryGet<pat::GenericParticle>(string);
16 pfFunc_ = tryGet<pat::PFParticle>(string);
23 const std::type_info &
type =
typeid(
c);
32 else throw cms::Exception(
"Type Error") <<
"Cannot evaluate '" <<
expr_ <<
"' on an object of unsupported type " << type.name() <<
"\n";
37 throw cms::Exception(
"Type Error") <<
"Expression '" <<
expr_ <<
"' can't be evaluated on an object of type " << ty.name() <<
"\n(hint: use c++filt to demangle the type name)\n";
43 candFunc_ = tryGet<reco::Candidate>(string);
45 eleFunc_ = tryGet<pat::Electron>(string);
46 muFunc_ = tryGet<pat::Muon>(string);
48 gamFunc_ = tryGet<pat::Photon>(string);
51 gpFunc_ = tryGet<pat::GenericParticle>(string);
52 pfFunc_ = tryGet<pat::PFParticle>(string);
59 const std::type_info &
type =
typeid(
c);
68 else throw cms::Exception(
"Type Error") <<
"Cannot evaluate '" <<
expr_ <<
"' on an object of unsupported type " << type.name() <<
"\n";
73 throw cms::Exception(
"Type Error") <<
"Expression '" <<
expr_ <<
"' can't be evaluated on an object of type " << ty.name() <<
"\n(hint: use c++filt to demangle the type name)\n";
void throwBadType(const std::type_info &ty1) const
Analysis-level MET class.
Analysis-level Photon class.
boost::shared_ptr< StringObjectFunction< pat::Jet > > jetFunc_
void throwBadType(const std::type_info &ty1) const
PATStringObjectFunction()
boost::shared_ptr< StringCutObjectSelector< pat::PFParticle > > pfFunc_
boost::shared_ptr< StringObjectFunction< pat::Muon > > muFunc_
PATStringCutObjectSelector()
boost::shared_ptr< StringCutObjectSelector< pat::Photon > > gamFunc_
bool operator()(const reco::Candidate &c) const
boost::shared_ptr< StringCutObjectSelector< pat::Muon > > muFunc_
boost::shared_ptr< StringCutObjectSelector< reco::Candidate > > candFunc_
boost::shared_ptr< StringCutObjectSelector< pat::GenericParticle > > gpFunc_
Analysis-level Generic Particle class (e.g. for hadron or muon not fully reconstructed) ...
boost::shared_ptr< StringCutObjectSelector< pat::Jet > > jetFunc_
boost::shared_ptr< StringObjectFunction< pat::Tau > > tauFunc_
boost::shared_ptr< StringObjectFunction< pat::MET > > metFunc_
Analysis-level tau class.
boost::shared_ptr< StringCutObjectSelector< pat::MET > > metFunc_
boost::shared_ptr< StringObjectFunction< reco::Candidate > > candFunc_
boost::shared_ptr< StringObjectFunction< pat::Electron > > eleFunc_
boost::shared_ptr< StringObjectFunction< pat::PFParticle > > pfFunc_
Analysis-level electron class.
Analysis-level calorimeter jet class.
Analysis-level class for reconstructed particles.
boost::shared_ptr< StringObjectFunction< pat::Photon > > gamFunc_
boost::shared_ptr< StringCutObjectSelector< pat::Electron > > eleFunc_
boost::shared_ptr< StringObjectFunction< pat::GenericParticle > > gpFunc_
double operator()(const reco::Candidate &c) const
boost::shared_ptr< StringCutObjectSelector< pat::Tau > > tauFunc_
Analysis-level muon class.