27 drVetoBarrel_(drVetoBarrel),
28 drVetoEndcap_(drVetoEndcap),
29 etaStripBarrel_(etaStripBarrel),
30 etaStripEndcap_(etaStripEndcap),
31 energyBarrel_(energyBarrel),
32 energyEndcap_(energyEndcap)
45 if (fabs(candRef->eta()) < 1.479) {
54 for (
size_t i=0;
i<clusterHandle->size();
i++) {
57 if (fabs(candRef->eta()) < 1.479) {
65 float dEta = fabs(candRef->eta() - pfclu->eta());
66 if(dEta < etaStrip)
continue;
78 float dR2 =
deltaR2(candRef->eta(), candRef->phi(), pfclu->eta(), pfclu->phi());
82 if (candRef->superCluster().
isNonnull()) {
84 for (
reco::CaloCluster_iterator it = candRef->superCluster()->clustersBegin(); it != candRef->superCluster()->clustersEnd(); ++it) {
85 if ((*it)->seed() == pfclu->seed()) {
97 float dR2 =
deltaR2(candRef->eta(), candRef->phi(), pfclu->eta(), pfclu->phi());
EcalPFClusterIsolation(double drMax, double drVetoBarrel, double drVetoEndcap, double etaStripBarrel, double etaStripEndcap, double energyBarrel, double energyEndcap)
const double energyBarrel_
bool isNonnull() const
Checks for non-null.
~EcalPFClusterIsolation()
const double etaStripEndcap_
const double energyEndcap_
const double etaStripBarrel_
const double drVetoBarrel_
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
bool computedRVeto(T1Ref candRef, reco::PFClusterRef pfclu)
const double drVetoEndcap_
double getSum(T1Ref, edm::Handle< std::vector< reco::PFCluster > >)