SRC-CT Simulation

From GlueXWiki
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.

Hall D Mean-Field Generator

Hall D Software

Installation

GlueX Software Page

https://halldweb.jlab.org/wiki/index.php/GlueX_Offline_Software


Repositories:

  • Reconstruction:
https://github.com/jeffersonlab/halld_recon
  • Simulation:
https://github.com/jeffersonlab/halld_sim
  • Geant Geometry
https://github.com/jeffersonlab/hdds

To install software:

git clone https://github.com/jeffersonlab/halld_recon
[...]

Usage:

Convert ASCII file to the hddm format (Gluex Simulation format)

genr8_2_hddm input_file.txt

will create an output file input_file.hddm

You can copy genr8_2_hddm.cc from the directory below to your libs and recompile

/work/halld2/home/somov/SRC/src_lib/halld_sim/src/programs/Simulation/genr8_2_hddm

(or use the program from

/w/halld-scifs17exp/halld2/home/somov/SRC/src_lib/halld_sim/Linux_CentOS7.7-x86_64-gcc4.8.5/bin/genr8_2_hddm)

Note that the standard genr8_2_hddm program is incompatible with ASCII files in which the beam energy has been preselected event-by-event; this version contains specific changes necessary for such files to be converted.

Process simulated events through Geant

  1. Copy files setenv.csh and control.in from /work/halld2/home/somov/SRC/src_geant to your dir
  2. Update directories in 'setenv.csh'
  3. source setenv.csh
  4. Geant is handled using control.in file. Update parameters (name of INPUT/OUTPUT files, number of events you want to process) in this file.
  5. hdgeant

(OUTPUT_smeared.hddm file will be created after processing events through Geant)

Reconstruct data/pseudodata

  1. Example of the reconstruction code in /work/halld2/home/somov/SRC/src_recon
  2. Copy to your directory, update setenv.csh
  3. source setenv.csh
  4. Compile scons -j16 install
  5. Run, see run file