47 label_(iConfig.getUntrackedParameter(
"moduleLabel",std::string(
"generator"))),
48 minptcut(iConfig.getUntrackedParameter(
"MinPt", 0.)),
49 maxptcut(iConfig.getUntrackedParameter(
"MaxPt", 10000.)),
50 processID(iConfig.getUntrackedParameter(
"ProcessID", 0)){
79 bool accepted =
false;
80 bool isFSQuark =
false;
81 double maxPartonPt=0.0;
93 const HepMC::GenEvent * myGenEvent = evt->GetEvent();
99 for ( HepMC::GenEvent::particle_const_iterator
p = myGenEvent->particles_begin();
p != myGenEvent->particles_end(); ++
p ) {
100 if(
abs((*p)->pdg_id())==91){
107 for ( HepMC::GenEvent::particle_const_iterator
p = myGenEvent->particles_begin();
p != myGenEvent->particles_end(); ++
p ) {
109 if((*p)->momentum().perp()>1.0){
111 if(
abs((*p)->pdg_id())==1 ||
abs((*p)->pdg_id())==2 ||
abs((*p)->pdg_id())==3 ||
abs((*p)->pdg_id())==4 ||
abs((*p)->pdg_id())==5){
112 if( counter<pos1stCluster && ((*p)->status()==158 || (*p)->status()==159) ){
135 else{ accepted =
true; }
137 if (accepted){
return true; }
~HerwigMaxPtPartonFilter()
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
HerwigMaxPtPartonFilter(const edm::ParameterSet &)
TH2D * hFSPartons_JS_PtWgting
virtual bool filter(edm::Event &, const edm::EventSetup &)