HOWTO use hdgeant4 as a beam Monte Carlo generator

From GlueXWiki
Revision as of 21:12, 21 May 2021 by Jonesrt (Talk | contribs) (GENBEAM 'precol')

Jump to: navigation, search

Internal beam generator in hdgeant

In HOWTO to generate electromagnetic background the use of the BEAM card in control.in to activate the built-in coherent photon beam generator was described. One use case for this internal beam generator is to model beam-related scattering background that overlays the signals from hadronic reactions produced by the beam interacting in the GlueX target. Now that we have large samples of random and PS triggers to provide a more accurate representation of these backgrounds, that functionality is no longer widely used for physics simulations. However, there are other use cases for the built-in coherent beam generator that remain relevant, including the following.

  1. simulation of the PS acceptance
  2. simulation of the beam transverse intensity and polarization profile
  3. simulation of the TPOL trigger, acceptance, and analyzing power
  4. simulation of Compton and Bethe Heitler reactions in the GlueX target
  5. any other process whose acceptance might be sensitive to the transverse beam position and momentum profile

In order to support the full range of possible applications listed above, I decided to introduce a new feature to control.in, in addition to the BEAM card. This new feature is enabled by the GENBEAM card. When the GENBEAM feature is active, hdgeant switches from functioning primarily as a particle track simulator that follows particles and induces interactions as they traverse the setup geometry to a Monte Carlo generator that generates output records consisting not of detector hits, but either a single beam particle or an interaction vertex with final state positions and momenta to be simulated later. In this way, GENBEAM transforms hdgeant from a simulation to an event generator, with the one proviso that the results of the generator are dependent in a significant way on the beamline geometry and the specific beam properties from the conditions database for the run number specified in the control.in file.

GENBEAM 'precol'

This is the simplest GENBEAM option. There are no detector hits in the output hddm file. The only content in the output events is the <reaction> tag, as illustrated in the example below.

this is code

Monte Carlo beam generation in hdgeant4