File indexing completed on 2025-12-15 09:32:17
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
0030
0031
0032
0033 #ifndef DetectorConstruction_h
0034 #define DetectorConstruction_h 1
0035
0036 #include "G4VUserDetectorConstruction.hh"
0037 #include "globals.hh"
0038
0039 class G4LogicalVolume;
0040 class G4Material;
0041 class DetectorMessenger;
0042
0043
0044
0045 class DetectorConstruction : public G4VUserDetectorConstruction
0046 {
0047 public:
0048 DetectorConstruction();
0049 ~DetectorConstruction() override;
0050
0051 public:
0052 G4VPhysicalVolume* Construct() override;
0053
0054 G4Material* MaterialWithSingleIsotope(G4String, G4String, G4double, G4int, G4int);
0055
0056 void SetAbsorRadius(G4double);
0057 void SetAbsorLength(G4double);
0058 void SetAbsorMaterial(G4String);
0059
0060 void SetContainThickness(G4double);
0061 void SetContainMaterial(G4String);
0062
0063 public:
0064 G4double GetAbsorRadius() { return fAbsorRadius; };
0065 G4double GetAbsorLength() { return fAbsorLength; };
0066 G4Material* GetAbsorMaterial() { return fAbsorMaterial; };
0067
0068 G4double GetContainThickness() { return fContainThickness; };
0069 G4Material* GetContainMaterial() { return fContainMaterial; };
0070
0071 void PrintParameters();
0072
0073 private:
0074 G4double fAbsorRadius = 0., fAbsorLength = 0.;
0075 G4Material* fAbsorMaterial = nullptr;
0076 G4LogicalVolume* fLAbsor = nullptr;
0077
0078 G4double fContainThickness = 0.;
0079 G4Material* fContainMaterial = nullptr;
0080 G4LogicalVolume* fLContain = nullptr;
0081
0082 G4Material* fWorldMaterial = nullptr;
0083 G4VPhysicalVolume* fPWorld = nullptr;
0084
0085 DetectorMessenger* fDetectorMessenger = nullptr;
0086
0087 private:
0088 void DefineMaterials();
0089 G4VPhysicalVolume* ConstructVolumes();
0090 };
0091
0092
0093
0094 #endif