File indexing completed on 2026-09-18 08:32:31
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
0034
0035
0036
0037
0038
0039
0040 #ifndef DetectorConstruction_h
0041 #define DetectorConstruction_h 1
0042
0043 #include "G4LogicalVolume.hh"
0044 #include "G4VUserDetectorConstruction.hh"
0045
0046 class DetectorMessenger;
0047
0048 class DetectorConstruction : public G4VUserDetectorConstruction
0049 {
0050 public:
0051 DetectorConstruction();
0052 ~DetectorConstruction() override;
0053
0054 void SetTrackingCut(G4double);
0055
0056 void SetCytoThickness(G4double);
0057 void SetCytoMaterial(const G4String&);
0058
0059 void SetNuclRadius(G4double);
0060 void SetNuclMaterial(const G4String&);
0061
0062 void SetWorldMaterial(const G4String&);
0063
0064 G4VPhysicalVolume* Construct() override;
0065
0066 inline G4double GetCytoThickness() const { return fCytoThickness; }
0067
0068 inline G4Material* GetCytoMaterial() const { return fCytoMaterial; }
0069
0070 inline G4double GetCytoMass() const { return fLogicalCyto->GetMass(); }
0071
0072 inline G4double GetNuclRadius() const { return fNuclRadius; }
0073
0074 inline G4Material* GetNuclMaterial() const { return fNuclMaterial; }
0075
0076 inline G4double GetNuclMass() const { return fLogicalNucl->GetMass(); }
0077
0078 const G4LogicalVolume* GetNuclLogicalVolume() const { return fLogicalNucl; }
0079
0080 const G4LogicalVolume* GetCytoLogicalVolume() const { return fLogicalCyto; }
0081
0082 void PrintParameters() const;
0083
0084 private:
0085 void DefineMaterials();
0086
0087 G4Material* fNuclMaterial = nullptr;
0088 G4Material* fCytoMaterial = nullptr;
0089 G4Material* fWorldMaterial = nullptr;
0090
0091 G4VPhysicalVolume* fNucl = nullptr;
0092 G4VPhysicalVolume* fCyto = nullptr;
0093 G4VPhysicalVolume* fWorld = nullptr;
0094
0095 G4LogicalVolume* fLogicalNucl = nullptr;
0096 G4LogicalVolume* fLogicalCyto = nullptr;
0097 G4LogicalVolume* fLogicalWorld = nullptr;
0098
0099 DetectorMessenger* fDetectorMessenger = nullptr;
0100
0101 G4double fTrackingCut;
0102 G4double fNuclRadius;
0103 G4double fCytoThickness;
0104 G4double fWorldRadius;
0105 };
0106
0107 #endif