geant4-B1-example  1.0
 All Classes Files Functions Variables Pages
B1DetectorConstruction.hh
Go to the documentation of this file.
1 /// \file B1DetectorConstruction.hh
2 /// \brief Definition of the B1DetectorConstruction class
3 
4 #ifndef B1DetectorConstruction_h
5 #define B1DetectorConstruction_h 1
6 
7 #include "G4VUserDetectorConstruction.hh"
8 #include "globals.hh"
9 
10 class G4VPhysicalVolume;
11 class G4LogicalVolume;
12 
13 /// @brief Detector construction class to define materials and geometry.
14 /// + Construct(): set up the geometry and assign the scoring volume.
15 /// + GetScoringVolume(): return the scoring volume.
16 class B1DetectorConstruction : public G4VUserDetectorConstruction
17 {
18  public:
19 
21 
22  virtual ~B1DetectorConstruction();
23 
24  virtual G4VPhysicalVolume* Construct();
25 
26  G4LogicalVolume* GetScoringVolume() const { return fScoringVolume; }
27 
28  protected:
29  G4LogicalVolume* fScoringVolume;
30 
31 };
32 
33 
34 
35 #endif
36 
virtual ~B1DetectorConstruction()
do nothing.
B1DetectorConstruction()
iniitalize fScoringVolume to 0
Detector construction class to define materials and geometry.
G4LogicalVolume * GetScoringVolume() const
G4LogicalVolume * fScoringVolume
virtual G4VPhysicalVolume * Construct()
the main place for geometry setting. the scoring volume is set to shape2 (bone)