22 fHFRecHits_ =
nullptr;
27 fHORecHits_ =
nullptr;
32 fHBHERecHits_ =
nullptr;
37 geometry_ = geometryHandle.
product();
54 const DetId &detid = rechit.
id();
55 const GlobalPoint& hitpoint = geometry_->getPosition(detid);
56 double eta = hitpoint.
eta();
60 if ( dR2 < innerR*innerR )
continue;
62 if (dR2< (x*x*0.01)) {
63 double et = rechit.
energy()/cosh(eta);
64 if (et<threshold) et=0;
78 double SClusterEta = cluster->eta();
83 const DetId &detid = rechit.
id();
84 const GlobalPoint& hitpoint = geometry_->getPosition(detid);
85 double eta = hitpoint.
eta();
86 double dEta = fabs(eta-SClusterEta);
89 double et = rechit.
energy()/cosh(eta);
90 if (et<threshold) et=0;
95 double Rx = getHcalRechitIso(cluster,x,threshold,innerR);
96 double CRx = (Rx - TotalEt * (0.01*x*x - innerR*innerR) / (2 * 2 * 0.1 * x))*(1/(1-x/40.)) ;
HcalRechitIsoCalculator(const edm::Event &iEvent, const edm::EventSetup &iSetup, const edm::Handle< HBHERecHitCollection > hbhe, const edm::Handle< HFRecHitCollection > hfLabel, const edm::Handle< HORecHitCollection > hoLabel)
HcalDetId id() const
get the id
double getHcalRechitIso(const reco::SuperClusterRef clus, const double i, const double threshold, const double innerR=0.0)
Return the hcal rechit energy in a cone around the SC.
T const * product() const
T const * product() const
T1 deltaR2(T1 eta1, T2 phi1, T3 eta2, T4 phi2)
double getBkgSubHcalRechitIso(const reco::SuperClusterRef clus, const double i, const double threshold, const double innerR=0.0)
Return the background-subtracted hcal rechit energy in a cone around the SC.