12 label_(iConfig.getUntrackedParameter(
"moduleLabel",std::string(
"generator"))),
13 minProcessID(iConfig.getUntrackedParameter(
"MinProcessID",0)),
14 maxProcessID(iConfig.getUntrackedParameter(
"MaxProcessID",500)),
15 pthatMin(iConfig.getUntrackedParameter(
"MinPthat",0)),
16 pthatMax(iConfig.getUntrackedParameter(
"MaxPthat",14000))
35 bool accepted =
false;
39 const HepMC::GenEvent * myGenEvent = evt->GetEvent();
46 if ( myGenEvent->event_scale() >
pthatMin && myGenEvent->event_scale() <
pthatMax ) {
53 if (accepted){
return true; }
else {
return false;}
MCProcessRangeFilter(const edm::ParameterSet &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual bool filter(edm::Event &, const edm::EventSetup &)