18 template <
typename T1>
27 drVetoBarrel_(drVetoBarrel),
28 drVetoEndcap_(drVetoEndcap),
29 etaStripBarrel_(etaStripBarrel),
30 etaStripEndcap_(etaStripEndcap),
31 energyBarrel_(energyBarrel),
32 energyEndcap_(energyEndcap) {}
34 template <
typename T1>
37 template <
typename T1>
42 if (fabs(candRef->eta()) < 1.479) {
51 for (
size_t i = 0;
i < clusterHandle->size();
i++) {
54 if (fabs(candRef->eta()) < 1.479) {
62 float dEta = fabs(candRef->eta() - pfclu->eta());
74 template <
typename T1>
76 float dR2 =
deltaR2(candRef->eta(), candRef->phi(), pfclu->eta(), pfclu->phi());
80 if (candRef->superCluster().
isNonnull()) {
83 it != candRef->superCluster()->clustersEnd();
85 if ((*it)->seed() == pfclu->seed()) {
96 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_
bool computedRVeto(T1Ref candRef, reco::PFClusterRef pfclu)
const double drVetoEndcap_
double getSum(T1Ref, edm::Handle< std::vector< reco::PFCluster > >)