20 drVetoBarrel_(drVetoBarrel),
21 drVetoEndcap_(drVetoEndcap),
22 etaStripBarrel_(etaStripBarrel),
23 etaStripEndcap_(etaStripEndcap),
24 energyBarrel_(energyBarrel),
25 energyEndcap_(energyEndcap),
40 if (fabs(candRef->eta()) < 1.479) {
41 dRVeto = drVetoBarrel_;
42 etaStrip = etaStripBarrel_;
44 dRVeto = drVetoEndcap_;
45 etaStrip = etaStripEndcap_;
49 for (
unsigned int nHandle=0; nHandle<clusterHandles.size(); nHandle++) {
50 for(
unsigned i=0;
i<clusterHandles[nHandle]->size();
i++) {
53 if (fabs(candRef->eta()) < 1.479) {
54 if (fabs(pfclu->pt()) < energyBarrel_)
57 if (fabs(pfclu->energy()) < energyEndcap_)
61 float dEta = fabs(candRef->eta() - pfclu->eta());
65 float dR =
deltaR(candRef->eta(), candRef->phi(), pfclu->eta(), pfclu->phi());
66 if(dR > drMax_ || dR < dRVeto)
72 etSum += pfclu->energy();
double getSum(const T1Ref candRef, const std::vector< edm::Handle< reco::PFClusterCollection >> &clusterHandles)
double deltaR(double eta1, double eta2, double phi1, double phi2)
HcalPFClusterIsolation(double drMax, double drVetoBarrel, double drVetoEndcap, double etaStripBarrel, double etaStripEndcap, double energyBarrel, double energyEndcap, bool useEt)
~HcalPFClusterIsolation()