Go to the documentation of this file.
22 fHFRecHits_ =
hf.product();
24 fHFRecHits_ =
nullptr;
27 fHORecHits_ =
ho.product();
29 fHORecHits_ =
nullptr;
32 fHBHERecHits_ =
hbhe.product();
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)) {
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);
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.));
T const * product() 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)
constexpr float energy() const
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.
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.
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
T const & get(Event const &event, InputTag const &tag) noexcept(false)
constexpr HcalDetId id() const
get the id