#include "DetectorConstruction.h" #include "G4Box.hh" #include "G4LogicalVolume.hh" #include "G4NistManager.hh" #include "G4PVPlacement.hh" #include "G4SystemOfUnits.hh" DetectorConstruction::DetectorConstruction() {} DetectorConstruction::~DetectorConstruction() {} G4VPhysicalVolume* DetectorConstruction::Construct() { G4NistManager* nist = G4NistManager::Instance(); G4Box* solid_world = new G4Box("world", 638 / 2 * mm, 630 / 2 * mm, 555. / 2 * mm); G4LogicalVolume* logic_world = new G4LogicalVolume(solid_world, nist->FindOrBuildMaterial("G4_WATER"), "world"); G4VPhysicalVolume* physics_world = new G4PVPlacement(0, G4ThreeVector(0, 0, 0), logic_world, "world", 0, false, 0, true); fScoringVolume = logic_world; return physics_world; }