Files
Jan Kieseler d993be76cd simplify it
2024-08-22 14:44:24 +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 50 cm times 50 cm (also steerable, but I'd leave it)\n",
"\n",
"gd.addLayer(4,\"G4_Pb\",False) \n",
"gd.addLayer(3,\"G4_POLYSTYRENE\",True, 7)\n",
"gd.addLayer(4,\"G4_Pb\",False) \n",
"gd.addLayer(3,\"G4_POLYSTYRENE\",True, 7)\n",
"gd.addLayer(4,\"G4_Pb\",False)\n",
"gd.addLayer(3,\"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
}