File indexing completed on 2026-09-22 08:09:56
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029 #ifndef DetectorConstruction_h
0030 #define DetectorConstruction_h 1
0031
0032 #include "G4VUserDetectorConstruction.hh"
0033 #include "globals.hh"
0034
0035 class G4VPhysicalVolume;
0036 class G4LogicalVolume;
0037 class G4Material;
0038 class DetectorMessenger;
0039
0040
0041
0042 class DetectorConstruction : public G4VUserDetectorConstruction
0043 {
0044 public:
0045 DetectorConstruction();
0046 ~DetectorConstruction() override;
0047
0048 public:
0049 G4VPhysicalVolume* Construct() override;
0050
0051 G4Material* MaterialWithSingleIsotope(G4String, G4String, G4double, G4int, G4int);
0052
0053 void SetAbsorThickness(G4double);
0054 void SetAbsorSizeYZ(G4double);
0055 void SetAbsorMaterial(G4String);
0056
0057 public:
0058 G4double GetAbsorThickness() { return fAbsorThickness; };
0059 G4double GetAbsorSizeYZ() { return fAbsorSizeYZ; };
0060 G4Material* GetAbsorMaterial() { return fAbsorMaterial; };
0061
0062 G4double GetWorldSizeX() { return fWorldSizeX; };
0063 G4double GetWorldSizeYZ() { return fWorldSizeYZ; };
0064
0065 void PrintParameters();
0066
0067 private:
0068 G4double fAbsorThickness = 0.;
0069 G4double fAbsorSizeYZ = 0.;
0070 G4Material* fAbsorMaterial = nullptr;
0071 G4LogicalVolume* fLAbsor = nullptr;
0072
0073 G4double fWorldSizeX = 0.;
0074 G4double fWorldSizeYZ = 0.;
0075 G4Material* fWorldMaterial = nullptr;
0076 G4VPhysicalVolume* fWorldVolume = nullptr;
0077
0078 DetectorMessenger* fDetectorMessenger = nullptr;
0079
0080 private:
0081 void DefineMaterials();
0082 G4VPhysicalVolume* ConstructVolumes();
0083 };
0084
0085
0086
0087 #endif