24 fHFRecHits_ =
nullptr;
29 fHORecHits_ =
nullptr;
34 fHBHERecHits_ =
nullptr;
39 geometry_ = geometryHandle.
product();
47 const double innerR) {
56 const DetId &detid = rechit.
id();
57 const GlobalPoint &hitpoint = geometry_->getPosition(detid);
58 double eta = hitpoint.
eta();
62 if (dR2 < innerR * innerR)
65 if (dR2 < (x * x * 0.01)) {
66 double et = rechit.
energy() / cosh(eta);
79 const double innerR) {
84 double SClusterEta = cluster->eta();
89 const DetId &detid = rechit.
id();
90 const GlobalPoint &hitpoint = geometry_->getPosition(detid);
91 double eta = hitpoint.
eta();
92 double dEta = fabs(eta - SClusterEta);
95 double et = rechit.
energy() / cosh(eta);
102 double Rx = getHcalRechitIso(cluster, x, threshold, innerR);
103 double CRx = (Rx - TotalEt * (0.01 * x * x - innerR * innerR) / (2 * 2 * 0.1 * x)) * (1 / (1 - x / 40.));
constexpr float energy() const
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.
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
T const * product() const
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.
T const * product() const