For each experiment (DUNE, MicroBooNE, SBND, LArIAT...), you need to build the experiment-specific code. Below is an example of how to set up the code for SBND. A very similar workflow can be expected for other experiments code, but different packages and versions are required.
You will now see a directory called srcs (sources - where the code is kept). Move to this directory and check out the code packages you want
mrb g lar1ndcode
(lar1ndcode is experiment-specific - for other experiments, consult the table...)
"mrb g" checks out the development version of the code you are requesting. If you want to download other larsoft packages (like larsim, larreco, etc) it is prudent to add a -t LARSOFT_SUITE_v03_08_02 to your mrb g command, because the development version of lar1ndcode currently builds against that set of packages.
Build your relase and tell larsoft you use your locally built libraries:
mrbsetenv (meaning mrb set environment)
mrb i -j4 (i - install, j4 - use 4 cpus in parallel)
mrbslp (meaning mrb set library path I think?)
LArSoft has a single executable "lar". After following the steps above, try typing lar to check if it's working
To use the other features of LArSoft, you require a "FHiCL" file (something.fcl)
For more information, it is best to refer to the LArSoft redmine wiki
Package names for different experiments
SBND (formerly LAr1ND)
DUNE (formerly LBNE or LBNF)
How to submit NorthGrid jobs from Manchester Linux machines
For complex and intensive computing tasks, it is best to not run things locally on a single machine. Manchester hosts part of the open science computing grid, where computing jobs can be run. It is also possible to use the Fermigrid for Fermilab-based computing. Instructions for this are here.
The first step in running jobs on NorthGrid, is to apply for a grid certificate. Follow the steps indicated in the link [basically what you will do is to “Apply for an e-Science Certificate” and “Join northgrid Virtual Organization”]: http://www.hep.manchester.ac.uk/local/computing/northgrid-wms-grid.html
Once your VO (virtual organisation) registration is complete, you can submit jobs as follows:
Log in to a Manchester Linux machine, and run the following command:
voms-proxy-init -voms vo.northgrid.ac.uk
Enter GRID pass phrase for this identity: (don't copy this line, but enter your passphrase!)
Add --valid 24:00 to the previous command if you need your proxy to be valid for 24 hours instead of the default 12 hours.
You're now set up with a valid grid proxy and you can submit jobs to the grid!
Create a new directory to work in - submitting grid jobs requires some scripts. I've called it "gridJob" - pick something useful.
The following will create a couple of example scripts that can be used to run a simple test job