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));