Files
minicalosim/bind/run_pbwo4.py
T
lars d04706582f 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>
2026-07-13 15:30:09 +02:00

18 lines
552 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(80.0, "G4_PbWO4", True, 10, 10)
hits, steps = run_batch(gd, 10, "e-", 1.0, return_steps=True)
hits_out = os.path.join(output_dir, "pbwo4_10events_hits.pkl")
steps_out = os.path.join(output_dir, "pbwo4_10events_steps.pkl")
hits.to_pickle(hits_out)
steps.to_pickle(steps_out)
print(f"Saved {len(hits)} events to {hits_out}")
print(f"Saved {len(steps)} steps to {steps_out}")