49 : photonProducer_(consumes(
config.getParameter<
edm::
InputTag>(
"photonProducer"))),
50 barrelEcalHits_(consumes(
config.getParameter<
edm::
InputTag>(
"ebRecHitCollection"))),
51 endcapEcalHits_(consumes(
config.getParameter<
edm::
InputTag>(
"eeRecHitCollection"))),
55 barrelClusters_(consumes(
config.getParameter<
edm::
InputTag>(
"basicClusterBarrel"))),
56 endcapClusters_(consumes(
config.getParameter<
edm::
InputTag>(
"basicClusterEndcap"))),
58 ecalClusterToolsESGetTokens_{consumesCollector()},
61 produces<reco::HIPhotonIsolationMap>();
84 auto outputMap = std::make_unique<reco::HIPhotonIsolationMap>();
86 std::vector<reco::HIPhotonIsolation> isoVector;
98 for (reco::PhotonCollection::const_iterator phoItr =
photons->begin(); phoItr !=
photons->end(); ++phoItr) {
121 const DetId&
id = lazyTool.getMaximum(*seed).first;
125 if (
it != rechits.end()) {
138 isoVector.push_back(
iso);
159 descriptions.
add(
"photonIsolationHIProducer",
desc);
photonIsolationHIProducer(const edm::ParameterSet &ps)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< HORecHitCollection > ho_
edm::EDGetTokenT< HBHERecHitCollection > hbhe_
std::vector< EcalRecHit >::const_iterator const_iterator
edm::EDGetTokenT< reco::BasicClusterCollection > endcapClusters_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
double getBkgSubEcalClusterIso(const reco::SuperClusterRef clus, const double radius, const double threshold)
Return the background-subtracted ecal cluster energy in a cone around the SC.
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geometryToken_
T const * product() const
edm::EDGetTokenT< HFRecHitCollection > hf_
std::string trackQuality_
#define DEFINE_FWK_MODULE(type)
void produce(edm::Event &evt, const edm::EventSetup &es) override
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< EcalRecHitCollection > endcapEcalHits_
edm::EDGetTokenT< reco::BasicClusterCollection > barrelClusters_
edm::EDGetTokenT< EcalRecHitCollection > barrelEcalHits_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
double getBkgSubTrackIso(reco::Photon const &clus, const double i, const double threshold, const double innerDR=0)
Return the background-subtracted tracker energy in a cone around the photon.
edm::EDGetTokenT< reco::PhotonCollection > photonProducer_
double getBkgSubHcalRechitIso(const reco::SuperClusterRef clus, const double i, const double threshold, const double innerR=0.0)
Return the background-subtracted hcal rechit energy in a cone around the SC.
edm::EDGetTokenT< reco::TrackCollection > tracks_
const EcalClusterLazyTools::ESGetTokens ecalClusterToolsESGetTokens_