Warning, file /geant4/examples/advanced/dna/moleculardna/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 #ifndef MOLECULAR_DETECTOR_CONSTRUCTION_HH
0031 #define MOLECULAR_DETECTOR_CONSTRUCTION_HH
0032
0033 #include "G4SystemOfUnits.hh"
0034 #include "G4ThreeVector.hh"
0035 #include "G4VDNAMolecularGeometry.hh"
0036 #include "G4VUserDetectorConstruction.hh"
0037 #include "globals.hh"
0038
0039 #include <map>
0040
0041 class DetectorMessenger;
0042
0043 class DNAGeometry;
0044
0045 class G4LogicalVolume;
0046
0047 class G4VPhysicalVolume;
0048
0049 class G4Material;
0050
0051
0052
0053 class DetectorConstruction : public G4VUserDetectorConstruction
0054 {
0055 public:
0056 DetectorConstruction(G4int vis);
0057
0058 ~DetectorConstruction() override;
0059
0060 G4VPhysicalVolume* Construct() override;
0061
0062 void ConstructSDandField() override {};
0063
0064 void SetWorldSideLength(const G4double& length) { fWorldSideLength = length; }
0065
0066 void SetCellRadius(const G4ThreeVector& length) { fCellRadius = length; }
0067
0068 [[maybe_unused]] auto GetWorld() const { return fWorld; };
0069
0070 auto GetDNAGeometry() const { return fpDNAGeometry; };
0071
0072 protected:
0073 G4VPhysicalVolume* ConstructDetector();
0074
0075 void BuildMaterials();
0076
0077 private:
0078
0079 G4VPhysicalVolume* fWorld = nullptr;
0080 DNAGeometry* fpDNAGeometry;
0081
0082
0083 DetectorMessenger* fpDetectorMessenger;
0084 G4double fWorldSideLength = 6 * um;
0085 G4ThreeVector fCellRadius;
0086
0087
0088 G4Material* fpWorld = nullptr;
0089 G4Material* fpWater = nullptr;
0090 };
0091
0092
0093 #endif