75 lines
1.5 KiB
Plaintext
75 lines
1.5 KiB
Plaintext
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"from G4Calo import GeometryDescriptor, G4System\n",
|
|
"\n",
|
|
"cw = GeometryDescriptor() #the width of the calorimeter is 50 cm times 50 cm (also steerable, but I'd leave it)\n",
|
|
"\n",
|
|
"cw.addLayer(3,\"G4_Si\",True, 7)\n",
|
|
"cw.addLayer(4,\"G4_Pb\",False) \n",
|
|
"cw.addLayer(3,\"G4_Si\",True, 7)\n",
|
|
"cw.addLayer(4,\"G4_Pb\",False)\n",
|
|
"cw.addLayer(3,\"G4_Si\",True, 7)\n",
|
|
"cw.addLayer(4,\"G4_Pb\",False)\n",
|
|
"\n",
|
|
"G4s = G4System\n",
|
|
"G4s.init(cw)"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"df = G4s.run_batch(10, 'gamma', 1)"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"G4s.displayEvent()"
|
|
]
|
|
},
|
|
{
|
|
"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
|
|
}
|