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.)) ;
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
et
define resolution functions of each parameter
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