19 fHFRecHits_ =
hf.product();
21 fHFRecHits_ =
nullptr;
24 fHORecHits_ =
ho.product();
26 fHORecHits_ =
nullptr;
29 fHBHERecHits_ =
hbhe.product();
31 fHBHERecHits_ =
nullptr;
39 const double innerR) {
48 const DetId &detid = rechit.
id();
49 const GlobalPoint &hitpoint = geometry_->getPosition(detid);
50 double eta = hitpoint.
eta();
54 if (
dR2 < innerR * innerR)
57 if (
dR2 < (
x *
x * 0.01)) {
71 const double innerR) {
76 double SClusterEta = cluster->eta();
81 const DetId &detid = rechit.
id();
82 const GlobalPoint &hitpoint = geometry_->getPosition(detid);
83 double eta = hitpoint.
eta();
84 double dEta = fabs(
eta - SClusterEta);
94 double Rx = getHcalRechitIso(cluster,
x,
threshold, innerR);
95 double CRx = (Rx - TotalEt * (0.01 *
x *
x - innerR * innerR) / (2 * 2 * 0.1 *
x)) * (1 / (1 -
x / 40.));
HcalRechitIsoCalculator(const CaloGeometry *geometry, const edm::Handle< HBHERecHitCollection > hbhe, const edm::Handle< HFRecHitCollection > hfLabel, const edm::Handle< HORecHitCollection > hoLabel)
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 float energy() const
ALPAKA_FN_ACC static ALPAKA_FN_INLINE float dR2(Position4 pos1, Position4 pos2)
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
constexpr HcalDetId id() const
get the id
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.