72 double hcalEnergy = 0 ;
75 iterRecHit = hithbhe_->
find(hcalDetId) ;
76 if (iterRecHit!=hithbhe_->
end()) {
77 hcalEnergy = iterRecHit->energy() ;
78 HoE = hcalEnergy/ecalEnergy ;
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
const HBHERecHitCollection * hithbhe_
Global3DPoint GlobalPoint
std::vector< T >::const_iterator const_iterator
double z() const
z coordinate of cluster centroid
double operator()(const reco::BasicCluster *, const edm::Event &e, const edm::EventSetup &c)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
edm::ESHandle< CaloGeometry > theCaloGeom_
double getHoE(GlobalPoint pos, float energy, const edm::Event &e, const edm::EventSetup &c)
double x() const
x coordinate of cluster centroid
double energy() const
cluster energy
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const_iterator end() const
virtual DetId getClosestCell(const GlobalPoint &r) const
T const * product() const
iterator find(key_type k)
double y() const
y coordinate of cluster centroid
T const * product() const