7a62a46fe6
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>
15 lines
356 B
Python
15 lines
356 B
Python
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}")
|