3 using namespace pat::eventhypothesis;
12 for (boost::ptr_vector<ParticleFilter>::const_iterator it =
filters_.begin(); it !=
filters_.end(); ++it) {
13 if (! (*it)(cand, role) )
return false;
25 for (boost::ptr_vector<ParticleFilter>::const_iterator it =
filters_.begin(); it !=
filters_.end(); ++it) {
26 if ( (*it)(cand, role) )
return true;
32 pdgCode_(alsoAntiparticle ? std::
abs(pdgCode) : pdgCode),
33 antiparticle_(alsoAntiparticle)
virtual bool operator()(const CandRefType &cand, const std::string &role) const
ByPdgId(int32_t pdgCode, bool alsoAntiparticle=true)
virtual bool operator()(const CandRefType &cand, const std::string &role) const
ByString(const std::string &cut)
virtual bool operator()(const CandRefType &cand, const std::string &role) const
boost::ptr_vector< ParticleFilter > filters_
StringCutObjectSelector< reco::Candidate > sel_
virtual bool operator()(const CandRefType &cand, const std::string &role) const
boost::ptr_vector< ParticleFilter > filters_