HOWTO run a single-particle-gun simulation

From GlueXWiki
Revision as of 21:06, 25 May 2020 by Zihlmann (Talk | contribs) (Created page with "== Running a single particle Gun == In this example we are going to use hdgeant4 and we are simulating a single particle eta to be generated. The eta is chosen to also show h...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Running a single particle Gun

In this example we are going to use hdgeant4 and we are simulating a single particle eta to be generated. The eta is chosen to also show how to force geant to let eta decay only into one final state rather than all possible ones. To achieve all this we require two files:

  1. "control.in", to define the kinematics and with the particle type. An example of this files looks as follows:
    TRIG 1000
    KINE 117 5.97 0.01 0. 0.0 0.05 360.
    SCAP 0. 0. 1.
    TGTWIDTH 0.5 .5
    HADR 1
    OUTFILE 'etaRAND.hddm'
    RNDM 2057859
    RUNG 30402
  2. "r.mac"