Skip to content
Snippets Groups Projects
Select Git revision
  • 957fb0df4938f392969b10ad3b53ab646b44f9c0
  • master default protected
2 results

README.md

Blame
  • template.in 357 B
    from DDSim.DD4hepSimulation import DD4hepSimulation
    from g4units import mm, GeV, MeV, degree
    SIM = DD4hepSimulation()
    SIM.gun.energy = %ENERGY%
    SIM.gun.particle = "%PARTICLE%"
    SIM.gun.position = (0.0, 0.0, 0.0)
    SIM.gun.direction = (0.0, 0.0, 1.0)
    SIM.gun.distribution = "cos(theta)"
    SIM.gun.thetaMin = %MINTHETA%*degree
    SIM.gun.thetaMax = %MAXTHETA%*degree