File indexing completed on 2025-04-04 08:05:19
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 #ifndef DetectorConstruction_H
0035 #define DetectorConstruction_H 1
0036
0037 #include "G4VUserDetectorConstruction.hh"
0038 #include "globals.hh"
0039
0040 class G4LogicalVolume;
0041 class G4VPhysicalVolume;
0042 class G4Material;
0043 class G4FieldManager;
0044 class G4UniformMagField;
0045 class DetectorMessenger;
0046
0047
0048
0049 class DetectorConstruction : public G4VUserDetectorConstruction
0050 {
0051 public:
0052 DetectorConstruction();
0053 ~DetectorConstruction();
0054 G4VPhysicalVolume* Construct() override;
0055
0056 void SetTargetMaterial(const G4String name);
0057 inline G4Material* GetTargetMaterial() const;
0058 inline void SetTargetInnerRadius(const G4double value);
0059 inline G4double GetTargetInnerRadius() const;
0060 inline void SetTargetOuterRadius(const G4double value);
0061 inline G4double GetTargetOuterRadius() const;
0062 void SetMagField(const G4double fieldValue);
0063 void UpdateGeometry();
0064
0065 private:
0066
0067 G4VPhysicalVolume* ConstructLayer();
0068
0069 void PrintParameters();
0070 G4Material* fTargetMaterial;
0071 G4LogicalVolume* fLogicExperimentalHall;
0072 G4VPhysicalVolume* fPhysExperimentalHall;
0073 G4LogicalVolume* fLogicTargetLayer;
0074 G4VPhysicalVolume* fPhysTargetLayer;
0075 G4FieldManager* fFieldMgr;
0076 G4UniformMagField* fUniformMagField;
0077 DetectorMessenger* fDetectorMessenger;
0078 G4double fTargetInnerRadius;
0079 G4double fTargetOuterRadius;
0080 };
0081
0082 inline G4Material* DetectorConstruction::GetTargetMaterial() const
0083 {
0084 return fTargetMaterial;
0085 }
0086
0087 inline void DetectorConstruction::SetTargetInnerRadius(const G4double value)
0088 {
0089 fTargetInnerRadius = value;
0090 }
0091
0092 inline G4double DetectorConstruction::GetTargetInnerRadius() const
0093 {
0094 return fTargetInnerRadius;
0095 }
0096
0097 inline void DetectorConstruction::SetTargetOuterRadius(const G4double value)
0098 {
0099 fTargetOuterRadius = value;
0100 }
0101
0102 inline G4double DetectorConstruction::GetTargetOuterRadius() const
0103 {
0104 return fTargetOuterRadius;
0105 }
0106
0107
0108
0109 #endif