33 debug =
pset.getParameter<
bool>(
"DebugHiggsToZZ4LeptonsSkim");
36 theGLBMuonToken = consumes<reco::TrackCollection>(
pset.getParameter<
edm::InputTag>(
"GlobalMuonCollectionLabel"));
37 theGsfEToken = consumes<reco::GsfElectronCollection>(
pset.getParameter<
edm::InputTag>(
"ElectronCollectionLabel"));
40 stiffMinPt =
pset.getParameter<
double>(
"stiffMinimumPt");
41 softMinPt =
pset.getParameter<
double>(
"softMinimumPt");
42 nStiffLeptonMin =
pset.getParameter<
int>(
"nStiffLeptonMinimum");
43 nLeptonMin =
pset.getParameter<
int>(
"nLeptonMinimum");
52 <<
" Number_events_read " <<
nEvents <<
" Number_events_kept " << nSelectedEvents <<
" Efficiency "
53 << ((double)nSelectedEvents) / ((double)
nEvents + 0.01) << std::endl;
62 bool keepEvent =
false;
63 int nStiffLeptons = 0;
70 event.getByToken(theGLBMuonToken, muTracks);
73 reco::TrackCollection::const_iterator
muons;
78 if (
muons->pt() > stiffMinPt)
80 if (
muons->pt() > softMinPt)
89 event.getByToken(theGsfEToken, pTracks);
94 reco::GsfElectronCollection::const_iterator
electrons;
100 if (pt_e > stiffMinPt)
102 if (pt_e > softMinPt)
108 if (nStiffLeptons >= nStiffLeptonMin && nLeptons >= nLeptonMin)