12 token_(consumes<edm::
HepMCProduct>(edm::
InputTag(iConfig.getUntrackedParameter(
"moduleLabel",std::
string(
"generator")),
"unsmeared")))
16 defproc.push_back(0) ;
18 vector<double> defpthatmin ;
19 defpthatmin.push_back(0.);
21 vector<double> defpthatmax ;
22 defpthatmax.push_back(10000.);
29 cout <<
"WARNING: MCPROCESSFILTER : size of MinPthat and/or MaxPthat not matching with ProcessID size!!" << endl;
34 vector<double> defpthatmin2 ;
35 for (
unsigned int i = 0;
i <
processID.size();
i++){ defpthatmin2.push_back(0.);}
40 vector<double> defpthatmax2 ;
41 for (
unsigned int i = 0;
i <
processID.size();
i++){ defpthatmax2.push_back(10000.);}
62 bool accepted =
false;
66 const HepMC::GenEvent * myGenEvent = evt->GetEvent();
73 if ( myGenEvent->event_scale() >
pthatMin[
i] && myGenEvent->event_scale() <
pthatMax[
i] ) {
80 if (accepted){
return true; }
else {
return false;}
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< edm::HepMCProduct > token_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< double > pthatMin
std::vector< int > processID
MCProcessFilter(const edm::ParameterSet &)
std::vector< double > pthatMax
virtual bool filter(edm::Event &, const edm::EventSetup &)