37 token_(consumes<edm::
HepMCProduct>(edm::
InputTag(iConfig.getUntrackedParameter(
"moduleLabel",std::
string(
"generator")),
"unsmeared"))),
38 minPtElectronMuon(iConfig.getUntrackedParameter(
"MinPtElectronMuon", 0.)),
39 maxEtaElectronMuon(iConfig.getUntrackedParameter(
"MaxEtaElectronMuon", 10.))
65 bool accepted =
false;
71 const HepMC::GenEvent * myGenEvent = evt->GetEvent();
73 for ( HepMC::GenEvent::particle_const_iterator
p = myGenEvent->particles_begin();
p != myGenEvent->particles_end(); ++
p ) {
75 if ( (*p)->status()!=1 )
continue;
78 if (
abs((*p)->pdg_id()) == 11 ||
abs((*p)->pdg_id()) == 13 ) nLeptons++;
bool getByToken(EDGetToken token, Handle< PROD > &result) const
double maxEtaElectronMuon
Abs< T >::type abs(const T &t)
edm::EDGetTokenT< edm::HepMCProduct > token_
HZZ4lFilter(const edm::ParameterSet &)
virtual bool filter(edm::Event &, const edm::EventSetup &)