53 stiffMinPt = pset.
getParameter<
double>(
"stiffMinimumPt");
55 nStiffLeptonMin = pset.
getParameter<
int>(
"nStiffLeptonMinimum");
59 nSelFourE = nSelFourM = nSelTwoETwoM = nSelFourL = nSelTau = 0;
60 nFourE = nFourM = nTwoETwoM = nFourL = nTau = 0;
69 std::cout <<
"*** Efficiency for the various subsamples *** " << endl;
73 <<
" kept " << nSelFourL
74 <<
" eff " << ((double)nSelFourL)/((double) nFourL + 0.0001) << std::endl;
77 <<
" kept " << nSelFourM
78 <<
" eff " << ((double)nSelFourM)/((double) nFourM + 0.0001) << std::endl;
81 <<
" kept " << nSelFourE
82 <<
" eff " << ((double)nSelFourE)/((double) nFourE + 0.0001) << std::endl;
84 <<
" pres " << nTwoETwoM
85 <<
" kept " << nSelTwoETwoM
86 <<
" eff " << ((double)nSelTwoETwoM)/((double) nTwoETwoM + 0.0001) << std::endl;
89 <<
" kept " << nSelTau
90 <<
" eff " << ((double)nSelTau)/((double) nTau + 0.0001) << std::endl;
103 bool keepEvent =
false;
110 bool isFourE =
false;
111 bool isFourM =
false;
112 bool isTwoETwoM =
false;
113 bool isFourL =
false;
118 event.getByLabel(
"genParticleCandidates", genCandidates);
123 if ( mcIter->pdgId() == 13 || mcIter->pdgId() == -13) {
125 if ( mcIter->mother()->pdgId() == 23 ) {
127 if ( mcIter->eta() > -2.4 && mcIter->eta() < 2.4 ) nMuon++;
131 if ( mcIter->pdgId() == 11 || mcIter->pdgId() == -11) {
133 if ( mcIter->mother()->pdgId() == 23 ) {
135 if ( mcIter->eta() > -2.5 && mcIter->eta() < 2.5 ) nElec++;
139 if ( mcIter->pdgId() == 15 || mcIter->pdgId() == -15) {
141 if ( mcIter->mother()->pdgId() == 23 ) {
143 if ( mcIter->eta() > -2.5 && mcIter->eta() < 2.5 ) nTau++;
157 if (nMuon > 1 && nElec > 1) {
161 if ( isFourE || isFourM || isTwoETwoM ) {
177 int nStiffLeptons = 0;
184 event.getByLabel(theGLBMuonLabel.label(), muTracks);
187 reco::TrackCollection::const_iterator
muons;
191 for ( muons = muTracks->begin(); muons != muTracks->end(); ++
muons ) {
192 float pt_mu = muons->pt();
193 if ( pt_mu > stiffMinPt ) nStiffLeptons++;
194 if ( pt_mu > softMinPt ) nLeptons++;
203 event.getByLabel(thePixelGsfELabel.label(),pTracks);
209 reco::GsfElectronCollection::const_iterator
electrons;
213 for ( electrons = eTracks->begin(); electrons != eTracks->end(); ++
electrons ) {
214 float pt_e = electrons->pt();
215 if ( pt_e > stiffMinPt ) nStiffLeptons++;
216 if ( pt_e > softMinPt ) nLeptons++;
222 if ( nStiffLeptons >= nStiffLeptonMin && nLeptons >= nLeptonMin) {
229 if (isFourE) nSelFourE++;
230 if (isFourM) nSelFourM++;
231 if (isTwoETwoM) nSelTwoETwoM++;
232 if (isFourL) nSelFourL++;
233 if (isTau) nSelTau++;
T getParameter(std::string const &) const
std::vector< Track > TrackCollection
collection of Tracks
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
HiggsToZZ4LeptonsSkimEff(const edm::ParameterSet &)
~HiggsToZZ4LeptonsSkimEff()
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
T const * product() const
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Get event properties to send to builder to fill seed collection.
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
bool isTau(const Candidate &part)