73 minPt(iConfig.getUntrackedParameter(
"MinPt", 0.)),
74 maxEta(iConfig.getUntrackedParameter(
"MaxEta", 10.)),
75 maxPt(iConfig.getUntrackedParameter(
"MaxPt", 1000.)),
76 minEta(iConfig.getUntrackedParameter(
"MinEta", 0.)),
77 particleID(iConfig.getUntrackedParameter(
"ParticleID", 0))
112 for ( HepMC::GenEvent::particle_const_iterator
p = myGenEvent->particles_begin();
p != myGenEvent->particles_end(); ++
p ) {
113 if ( (*p)->status()!=1 )
continue;
115 if ((*p)->momentum().perp() >
minPt && fabs((*p)->momentum().eta()) <
maxEta &&
116 (*p)->momentum().perp() <
maxPt && fabs((*p)->momentum().eta()) >
minEta) {
FourLepFilter(const edm::ParameterSet &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
#define DEFINE_FWK_MODULE(type)
void addDefault(ParameterSetDescription const &psetDescription)
Abs< T >::type abs(const T &t)
~FourLepFilter() override
const HepMC::GenEvent * GetEvent() const
bool accepted(std::vector< std::string_view > const &, std::string_view)
bool filter(edm::Event &, const edm::EventSetup &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)