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) {
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) {
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();
const double energyEndcap_
const double drVetoBarrel_
const double drVetoEndcap_
double getSum(const T1Ref candRef, const std::vector< edm::Handle< reco::PFClusterCollection >> &clusterHandles)
HcalPFClusterIsolation(double drMax, double drVetoBarrel, double drVetoEndcap, double etaStripBarrel, double etaStripEndcap, double energyBarrel, double energyEndcap, bool useEt)
~HcalPFClusterIsolation()
const double energyBarrel_
const double etaStripBarrel_
const double etaStripEndcap_