19#include "BDSApertureInfo.hh"
21#include "BDSException.hh"
22#include "BDSGlobalConstants.hh"
23#include "BDSSamplerCustom.hh"
27#include "G4LogicalVolume.hh"
30G4double BDSSamplerCustom::chordLength = -1;
49 case BDSApertureType::circular:
50 case BDSApertureType::circularvacuum:
52 containerSolid =
new G4Tubs(name +
"_solid",
60 case BDSApertureType::rectangular:
62 containerSolid =
new G4Box(name +
"_solid",
70 std::string msg =
"Shape \"" + shape.
apertureType.ToString() +
"\" is not currently supported.\n";
71 msg +=
"Please use circular or rectangular.";
78 G4double dz = 0.5*chordLength;
Holder class for all information required to describe an aperture.
G4double aper1
Public member for direct access.
G4double aper2
Public member for direct access.
BDSApertureType apertureType
Public member for direct access.
General exception with possible name of object and message.
Holder for +- extents in 3 dimensions.
G4double XPos() const
Accessor.
G4double XNeg() const
Accessor.
G4double YNeg() const
Accessor.
G4double YPos() const
Accessor.
BDSSamplerCustom()=delete
No default constructor.
Base class and registry of sampler instances.
type underlying() const
return underlying value (can be used in switch statement)