43 stiffMinPt = pset.
getParameter<
double>(
"stiffMinimumPt");
45 nStiffLeptonMin = pset.
getParameter<
int>(
"nStiffLeptonMinimum");
58 <<
" Number_events_read " <<
nEvents 59 <<
" Number_events_kept " << nSelectedEvents
60 <<
" Efficiency " << ((double)nSelectedEvents)/((double)
nEvents + 0.01) << std::endl;
72 bool keepEvent =
false;
73 int nStiffLeptons = 0;
81 event.getByToken(theGLBMuonToken, muTracks);
85 reco::TrackCollection::const_iterator
muons;
89 for ( muons = muTracks->begin(); muons != muTracks->end(); ++
muons ) {
90 if ( muons->pt() > stiffMinPt) nStiffLeptons++;
91 if ( muons->pt() > softMinPt) nLeptons++;
99 event.getByToken(theGsfEToken,pTracks);
105 reco::GsfElectronCollection::const_iterator
electrons;
109 for ( electrons = eTracks->begin(); electrons != eTracks->end(); ++
electrons ) {
110 float pt_e = electrons->pt();
111 if ( pt_e > stiffMinPt) nStiffLeptons++;
112 if ( pt_e > softMinPt) nLeptons++;
117 if ( nStiffLeptons >= nStiffLeptonMin && nLeptons >= nLeptonMin) keepEvent =
true;
119 if (keepEvent) nSelectedEvents++;
T getParameter(std::string const &) const
std::vector< Track > TrackCollection
collection of Tracks
def setup(process, global_tag, zero_tesla=False)
HiggsToZZ4LeptonsSkim(const edm::ParameterSet &)
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
virtual bool filter(edm::Event &, const edm::EventSetup &)
Get event properties to send to builder to fill seed collection.
T const * product() const