10 template <
typename T1>
28 template <
typename T1>
31 template <
typename T1>
38 if (fabs(candRef->eta()) < 1.479) {
39 dRVeto = drVetoBarrel_;
40 etaStrip = etaStripBarrel_;
42 dRVeto = drVetoEndcap_;
43 etaStrip = etaStripEndcap_;
46 for (
unsigned int nHandle = 0; nHandle < clusterHandles.size(); nHandle++) {
47 for (
unsigned i = 0;
i < clusterHandles[nHandle]->size();
i++) {
50 if (fabs(candRef->eta()) < 1.479) {
51 if (fabs(pfclu->pt()) < energyBarrel_)
54 if (fabs(pfclu->energy()) < energyEndcap_)
58 float dEta = fabs(candRef->eta() - pfclu->eta());
62 float dR =
deltaR(candRef->eta(), candRef->phi(), pfclu->eta(), pfclu->phi());
63 if (
dR > drMax_ ||
dR < dRVeto)
69 etSum += pfclu->energy();