Skip to content
Snippets Groups Projects
Select Git revision
  • 40-implement-sampling-calorimeter
  • master default
  • yezhenyu-btof-20210520
  • 41-detailed-zero-degree-calorimeter-hcal
  • testBranchRobin
  • 73-pion-rejection-yr-benchmark
  • default_visibilities
  • view_update
  • wdconinc-ecal-testing
  • 65-trigger-detector-benchmarks
  • upstream_trigger
  • 14-implement-cb_vtx_endcaps
  • 28-implement-ffi_offm_trk-2
  • 32-implement-ffi_rpot_d2
  • 27-implement-fi_b0_emcal
  • 15-implement-cb_sidiscs
  • 24-implement-ci_hcal
  • fix_ci_GEM
  • 8-implement-cb_ctd
  • Implement_AMEGOX_layers
  • yezhenyu_work_master
  • v0.2.0
  • v0.1.0
23 results

solenoid.xml

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