add run_pbwo4.py and include examples dir in both Docker images

run_pbwo4.py simulates 10 events in a single 20cm G4_PbWO4 layer
(10x10 sensor grid, 1 GeV e-) and saves results as a pickle next to
the script. Both images now expose /examples containing all bind/ files.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-08 13:59:01 +02:00
parent 03b615cd3a
commit 7a62a46fe6
2 changed files with 16 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import os
from G4Calo import run_batch
from minicalo import GeometryDescriptor
output_dir = os.path.dirname(os.path.abspath(__file__))
gd = GeometryDescriptor()
gd.addLayer(20.0, "G4_PbWO4", True, 10, 10)
df = run_batch(gd, 10, "e-", 1.0)
out = os.path.join(output_dir, "pbwo4_10events.pkl")
df.to_pickle(out)
print(f"Saved {len(df)} events to {out}")