Project

General

Profile

How Setup You Directory and launch your first job

Setting up your directory for the first time.

In order to run you first LArSoft lar1nd job, you will need to execute the following steps. Some explanation is included, but is not yet at the level to be a definitive guide.

setup the general lar1nd environment:

source /grid/fermiapp/products/lar1nd/setup_lar1nd.sh

Setup LArSoft.
There are different versions of LArSoft that you can set up against, here is a list of releases:
List of lar1ndcode releases

Currently lar1ndcode develop is built against v04_24_00. The "debug" or "prof" qualifiers refer to running with a debug or optimized build, respectively.
Personally, I (Wes) always run with the optimized build because it's WAY faster, but the debug build is very useful if you need to run in the debugger.

(the two versions you should think of running are: v04_24_00, with qualifier e7, or if you want to run optical sim code, v03_08_02, with qualifier e6. Whatever your choice, substitute it for wherever you see version and qual below )

Once you know your version number and qualifiers, setup larsoft like this (prof, debug is -q debug:e7):

setup larsoft *version* -q *qual*:prof

go to your user directory in /lar1nd/app/ - don't have one? feel free to create it.
and create a directory for your new larsoft release.

cd /lar1nd/app/users/<your_user_dir>/
mkdir larsoft_*version*
cd larsoft_*version*    

create a new larsoft release.

mrb newDev

tell mrb that you will be running from this directory:

source localProducts_larsoft_*version*_*qual*_prof/setup 

go to the srcs directory and pull down the lar1ndcode directory.

cd srcs
mrb g lar1ndcode

note: mrb g gets the development version of any repository, regardless of which version of larsoft you have setup.
This can cause nasty version dependency problems, so if you want to download other larsoft packages (like larsim, larreco etc... )
it is prudent to add a -t LARSOFT_SUITE_*version* to your mrb g command.
because the development version of lar1ndcode currently builds against that set of packages.

Build your release and then tell larsoft to use your locally built libraries:

cd $MRB_BUILDDIR
mrbsetenv
mrb i -j4
cd ../
mrbslp

You are now ready to run your first job. This will generate your first 10 muons:

lar -c prodsingle_lar1nd.fcl -n 10

Running once you have your directory.

setup the general lar1nd environment:

source /grid/fermiapp/products/lar1nd/setup_lar1nd.sh

go to your user directory in /lar1nd/app/

cd /lar1nd/app/users/<your_user_dir>/
cd larsoft_*version*   

tell mrb that you will be running from this directory:

source localProducts_larsoft_*version*_*qual*_prof/setup 
mrbslp

You are now ready to run your job. This will generate your first 10 muons:

lar -c prodsingle_lar1nd.fcl -n 10