CaptWorldBuilder.hh
Go to the documentation of this file.
1 #ifndef CaptWorldBuilder_hh_Seen
2 #define CaptWorldBuilder_hh_Seen
3 
4 #include "EDepSimBuilder.hh"
5 
6 class G4LogicalVolume;
7 
8 /// Construct the world volume. The origin is located at the center of the
9 /// detector coordinate system. The world is mostly filled with air.
11 public:
13  : EDepSim::Builder(n,c) {Init();};
14  virtual ~CaptWorldBuilder();
15 
16  /// Construct and return a G4 volume for the object. This is a pure
17  /// virtual function, which means it must be implemented by the inheriting
18  /// classes. This returns an unplaced logical volume which faces along
19  /// the Z axis.
20  virtual G4LogicalVolume *GetPiece(void);
21 
22  /// Set the length of the world
23  void SetLength(double v) {fLength = v;}
24 
25  /// Set the width of the world
26  void SetWidth(double v) {fWidth = v;}
27 
28  /// Set the height of the world
29  void SetHeight(double v) {fHeight = v;}
30 
31  /// Get the length of the world
32  double GetLength() {return fLength;}
33 
34  /// Get the width of the world
35  double GetWidth() {return fWidth;}
36 
37  /// Get the height of the world
38  double GetHeight() {return fHeight;}
39 
40 
41 private:
42  void Init(void);
43 
44  /// The distance along the X axis to simulate.
45  double fLength;
46 
47  /// The side to side (Y) dimension to be simulated
48  double fWidth;
49 
50  /// The height (Z) of the world coordinate system.
51  double fHeight;
52 
53 };
54 #endif
virtual ~CaptWorldBuilder()
void SetHeight(double v)
Set the height of the world.
double fLength
The distance along the X axis to simulate.
double GetHeight()
Get the height of the world.
Construct a module from components.
Definition: TG4HitSegment.h:10
Builder(G4String n, EDepSim::UserDetectorConstruction *c)
std::void_t< T > n
void SetWidth(double v)
Set the width of the world.
double fWidth
The side to side (Y) dimension to be simulated.
void SetLength(double v)
Set the length of the world.
double GetLength()
Get the length of the world.
CaptWorldBuilder(G4String n, EDepSim::UserDetectorConstruction *c)
double GetWidth()
Get the width of the world.
virtual G4LogicalVolume * GetPiece(void)
double fHeight
The height (Z) of the world coordinate system.