Skip to content

Commit

Permalink
Add exception for wrong spelling of source
Browse files Browse the repository at this point in the history
  • Loading branch information
paolafer committed Feb 27, 2024
1 parent 84ab57a commit 38abfc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/geometries/Next100Vessel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,10 @@ namespace nexus {
source.GetSourceThickness()/2.,
0., 360.*deg, source_rot);
source_logic = source.GetLogicalVolume();
} else {
G4Exception("[Next100Vessel]", "Construct()", FatalException,
"Unknow kind of calibration source; it must be "
"next100 or next_white.");
}

G4ThreeVector source_pos =
Expand Down

0 comments on commit 38abfc3

Please sign in to comment.