From 13acddf7dc0028c25c6473aba606041dc9c007ac Mon Sep 17 00:00:00 2001 From: YiHui Liu Date: Fri, 13 May 2022 17:52:44 +0800 Subject: [PATCH] change: world to sphere --- debug.txt | 1 + src/DetectorConstruction.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 debug.txt diff --git a/debug.txt b/debug.txt new file mode 100644 index 0000000..8824d44 --- /dev/null +++ b/debug.txt @@ -0,0 +1 @@ +22210 diff --git a/src/DetectorConstruction.cpp b/src/DetectorConstruction.cpp index 3c263c4..f662299 100644 --- a/src/DetectorConstruction.cpp +++ b/src/DetectorConstruction.cpp @@ -225,7 +225,7 @@ G4VPhysicalVolume* DetectorConstruction::Construct() { DefineMaterials(); // World - G4Box* solidWorld = new G4Box("World", 5. * m, 5. * m, 15. * m); + G4Sphere* solidWorld = new G4Sphere("World", 0, 15. * m, 0, 360 * deg, 0, 180 * deg); G4LogicalVolume* logicWorld = new G4LogicalVolume(solidWorld, G4Material::GetMaterial("Vacuum"), "World"); G4VPhysicalVolume* physicsWorld = new G4PVPlacement(0, G4ThreeVector(), logicWorld, "World", 0, false, 0, true);