38 label_(iConfig.getUntrackedParameter(
"moduleLabel",std::string(
"generator"))),
39 minPtElectronMuon(iConfig.getUntrackedParameter(
"MinPtElectronMuon", 0.)),
40 maxEtaElectronMuon(iConfig.getUntrackedParameter(
"MaxEtaElectronMuon", 10.))
66 bool accepted =
false;
72 const HepMC::GenEvent * myGenEvent = evt->GetEvent();
74 for ( HepMC::GenEvent::particle_const_iterator
p = myGenEvent->particles_begin();
p != myGenEvent->particles_end(); ++
p ) {
76 if ( (*p)->status()!=1 )
continue;
79 if (
abs((*p)->pdg_id()) == 11 ||
abs((*p)->pdg_id()) == 13 ) nLeptons++;
double maxEtaElectronMuon
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
HZZ4lFilter(const edm::ParameterSet &)
virtual bool filter(edm::Event &, const edm::EventSetup &)