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) {
101 iso.
ecalClusterIsoR1(CxC.getBkgSubEcalClusterIso(phoItr->superCluster(), 1, 0));
102 iso.
ecalClusterIsoR2(CxC.getBkgSubEcalClusterIso(phoItr->superCluster(), 2, 0));
103 iso.
ecalClusterIsoR3(CxC.getBkgSubEcalClusterIso(phoItr->superCluster(), 3, 0));
104 iso.
ecalClusterIsoR4(CxC.getBkgSubEcalClusterIso(phoItr->superCluster(), 4, 0));
105 iso.
ecalClusterIsoR5(CxC.getBkgSubEcalClusterIso(phoItr->superCluster(), 5, 0));
107 iso.
hcalRechitIsoR1(RxC.getBkgSubHcalRechitIso(phoItr->superCluster(), 1, 0));
108 iso.
hcalRechitIsoR2(RxC.getBkgSubHcalRechitIso(phoItr->superCluster(), 2, 0));
109 iso.
hcalRechitIsoR3(RxC.getBkgSubHcalRechitIso(phoItr->superCluster(), 3, 0));
110 iso.
hcalRechitIsoR4(RxC.getBkgSubHcalRechitIso(phoItr->superCluster(), 4, 0));
111 iso.
hcalRechitIsoR5(RxC.getBkgSubHcalRechitIso(phoItr->superCluster(), 5, 0));
121 const DetId&
id = lazyTool.getMaximum(*seed).first;
138 isoVector.push_back(iso);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< HORecHitCollection > ho_
edm::EDGetTokenT< HBHERecHitCollection > hbhe_
float ecalClusterIsoR3() const
Cluster-based isolation (ECAL) R = 0.3.
std::vector< EcalRecHit >::const_iterator const_iterator
edm::EDGetTokenT< reco::BasicClusterCollection > endcapClusters_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
float ecalClusterIsoR4() const
Cluster-based isolation (ECAL) R = 0.4.
float swissCrx() const
SwissCross crystal ratio.
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geometryToken_
float hcalRechitIsoR5() const
Rechit-based isolation (HCAL) R = 0.5.
T const * product() const
float trackIsoR5PtCut20() const
Track-based isolation, pt>2.0GeV, R = 0.5.
edm::EDGetTokenT< HFRecHitCollection > hf_
float ecalClusterIsoR2() const
Cluster-based isolation (ECAL) R = 0.2.
float ecalClusterIsoR5() const
Cluster-based isolation (ECAL) R = 0.5.
std::string trackQuality_
float ecalClusterIsoR1() const
Cluster-based isolation (ECAL) R = 0.1.
float trackIsoR2PtCut20() const
Track-based isolation, pt>2.0GeV, R = 0.2.
float hcalRechitIsoR1() const
Rechit-based isolation (HCAL) R = 0.1.
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
edm::EDGetTokenT< EcalRecHitCollection > endcapEcalHits_
edm::EDGetTokenT< reco::BasicClusterCollection > barrelClusters_
edm::EDGetTokenT< EcalRecHitCollection > barrelEcalHits_
float hcalRechitIsoR2() const
Rechit-based isolation (HCAL) R = 0.2.
float trackIsoR3PtCut20() const
Track-based isolation, pt>2.0GeV, R = 0.3.
float hcalRechitIsoR3() const
Rechit-based isolation (HCAL) R = 0.3.
edm::EDGetTokenT< reco::PhotonCollection > photonProducer_
float trackIsoR4PtCut20() const
Track-based isolation, pt>2.0GeV, R = 0.4.
float seedTime() const
Ecal rechit seed time.
float trackIsoR1PtCut20() const
Track-based isolation, pt>2.0GeV, R = 0.1.
edm::EDGetTokenT< reco::TrackCollection > tracks_
float hcalRechitIsoR4() const
Rechit-based isolation (HCAL) R = 0.4.
const EcalClusterLazyTools::ESGetTokens ecalClusterToolsESGetTokens_