Skip to content

Commit

Permalink
Add the break statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Jul 18, 2017
1 parent bf2f289 commit 5bbf8ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions RecoLocalCalo/HGCalRecAlgos/src/RecHitTools.cc
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,17 @@ unsigned int RecHitTools::getLayer(const ForwardSubdetector type) const {
case(ForwardSubdetector::HGCEE): {
auto geomEE = static_cast<const HGCalGeometry*>(geom_->getSubdetectorGeometry(DetId::Forward,ForwardSubdetector::HGCEE));
layer = (geomEE->topology().dddConstants()).layers(true);
break;
}
case (ForwardSubdetector::HGCHEF): {
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));
Expand All @@ -151,6 +154,7 @@ unsigned int RecHitTools::getLayer(const ForwardSubdetector type) const {
layer += (geomFH->topology().dddConstants()).layers(true);
auto geomBH = static_cast<const HcalGeometry*>(geom_->getSubdetectorGeometry(DetId::Hcal,HcalSubdetector::HcalEndcap));
layer += (geomBH->topology().dddConstants())->getMaxDepth(1);
break;
}
default: layer = 0;
}
Expand Down

0 comments on commit 5bbf8ac

Please sign in to comment.