22#include "BDSTypeSafeEnum.hh"
34 enum type {circular, elliptical, square, rectangular, ilc, rectaboveground};
47 void CheckTunnelInfo(BDSTunnelType tunnelTypeIn,
48 G4double& tunnelOffsetX,
49 G4double& tunnelOffsetY,
51 G4double& tunnelFloorOffset,
56 void InfoOKForCircular(G4double& tunnelOffsetX, G4double& tunnelOffsetY, G4bool tunnelFloor, G4double& tunnelFloorOffset,
57 G4double& tunnel1, G4double& tunnel2);
60 void InfoOKForElliptical(G4double& tunnelOffsetX, G4double& tunnelOffsetY, G4bool tunnelFloor, G4double& tunnelFloorOffset,
61 G4double& tunnel1, G4double& tunnel2);
64 void InfoOKForRectangular(G4double& tunnelOffsetX, G4double& tunnelOffsetY, G4bool tunnelFloor, G4double& tunnelFloorOffset,
65 G4double& tunnel1, G4double& tunnel2);
68 void InfoOKForSquare(G4double& tunnelOffsetX, G4double& tunnelOffsetY, G4bool tunnelFloor, G4double& tunnelFloorOffset,
69 G4double& tunnel1, G4double& tunnel2);
Improve type-safety of native enum data type in C++.
Return either G4Tubs or G4CutTubs depending on flat face.
BDSTunnelType DetermineTunnelType(G4String tunnelType)
Function to determine the enum type of the tunnel (case-insensitive)
Type definition for tunnels - used for comparison in factory methods.