towards vis

This commit is contained in:
Jan Kieseler
2023-09-11 08:33:19 +02:00
parent b456e07018
commit 37d5b1eb3e
7 changed files with 212 additions and 109 deletions
+7 -7
View File
@@ -1,11 +1,11 @@
from minicalo import ConstructionWrapper, SystemBuilder
from G4Calo import ConstructionWrapper, G4System
cw = ConstructionWrapper()
cw.addLayer(10,"G4_Si",True)
cw.addLayer(1,"G4_Pb",False)
cw.addLayer(10,"G4_Si",False)
cw = ConstructionWrapper()#the width of the calorimeter is 50 cm times 50 cm (also steerable, but I'd leave it)
cw.addLayer(10,"G4_Si",True) #10 cm of Silicon, active
cw.addLayer(1,"G4_Pb",False) #1 cm of Lead, passive
cw.addLayer(10,"G4_Si",True, 3) #10 cm of Silicon, active, 3x3 segmentation
sb = SystemBuilder()
sb = G4System()
sb.init(cw)
sb.run_batch(100, "gamma", 1000, 5000)
sb.run_batch(100, "gamma", 1000, 5000) #100 events, photons, 1000 MeV to 5000 MeV