change: world to sphere

This commit is contained in:
liuyihui 2022-05-13 17:52:44 +08:00
parent f555549db2
commit 13acddf7dc
2 changed files with 2 additions and 1 deletions

1
debug.txt Normal file
View File

@ -0,0 +1 @@
22210

View File

@ -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);