|
|
Go to the documentation of this file.
5 candFunc_ = tryGet<reco::Candidate>(
string);
7 eleFunc_ = tryGet<pat::Electron>(
string);
8 muFunc_ = tryGet<pat::Muon>(
string);
10 gamFunc_ = tryGet<pat::Photon>(
string);
13 gpFunc_ = tryGet<pat::GenericParticle>(
string);
14 pfFunc_ = tryGet<pat::PFParticle>(
string);
21 const std::type_info &
type =
typeid(
c);
23 return tryEval<pat::Electron>(
c,
eleFunc_);
25 return tryEval<pat::Muon>(
c,
muFunc_);
35 return tryEval<pat::GenericParticle>(
c,
gpFunc_);
37 return tryEval<pat::PFParticle>(
c,
pfFunc_);
39 throw cms::Exception(
"Type Error") <<
"Cannot evaluate '" <<
expr_ <<
"' on an object of unsupported type "
40 <<
type.name() <<
"\n";
44 throw cms::Exception(
"Type Error") <<
"Expression '" <<
expr_ <<
"' can't be evaluated on an object of type "
45 << ty.name() <<
"\n(hint: use c++filt to demangle the type name)\n";
49 candFunc_ = tryGet<reco::Candidate>(
string);
51 eleFunc_ = tryGet<pat::Electron>(
string);
52 muFunc_ = tryGet<pat::Muon>(
string);
54 gamFunc_ = tryGet<pat::Photon>(
string);
57 gpFunc_ = tryGet<pat::GenericParticle>(
string);
58 pfFunc_ = tryGet<pat::PFParticle>(
string);
65 const std::type_info &
type =
typeid(
c);
67 return tryEval<pat::Electron>(
c,
eleFunc_);
69 return tryEval<pat::Muon>(
c,
muFunc_);
79 return tryEval<pat::GenericParticle>(
c,
gpFunc_);
81 return tryEval<pat::PFParticle>(
c,
pfFunc_);
83 throw cms::Exception(
"Type Error") <<
"Cannot evaluate '" <<
expr_ <<
"' on an object of unsupported type "
84 <<
type.name() <<
"\n";
88 throw cms::Exception(
"Type Error") <<
"Expression '" <<
expr_ <<
"' can't be evaluated on an object of type "
89 << ty.name() <<
"\n(hint: use c++filt to demangle the type name)\n";
std::shared_ptr< StringCutObjectSelector< reco::Candidate > > candFunc_
PATStringObjectFunction()
std::shared_ptr< StringCutObjectSelector< pat::PFParticle > > pfFunc_
Analysis-level tau class.
Analysis-level Photon class.
std::shared_ptr< StringObjectFunction< pat::PFParticle > > pfFunc_
Analysis-level muon class.
Analysis-level class for reconstructed particles.
std::shared_ptr< StringCutObjectSelector< pat::Tau > > tauFunc_
std::shared_ptr< StringObjectFunction< pat::Jet > > jetFunc_
std::shared_ptr< StringCutObjectSelector< pat::Jet > > jetFunc_
std::shared_ptr< StringObjectFunction< pat::GenericParticle > > gpFunc_
std::shared_ptr< StringObjectFunction< reco::Candidate > > candFunc_
Analysis-level calorimeter jet class.
std::shared_ptr< StringObjectFunction< pat::Tau > > tauFunc_
std::shared_ptr< StringCutObjectSelector< pat::Electron > > eleFunc_
PATStringCutObjectSelector()
std::shared_ptr< StringObjectFunction< pat::Electron > > eleFunc_
Analysis-level Generic Particle class (e.g. for hadron or muon not fully reconstructed)
bool operator()(const reco::Candidate &c) const
std::shared_ptr< StringCutObjectSelector< pat::MET > > metFunc_
Analysis-level MET class.
std::shared_ptr< StringCutObjectSelector< pat::Photon > > gamFunc_
std::shared_ptr< StringObjectFunction< pat::MET > > metFunc_
std::shared_ptr< StringCutObjectSelector< pat::GenericParticle > > gpFunc_
void throwBadType(const std::type_info &ty1) const
void throwBadType(const std::type_info &ty1) const
std::shared_ptr< StringObjectFunction< pat::Photon > > gamFunc_
std::shared_ptr< StringCutObjectSelector< pat::Muon > > muFunc_
Analysis-level electron class.
std::shared_ptr< StringObjectFunction< pat::Muon > > muFunc_
double operator()(const reco::Candidate &c) const