NA62 Monte Carlo Simulations
This wiki describes how to set up and distribute the NA62 Monte Carlo simulation code.
Software
Code compilation
- Unpack tarball to NA62MC
- Fix libs path problems in GNUMakefile-s (Generator/ and Beam/)
- Make changes to env.sh: source 'offline' environment; clear XAWLIBS variable
- Rearrange paths (move system paths after NA62-specific paths)
- Type 'make' and be patient
Code distribution
- Create tarballs for geant4, root, X11 and sw (CreateTarballs.sh)
- Run special job (with an SGM Admin role) to wget and unpack these tarballs on sites (InstallSoftware.sh)
- Run test job
Job submission
- Run parameters given in the StandardRun.mac file: run number, number of events, random seed, root output file name
- Job environment parameters are set by sourcing the
na62jobenv.sh
script created by InstallSoftware.sh
- The .mac is modified using
sed
on the worker node to modify paths to LAV matrix files, which are installed in the software area by InstallSoftware.sh
- The actual job script is attached (needs editing and streamlining)
Bulk job submission (job splitting)
- Create N .mac files using the template
- Create one Ganga script including the list of N .mac files
- Run this script via Ganga
Problems encountered
- DPM does not work properly