33 debug =
pset.getParameter<
bool>(
"DebugHiggsTo2GammaSkim");
36 thePhotonToken = consumes<reco::PhotonCollection>(
pset.getParameter<
edm::InputTag>(
"PhotonCollectionLabel"));
39 photon1MinPt =
pset.getParameter<
double>(
"photon1MinimumPt");
40 nPhotonMin =
pset.getParameter<
int>(
"nPhotonMinimum");
49 << nSelectedEvents <<
" Efficiency "
50 << ((double)nSelectedEvents) / ((double)
nEvents + 0.01) << std::endl;
59 bool keepEvent =
false;
67 event.getByToken(thePhotonToken, photonHandle);
72 reco::PhotonCollection::const_iterator
photons;
81 if (et_p > photon1MinPt)
87 if (nPhotons >= nPhotonMin)