CaptPMTBuilder.hh
Go to the documentation of this file.
1 #ifndef CaptPMTBuilder_hh_Seen
2 #define CaptPMTBuilder_hh_Seen
3 
4 #include "EDepSimBuilder.hh"
5 
6 class G4LogicalVolume;
7 
8 /// Construct an unrotated PMT. In the local coordinate system, the
9 /// PMT points along the positive Z direction.
11 public:
13  : EDepSim::Builder(name,parent) {Init();};
14  virtual ~CaptPMTBuilder();
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  /// Get or set the length of the base. The base length measures from the
23  /// face of the photocathode to the back of the PMT.
24  /// @{
25  void SetBaseLength(double v) {fBaseLength = v;}
26  double GetBaseLength() const {return fBaseLength;}
27  /// @}
28 
29  /// Set the size of the PMT.
30  /// @{
31  void SetSize(double v) {fSize = v;}
32  double GetSize() const {return fSize;}
33  /// @}
34 
35  /// Set that the PMT is round
36  void SetRound(bool v) {fRoundPMT = v;}
37  bool IsRound() const {return fRoundPMT;}
38 
39 private:
40  void Init(void);
41 
42  /// The size of the PMT.
43  double fSize;
44 
45  /// The length of the PMT base.
46  double fBaseLength;
47 
48  /// Flag that the PMT is round (not square).
49  bool fRoundPMT;
50 
51 };
52 #endif
static QCString name
Definition: declinfo.cpp:673
void Init(void)
bool fRoundPMT
Flag that the PMT is round (not square).
double fBaseLength
The length of the PMT base.
double GetBaseLength() const
bool IsRound() const
void SetSize(double v)
double fSize
The size of the PMT.
void SetRound(bool v)
Set that the PMT is round.
Construct a module from components.
Definition: TG4HitSegment.h:10
CaptPMTBuilder(G4String name, EDepSim::Builder *parent)
Builder(G4String n, EDepSim::UserDetectorConstruction *c)
virtual ~CaptPMTBuilder()
virtual G4LogicalVolume * GetPiece(void)
void SetBaseLength(double v)
double GetSize() const
def parent(G, child, parent_type)
Definition: graph.py:67