Files
minicalosim/bind/example.ipynb
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

73 lines
1.5 KiB
Plaintext

{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from G4Calo import GeometryDescriptor, run_batch, display_event\n",
"\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(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)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"df = run_batch(gd, 1000, 'gamma', 1)\n",
"df"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"display_event(gd,\"gamma\", 2)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"df"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "caloML",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}