Skip to content

Commit

Permalink
Same patch to orientation code
Browse files Browse the repository at this point in the history
  • Loading branch information
EinarElen committed Nov 1, 2023
1 parent 25e80b9 commit f6ab4d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions DetDescr/src/DetDescr/HcalGeometry.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ HcalGeometry::ScintillatorOrientation HcalGeometry::getScintillatorOrientation(
? ScintillatorOrientation::horizontal
: ScintillatorOrientation::vertical;
} // v13/v12 detector
// Can only reach this part if we somehow didn't match any of the options
// above. This could happen if someone introduces a new geometry but doesn't
// patch this part.
EXCEPTION_RAISE("InvalidRotation",
"Attempted to rotate into an invalid "
"orientation for a scintillator bar!");
}
void HcalGeometry::printPositionMap(int section) const {
// Note that layer numbering starts at 1 rather than 0
Expand Down

0 comments on commit f6ab4d8

Please sign in to comment.