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