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));
void throwBadType(const std::type_info &ty1) const
std::shared_ptr< StringCutObjectSelector< pat::Tau > > tauFunc_
std::shared_ptr< StringObjectFunction< pat::Photon > > gamFunc_
bool tryEval(const reco::Candidate &c, const std::shared_ptr< StringCutObjectSelector< Obj > > &func) const
const edm::EventSetup & c
std::shared_ptr< StringObjectFunction< pat::PFParticle > > pfFunc_
std::shared_ptr< StringCutObjectSelector< pat::PFParticle > > pfFunc_
void throwBadType(const std::type_info &ty1) const
PATStringObjectFunction()
std::shared_ptr< StringObjectFunction< pat::Jet > > jetFunc_
std::shared_ptr< StringObjectFunction< pat::GenericParticle > > gpFunc_
std::shared_ptr< StringCutObjectSelector< reco::Candidate > > candFunc_
std::shared_ptr< StringObjectFunction< pat::Tau > > tauFunc_
PATStringCutObjectSelector()
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t Func __host__ __device__ V int Func func
std::shared_ptr< StringObjectFunction< Obj > > tryGet(const std::string &str)
bool operator()(const reco::Candidate &c) 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_
std::shared_ptr< StringCutObjectSelector< pat::MET > > metFunc_
std::shared_ptr< StringCutObjectSelector< pat::Muon > > muFunc_
std::shared_ptr< StringObjectFunction< pat::Electron > > eleFunc_
std::shared_ptr< StringObjectFunction< pat::Muon > > muFunc_
std::shared_ptr< StringCutObjectSelector< Obj > > tryGet(const std::string &str)
double operator()(const reco::Candidate &c) const
std::shared_ptr< StringCutObjectSelector< pat::GenericParticle > > gpFunc_
double tryEval(const reco::Candidate &c, const std::shared_ptr< StringObjectFunction< Obj > > &func) const