Warning, file /geant4/examples/advanced/dna/cellularPhantom/include/DetectorConstruction.hh was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
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 "CellParameterisation.hh"
0047
0048 #include "G4VUserDetectorConstruction.hh"
0049 #include "G4Box.hh"
0050 #include "G4Region.hh"
0051 #include "G4PVPlacement.hh"
0052 #include "G4PVParameterised.hh"
0053
0054
0055
0056 class DetectorMessenger;
0057
0058
0059
0060 class DetectorConstruction : public G4VUserDetectorConstruction {
0061 public:
0062
0063 DetectorConstruction();
0064 ~DetectorConstruction() override = default;
0065
0066 G4VPhysicalVolume *Construct() override;
0067
0068 inline auto *GetLogicalMedium() const { return fLogicMedium; };
0069
0070 void SetTargetMaterial(const G4String&);
0071
0072 void SetRedDensity(const G4double&);
0073 void SetGreenDensity(const G4double&);
0074 void SetBlueDensity(const G4double&);
0075
0076 void SetShiftX(const G4double&);
0077 void SetShiftY(const G4double&);
0078 void SetShiftZ(const G4double&);
0079
0080 void SetMediumSizeXY(const G4double&);
0081 void SetMediumSizeZ(const G4double&);
0082
0083 void SetWorldSizeXY(const G4double&);
0084 void SetWorldSizeZ(const G4double&);
0085
0086 void SetPhantomFileName(const G4String&);
0087
0088 private:
0089
0090 void DefineMaterials();
0091
0092 G4VPhysicalVolume *ConstructLine();
0093
0094 G4double fDensityRed = 1.0;
0095 G4double fDensityGreen = 1.0;
0096 G4double fDensityBlue = 1.0;
0097
0098 G4double fShiftX = 0.*um;
0099 G4double fShiftY = 0.*um;
0100 G4double fShiftZ = 0.*um;
0101
0102 G4double fWorldSizeXY = 0.;
0103 G4double fWorldSizeZ = 0.;
0104
0105 G4double fMediumSizeXY = 0.;
0106 G4double fMediumSizeZ = 0.;
0107
0108 G4Material *fDefaultMaterial = nullptr;
0109 G4Material *fMediumMaterial = nullptr;
0110 G4Material *fRedMaterial = nullptr;
0111 G4Material *fGreenMaterial = nullptr;
0112 G4Material *fBlueMaterial = nullptr;
0113 G4Material *fPhantomMaterial = nullptr;
0114
0115 G4VPhysicalVolume *fPhysiWorld = nullptr;
0116 G4LogicalVolume *fLogicWorld = nullptr;
0117 G4Box *fSolidWorld = nullptr;
0118
0119 G4VPhysicalVolume *fPhysiMedium = nullptr;
0120 G4LogicalVolume *fLogicMedium = nullptr;
0121 G4Box *fSolidMedium = nullptr;
0122
0123 G4VPhysicalVolume *fPhysiPhantom = nullptr;
0124 G4LogicalVolume *fLogicPhantom = nullptr;
0125 G4Box *fSolidPhantom = nullptr;
0126 CellParameterisation *fPhantomParam = nullptr;
0127
0128 DetectorMessenger* fDetectorMessenger = nullptr;
0129
0130 G4String fPhantomFileName = "";
0131 G4Region* fPhantomRegion = nullptr;
0132 };
0133
0134 #endif