10 token_(consumes<edm::
HepMCProduct>(edm::
InputTag(iConfig.getUntrackedParameter(
"moduleLabel",std::
string(
"generator")),
"unsmeared"))),
11 etaMuMax(iConfig.getUntrackedParameter<double>(
"MaxMuonEta", 2.5)),
12 ptZMin(iConfig.getUntrackedParameter<double>(
"MinZPt")),
13 ptZMax(iConfig.getUntrackedParameter<double>(
"MaxZPt")),
14 maxnumberofeventsinrun(iConfig.getUntrackedParameter<int>(
"MaxEvents",10000)){
30 bool accepted =
false;
34 const HepMC::GenEvent * myGenEvent = evt->GetEvent();
37 if(myGenEvent->signal_process_id() == 15 || myGenEvent->signal_process_id() == 30) {
40 std::vector<const HepMC::GenParticle *>
mu;
42 for ( HepMC::GenEvent::particle_const_iterator
p = myGenEvent->particles_begin();
p != myGenEvent->particles_end(); ++
p ) {
44 if (
std::abs((*p)->pdg_id())==13 && (*p)->status()==1 )
46 if(mu.size()>1)
break;
56 double ptZ = tot_mom.pt();
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual bool filter(edm::Event &, const edm::EventSetup &)
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Abs< T >::type abs(const T &t)
PythiaFilterZJet(const edm::ParameterSet &)
edm::EDGetTokenT< edm::HepMCProduct > token_