SRC-CT Simulation

From GlueXWiki
Revision as of 10:48, 22 October 2021 by Jrpybus (Talk | contribs) (Created page with "== GCF Generator == === Repository: === [https://github.com/JacksonPybus/GCF_Generator_Suite/ https://github.com/JacksonPybus/GCF_Generator_Suite/] This is currently a pri...")

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

GCF Generator

Repository:

https://github.com/JacksonPybus/GCF_Generator_Suite/

This is currently a private repository. If you do not have access, contact Jackson Pybus (jrpybus@mit.edu) and request to be added as a collaborator

Installation

Clone the repository via git:

git clone https://github.com/JacksonPybus/GCF_Generator_Suite/

Navigate to a build directory of your choice (e.g. GCF_Generator Suite/build). Source and make the repository:

ccmake [path to]/GCF_Generator/src
make

Usage

Navigate to build/programs/genPhoto. The generator executable can be run as follows:

./genPhoto [Z] [N] [outputFile.root] [# of prescribed events]

The output file will be a ROOT file with a tree of particle momentum, particle ID codes in PDG format, and event weights in units of nanobarns. Note that to determine the absolute cross section, it is necessary to divide by the prescribed number of events, rather than the written number of events.

Hall D software requires particle information to be provided in "HDDM" format to be used in propagation and reconstruction; these files must be converted to a compatible ASCII format by the use of the "resampler" program described in the following section.