File indexing completed on 2026-04-25 07:41:20
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
0041
0042
0043 #ifndef DetectorConstruction_h
0044 #define DetectorConstruction_h 1
0045
0046 #include "G4Material.hh"
0047 #include "G4ThreeVector.hh"
0048 #include "G4VPhysicalVolume.hh"
0049 #include "G4VUserDetectorConstruction.hh"
0050 #include "globals.hh"
0051
0052 class G4Tubs;
0053 class G4LogicalVolume;
0054 class G4UniformMagField;
0055 class DetectorMessenger;
0056 class G4Region;
0057 class G4ProductionCuts;
0058
0059
0060
0061 class DetectorConstruction : public G4VUserDetectorConstruction
0062 {
0063 public:
0064 DetectorConstruction();
0065 virtual ~DetectorConstruction();
0066
0067 virtual G4VPhysicalVolume* Construct();
0068
0069 void SetEcalMaterial(const G4String&);
0070 void SetAbsMaterial(const G4String&);
0071 void SetEcalLength(G4double val);
0072 void SetEcalWidth(G4double val);
0073 void SetVertexLength(G4double val);
0074 void SetPadLength(G4double val);
0075 void SetPadWidth(G4double val);
0076 void SetAbsLength(G4double val);
0077
0078 void UpdateGeometry();
0079
0080 inline G4double GetWorldSizeZ() { return fWorldZ; }
0081
0082 private:
0083 void DefineMaterials();
0084 G4VPhysicalVolume* ConstructVolumes();
0085
0086 DetectorConstruction& operator=(const DetectorConstruction& right);
0087 DetectorConstruction(const DetectorConstruction&);
0088
0089 G4double fEcalLength;
0090 G4double fEcalWidth;
0091 G4double fVertexLength;
0092 G4double fPadLength;
0093 G4double fPadWidth;
0094 G4double fAbsLength;
0095 G4double fWorldZ;
0096
0097 G4Material* fCalMaterial;
0098 G4Material* fVertMaterial;
0099 G4Material* fAbsMaterial;
0100 G4Material* fWorldMaterial;
0101 G4Material* fYorkMaterial;
0102
0103 G4LogicalVolume* fLogicWorld;
0104 G4LogicalVolume* fLogicCal;
0105 G4LogicalVolume* fLogicA1;
0106 G4LogicalVolume* fLogicA2;
0107 G4LogicalVolume* fLogicA3;
0108 G4LogicalVolume* fLogicA4;
0109
0110 G4Region* fVertexRegion;
0111 G4Region* fMuonRegion;
0112
0113 G4ProductionCuts* fVertexDetectorCuts;
0114 G4ProductionCuts* fMuonDetectorCuts;
0115
0116 DetectorMessenger* fDetectorMessenger;
0117 };
0118
0119
0120
0121 #endif