Increase calorimeter size by 4x in every dimension

Scales the default transverse width (xywidth 50->200 cm) and every
layer thickness across the example/production geometries (run_pbwo4,
example.py/ipynb, run_sampling configs, export_xsec) by the same
factor, so the calo grows uniformly in x, y, and z.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-13 15:30:09 +02:00
parent b5c8f69bfa
commit d04706582f
7 changed files with 24 additions and 24 deletions
+7 -7
View File
@@ -8,14 +8,14 @@
"source": [
"from G4Calo import GeometryDescriptor, run_batch, display_event\n",
"\n",
"gd = GeometryDescriptor() #the width of the calorimeter is 50 cm times 50 cm (also steerable, but I'd leave it)\n",
"gd = GeometryDescriptor() #the width of the calorimeter is 200 cm times 200 cm (also steerable, but I'd leave it)\n",
"\n",
"gd.addLayer(4,\"G4_Pb\",False) \n",
"gd.addLayer(3,\"G4_POLYSTYRENE\",True, 7)\n",
"gd.addLayer(4,\"G4_Pb\",False) \n",
"gd.addLayer(3,\"G4_POLYSTYRENE\",True, 7)\n",
"gd.addLayer(4,\"G4_Pb\",False)\n",
"gd.addLayer(3,\"G4_POLYSTYRENE\",True, 7)"
"gd.addLayer(16,\"G4_Pb\",False) \n",
"gd.addLayer(12,\"G4_POLYSTYRENE\",True, 7)\n",
"gd.addLayer(16,\"G4_Pb\",False) \n",
"gd.addLayer(12,\"G4_POLYSTYRENE\",True, 7)\n",
"gd.addLayer(16,\"G4_Pb\",False)\n",
"gd.addLayer(12,\"G4_POLYSTYRENE\",True, 7)"
]
},
{
+4 -4
View File
@@ -7,8 +7,8 @@ if __name__ == '__main__':
gd = GeometryDescriptor()
for _ in range(25):
gd.addLayer(0.5, "G4_Pb", False)
gd.addLayer(1.,"G4_POLYSTYRENE",True,1)
gd.addLayer(2.0, "G4_Pb", False)
gd.addLayer(4.,"G4_POLYSTYRENE",True,1)
df = run_batch(gd, 100, 'gamma', 1)
@@ -16,8 +16,8 @@ if __name__ == '__main__':
gd = GeometryDescriptor()
for _ in range(30):
gd.addLayer(0.5, "G4_Pb", False)
gd.addLayer(1.,"G4_POLYSTYRENE",True,1)
gd.addLayer(2.0, "G4_Pb", False)
gd.addLayer(4.,"G4_POLYSTYRENE",True,1)
df = run_batch(gd,10, 'gamma', 40)
display_event(gd,"gamma", 2, outfile='event.html')
+1 -1
View File
@@ -5,7 +5,7 @@ from minicalo import GeometryDescriptor
output_dir = os.path.dirname(os.path.abspath(__file__))
gd = GeometryDescriptor()
gd.addLayer(20.0, "G4_PbWO4", True, 10, 10)
gd.addLayer(80.0, "G4_PbWO4", True, 10, 10)
hits, steps = run_batch(gd, 10, "e-", 1.0, return_steps=True)