Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-08-12 08:24:55

0001 from DDSim.DD4hepSimulation import DD4hepSimulation
0002 from g4units import mm, GeV, MeV, degree
0003 
0004 SIM = DD4hepSimulation()
0005 SIM.gun.energy       = 5*GeV
0006 SIM.gun.particle     = "gamma"
0007 SIM.gun.multiplicity = 1
0008 SIM.gun.position     = (0.0, 0.0, 0.0)
0009 SIM.gun.direction    = (0.0, 0.0, 1.0)
0010 SIM.gun.distribution = "cos(theta)"
0011 SIM.gun.thetaMin     = 45*degree
0012 SIM.gun.thetaMax     = 135*degree
0013 
0014 SIM.numberOfEvents = 100