SRC-CT Simulation
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.