Facebook
From kingaa, 6 Years ago, written in C++.
Embed
Download Paste or View Raw
Hits: 245
  1. # Macro file for example B4
  2. #
  3. # Can be run in batch, without graphic
  4. # or interactively: Idle> /control/execute run1.mac
  5. #
  6. # Change the default number of workers (in multi-threading mode)
  7. #/run/numberOfWorkers 4
  8. #
  9. # Initialize kernel
  10. /run/initialize
  11. #
  12. # Default kinematics:
  13. # electron 50 MeV in direction (0.,0.,1.)
  14. # 1 event with tracking/verbose
  15. #
  16. /tracking/verbose 1
  17. /run/beamOn 1
  18. #
  19. #
  20. # muon 300 MeV in direction (0.,0.,1.)
  21. # 3 events
  22. #
  23. /gun/particle mu+
  24. /gun/energy 3 MeV
  25. /run/beamOn 3
  26. #
  27. # 20 events
  28. #
  29. /tracking/verbose 0
  30. /run/printProgress 5
  31. /run/beamOn 20
  32. #
  33. # Magnetic field
  34. #
  35. /globalField/setValue 0.2 0 0 tesla
  36. /run/beamOn 3
  37. #
  38. # Activate/inactivate physics processes
  39. #
  40. /process/list
  41. /process/inactivate eBrem
  42. #
  43. /run/beamOn 20
  44. #
  45.