d04706582f
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>
18 lines
552 B
Python
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}")
|