50 virtual void endJob()
override ;
157 reco::PhotonCollection::const_iterator pho;
158 for (pho = (*photons).begin(); pho!= (*photons).end(); pho++){
159 if (!pho->isEB() && !
_selectEE)
continue;
161 double ecalisocut = 0;
162 double hcalisocut = 0;
163 double hadoverem = 0;
184 if (pho->ecalRecHitSumEtConeDR04() < ecalisocut
185 && pho->hcalTowerSumEtConeDR04() < hcalisocut
186 && pho->hadronicOverEm() < hadoverem
187 && pho->pt() > minphoet
188 && pho->trkSumPtHollowConeDR04()<trackiso
189 && pho->sigmaIetaIeta() <etawidth
193 if (PreselPhotons > 0 )
return true;
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
virtual void endJob() override
MonoPhotonSkimmer(const edm::ParameterSet &)
edm::EDGetTokenT< reco::PhotonCollection > _phoToken
std::vector< Photon > PhotonCollection
collectin of Photon objects
virtual void beginJob() override
virtual bool filter(edm::Event &, const edm::EventSetup &) override