79 label_(iConfig.getUntrackedParameter(
"moduleLabel",std::string(
"generator"))),
80 minPt(iConfig.getUntrackedParameter(
"MinPt", 0.)),
81 maxEta(iConfig.getUntrackedParameter(
"MaxEta", 10.)),
82 maxPt(iConfig.getUntrackedParameter(
"MaxPt", 1000.)),
83 minEta(iConfig.getUntrackedParameter(
"MinEta", 0.)),
84 particleID(iConfig.getUntrackedParameter(
"ParticleID", 0))
110 bool accepted =
false;
116 const HepMC::GenEvent * myGenEvent = evt->GetEvent();
119 for ( HepMC::GenEvent::particle_const_iterator
p = myGenEvent->particles_begin();
p != myGenEvent->particles_end(); ++
p ) {
120 if ( (*p)->status()!=1 )
continue;
122 if ((*p)->momentum().perp() >
minPt && fabs((*p)->momentum().eta()) <
maxEta &&
123 (*p)->momentum().perp() <
maxPt && fabs((*p)->momentum().eta()) >
minEta) {
FourLepFilter(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
virtual bool endLuminosityBlock(edm::LuminosityBlock &, edm::EventSetup const &)
virtual bool beginLuminosityBlock(edm::LuminosityBlock &, edm::EventSetup const &)
virtual bool filter(edm::Event &, const edm::EventSetup &)
virtual bool beginRun(edm::Run &, edm::EventSetup const &)
void addDefault(ParameterSetDescription const &psetDescription)
virtual bool endRun(edm::Run &, edm::EventSetup const &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)