1 #ifndef PhysicsTools_PatUtils_interface_StringParserTools_h 2 #define PhysicsTools_PatUtils_interface_StringParserTools_h 25 std::shared_ptr<StringObjectFunction<reco::Candidate> >
candFunc_;
27 std::shared_ptr<StringObjectFunction<pat::Electron> >
eleFunc_;
28 std::shared_ptr<StringObjectFunction<pat::Muon> >
muFunc_;
29 std::shared_ptr<StringObjectFunction<pat::Tau> >
tauFunc_;
30 std::shared_ptr<StringObjectFunction<pat::Photon> >
gamFunc_;
31 std::shared_ptr<StringObjectFunction<pat::Jet> >
jetFunc_;
32 std::shared_ptr<StringObjectFunction<pat::MET> >
metFunc_;
33 std::shared_ptr<StringObjectFunction<pat::GenericParticle> >
gpFunc_;
34 std::shared_ptr<StringObjectFunction<pat::PFParticle> >
pfFunc_;
36 template <
typename Obj>
41 return std::shared_ptr<StringObjectFunction<Obj> >();
45 template <
typename Obj>
48 return (*
func)(
static_cast<const Obj &
>(
c));
68 std::shared_ptr<StringCutObjectSelector<reco::Candidate> >
candFunc_;
70 std::shared_ptr<StringCutObjectSelector<pat::Electron> >
eleFunc_;
71 std::shared_ptr<StringCutObjectSelector<pat::Muon> >
muFunc_;
72 std::shared_ptr<StringCutObjectSelector<pat::Tau> >
tauFunc_;
73 std::shared_ptr<StringCutObjectSelector<pat::Photon> >
gamFunc_;
74 std::shared_ptr<StringCutObjectSelector<pat::Jet> >
jetFunc_;
75 std::shared_ptr<StringCutObjectSelector<pat::MET> >
metFunc_;
76 std::shared_ptr<StringCutObjectSelector<pat::GenericParticle> >
gpFunc_;
77 std::shared_ptr<StringCutObjectSelector<pat::PFParticle> >
pfFunc_;
79 template <
typename Obj>
84 return std::shared_ptr<StringCutObjectSelector<Obj> >();
88 template <
typename Obj>
91 return (*
func)(
static_cast<const Obj &
>(
c));
std::shared_ptr< StringCutObjectSelector< pat::Tau > > tauFunc_
std::shared_ptr< StringObjectFunction< pat::Photon > > gamFunc_
std::shared_ptr< StringObjectFunction< pat::PFParticle > > pfFunc_
std::shared_ptr< StringCutObjectSelector< pat::PFParticle > > pfFunc_
PATStringObjectFunction()
std::shared_ptr< StringObjectFunction< pat::Jet > > jetFunc_
double operator()(const reco::Candidate &c) const
std::shared_ptr< StringObjectFunction< pat::GenericParticle > > gpFunc_
std::shared_ptr< StringCutObjectSelector< reco::Candidate > > candFunc_
std::shared_ptr< StringObjectFunction< pat::Tau > > tauFunc_
PATStringCutObjectSelector()
std::shared_ptr< StringObjectFunction< Obj > > tryGet(const std::string &str)
bool tryEval(const reco::Candidate &c, const std::shared_ptr< StringCutObjectSelector< Obj > > &func) const
std::shared_ptr< StringCutObjectSelector< pat::Photon > > gamFunc_
std::shared_ptr< StringCutObjectSelector< pat::Jet > > jetFunc_
std::shared_ptr< StringCutObjectSelector< pat::Electron > > eleFunc_
std::shared_ptr< StringObjectFunction< reco::Candidate > > candFunc_
std::shared_ptr< StringObjectFunction< pat::MET > > metFunc_
double tryEval(const reco::Candidate &c, const std::shared_ptr< StringObjectFunction< Obj > > &func) const
bool operator()(const reco::Candidate &c) const
std::shared_ptr< StringCutObjectSelector< pat::MET > > metFunc_
std::shared_ptr< StringCutObjectSelector< pat::Muon > > muFunc_
std::shared_ptr< StringObjectFunction< pat::Electron > > eleFunc_
void throwBadType(const std::type_info &ty1) const
std::shared_ptr< StringObjectFunction< pat::Muon > > muFunc_
std::shared_ptr< StringCutObjectSelector< Obj > > tryGet(const std::string &str)
void throwBadType(const std::type_info &ty1) const
std::shared_ptr< StringCutObjectSelector< pat::GenericParticle > > gpFunc_