1 #ifndef XtoFFbarFilter_h 2 #define XtoFFbarFilter_h 40 bool found(
const std::vector<int>&
v,
int j) {
41 return std::find(v.begin(), v.end(), j) != v.end();
46 const std::vector<int>& idMotherX,
47 const std::vector<int>& idDaughterF);
bool found(const std::vector< int > &v, int j)
XtoFFbarFilter(const edm::ParameterSet &)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
unsigned int rejectedEvents_
std::vector< int > idMotherX_
std::vector< int > idMotherY_
unsigned int totalEvents_
std::vector< int > idDaughterG_
edm::Handle< reco::GenParticleCollection > genParticles_
std::vector< int > idDaughterF_
bool filter(edm::Event &iEvent, const edm::EventSetup &iSetup) override
bool foundXtoFFbar(const reco::GenParticleRef &moth, const std::vector< int > &idMotherX, const std::vector< int > &idDaughterF)
~XtoFFbarFilter() override