Skip to content

uboonecode larlite setup

David Caratelli edited this page May 16, 2017 · 5 revisions

Setting up LArSoft's uboonecode repository w/ the LArLite data-scanner

You will need access to the uboonegpvm machines in order to follow these instructions. If you are setting up the repository for the first time, you should log on to uboonebuild01.fnal.gov in order to build your code faster. For daily use you should use uboonegpvm0X.fnal.gov [x = 1,..,7].

Start following the instructions below to setup / build your code:

source /grid/fermiapp/products/uboone/setup_uboone.sh

Then, setup the uboonecode repository version you are interested in. To find the available tags, type:

ups list -aK+ uboonecode

In this tutorial we will use v06_26_02

setup uboonecode v06_26_02 -q e10:prof

Next, create a new directory in your /app/ area where you want your local repository to live and start setting up the repository:

cd /uboone/app/users/$USER
mkdir v06_26_02
cd v06_26_02
mrb  newDev
source localProducts_larsoft_v06_26_02_e10_prof/setup

Now we will check out the uboonecode repository. This may take a while:

cd $MRB_SOURCE/
mrb g uboonecode

And we want to use the specific uboonecode version we are setting up:

cd uboonecode
git checkout v06_26_02

Next, we need to make two changes to the repository's code in order to use it to convert LArSoft formatted files into LArLite readable data. Step 1: open the file $MRB_SOURCE/uboonecode/uboone/CMakeLists.txt and uncomment the line add_subdirectory(LiteMaker). Step 2: We need to setup the larlite ups package appropriate for this version of uboonecode. Find the larlite ups version closest to (but smaller than) the version number of uboonecode you have setup:

ups list -aK+ larlite

In our case this is:

"larlite" "v06_26_02" "Linux64bit+2.6-2.12" "e10:prof" "current"  

open the file $MRB_SRCS/uboonecode/ups/product_deps and edit it to include the dependency on the larlite ups product. We will need to make two additions to this page. To guide you in doing so you can find an example file here. Make sure you don't just copy paste and use the appropriate version required by your local setup. Under the section titled: "Add the dependent product and version" include the line:

larlite    v06_26_02

Under the section titled: "We now define allowed qualifiers and the corresponding qualifiers for the dependencies. Make a table by adding columns before notes". Add a column, after the last product, but before the "notes" column. The entries, row-by-row, should be: larlite, e10:prof, e10:prof, e10:prof, e10:prof. Note that the qualifier "e10:prof" should match the exact specifications of the specific larlite ups product version you are setting up.

Now we are ready to build the code:

cd $MRB_BUILDDIR
mrbsetenv
mrb i -j32 [if on uboonebuild01. Otherwise use -j4]
mrbslp

Clone this wiki locally