Project

General

Profile

Setting up the Offline Software (CVMFS Version)

Creating a new lariatsoft working directory

To create a new lariatsoft working directory, first make a new directory and go into it. Then run:

source /cvmfs/lariat.opensciencegrid.org/setup_lariat.sh
setup ninja v1_6_0b
version=v06_15_00
qual=e10:debug
setup larsoft $version -q $qual
mrb newDev
source localProducts*/setup
cd srcs
mrb g -t $version lariatsoft
mrbsetenv
nice mrb i --generator ninja -j8
mrbsetenv
setup lariatsoft $version -q $qual
setup lariatsoft $version -q $qual

Setting up on a new login

Whenever you login again, go to the working directory you created earlier and then run (you could put this in a script in your directory that you can source):

source /cvmfs/lariat.opensciencegrid.org/setup_lariat.sh
setup ninja v1_6_0b
version=v06_15_00
qual=e10:debug
setup larsoft $version -q $qual
source localProducts*/setup
mrbsetenv
setup lariatsoft $version -q $qual
setup lariatsoft $version -q $qual

Converting from a directory that uses /grid/fermiapp

Move your old directory to a backup location, e.g. mv mylariatdir mylariatdir.bak

Next, create a new directory, e.g. mylariatdir, and cd into it. Then run:

source /cvmfs/lariat.opensciencegrid.org/setup_lariat.sh
setup ninja v1_6_0b
version=v06_15_00
qual=e10:debug
setup larsoft $version -q $qual
mrb newDev
source localProducts*/setup
cd srcs

Now, copy the directories in the srcs directory of your old working area to the srcs directory of your new one (try not to copy the CMakeLists.txt that makes it mad). Then run:

mrb uc
mrbsetenv
nice mrb i --generator ninja -j8
mrbsetenv
setup lariatsoft $version -q $qual
setup lariatsoft $version -q $qual

and you should be ready to go. See Setting_up_the_Offline_Software_CVMFS for how to setup your new area on a fresh login.

Extra things to do to make the OSG work

As of 2017-04-18, you need to do these extra things to make your jobs run on the OSG:

Go to your directory's srcs dir and run:

mrb g -t feature/jhugon_CVMFSWorks lariatutil
cd lariatutil
git checkout $version ups/product_deps
cd ..
mrb g -t develop larbatch
cd larbatch
git checkout LARSOFT_SUITE_$version ups/product_deps
cd ..
nice mrb i --generator ninja -j8

The develop version of lariatutil and larbatch currently fix some things to make the OSG work.

OSG Grid Tips

Check out LArIAT DocDB 2265 for tips on getting your jobs running faster.

If you are trying to stage your dataset to disk. You might get a permissions error when you run:

samweb prestage-dataset --defname=<dataset>

You may have to run kx509 to get the proper grid proxy going to make it work.