Skip to content

Commit

Permalink
Merge pull request #20660 from rovere/HGCAL_Silent_InvalidSiliconDeti…
Browse files Browse the repository at this point in the history
…d_94X

Silent getSiThickness::InvalidSiliconDetid
  • Loading branch information
cmsbuild committed Sep 28, 2017
2 parents e824f6e + dcd7d18 commit 030352c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RecoLocalCalo/HGCalRecAlgos/src/RecHitTools.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ std::float_t RecHitTools::getSiThickness(const DetId& id) const {
auto geom = geom_->getSubdetectorGeometry(id);
check_geom(geom);
if( id.det() != DetId::Forward ) {
edm::LogError("getSiThickness::InvalidSiliconDetid")
LogDebug("getSiThickness::InvalidSiliconDetid")
<< "det id: " << id.rawId() << " is not HGCal silicon!";
}
const HGCalDetId hid(id);
Expand Down Expand Up @@ -141,12 +141,12 @@ unsigned int RecHitTools::getLayer(const ForwardSubdetector type) const {
auto geomFH = static_cast<const HGCalGeometry*>(geom_->getSubdetectorGeometry(DetId::Forward,ForwardSubdetector::HGCHEF));
layer = (geomFH->topology().dddConstants()).layers(true);
break;
}
}
case (ForwardSubdetector::HGCHEB): {
auto geomBH = static_cast<const HcalGeometry*>(geom_->getSubdetectorGeometry(DetId::Hcal,HcalSubdetector::HcalEndcap));
layer = (geomBH->topology().dddConstants())->getMaxDepth(1);
break;
}
}
case (ForwardSubdetector::ForwardEmpty): {
auto geomEE = static_cast<const HGCalGeometry*>(geom_->getSubdetectorGeometry(DetId::Forward,ForwardSubdetector::HGCEE));
layer = (geomEE->topology().dddConstants()).layers(true);
Expand Down

0 comments on commit 030352c

Please sign in to comment.