File indexing completed on 2025-12-17 09:27:28
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 #ifndef DetectorConstruction_h
0029 # define DetectorConstruction_h 1
0030 #endif
0031
0032 #include "DetectorConstructionMessenger.hh"
0033
0034 #include "G4LogicalVolume.hh"
0035 #include "G4RunManager.hh"
0036 #include "G4VPhysicalVolume.hh"
0037 #include "G4VUserDetectorConstruction.hh"
0038 #include "globals.hh"
0039
0040
0041
0042 class DetectorConstruction : public G4VUserDetectorConstruction
0043 {
0044 public:
0045 DetectorConstruction();
0046 ~DetectorConstruction();
0047
0048 void DefineMaterials();
0049 G4VPhysicalVolume* Construct();
0050
0051 private:
0052 void ConstructSDandField();
0053
0054 private:
0055 DetectorConstructionMessenger* fMessenger;
0056
0057 public:
0058 G4String GetEC() { return fECfileName; }
0059 void SetEC(G4String aString) { fECfileName = aString; }
0060
0061 G4String GetMaterial() { return fMaterialName; }
0062 void SetMaterial(G4String aString) { fMaterialName = aString; }
0063
0064 G4ThreeVector GetSizes() { return fSizes; }
0065 void SetSizes(G4ThreeVector a3vec) { fSizes = a3vec; }
0066
0067 G4ThreeVector GetBR() { return fBR; }
0068 void SetBR(G4ThreeVector a3vec) { fBR = a3vec; }
0069
0070 G4ThreeVector GetAngles() { return fAngles; }
0071 void SetAngles(G4ThreeVector a3vec) { fAngles = a3vec; }
0072
0073 private:
0074 G4String fECfileName;
0075 G4String fECOfileName;
0076 G4String fMaterialName;
0077 G4ThreeVector fSizes;
0078 G4ThreeVector fBR;
0079 G4ThreeVector fAngles;
0080 };