Project

General

Profile

How to set up lar1ndcode offsite

To get lar1ndcode offsite, first you must get larsoft offsite. Use the official pullProducts scripts whenever possible!

Go to http://scisoft.fnal.gov/scisoft/bundles/larsoft/ to see the larsoft versions you can get. Choose the one that matches the lar1ndcode version you want to use.

The html pages for each release (http://scisoft.fnal.gov/scisoft/bundles/larsoft/v04_20_00/larsoft-v04_20_00.html, for example) give instructions for how to download. Avoid building from scratch if you can!

Once larsoft is installed, the best way to get lar1ndcode is to set up a larsoft development directory and do an "mrb g lar1ndcode" inside of the srcs area.

We will work on lar1ndcode incorporation to scisoft as it becomes necessary.

For questions on this, contact the software release manager ()

-- this is an example session on an offsite machine on how to setup a set of code with version v03_08_02
-- I have seen a small problem with this not findin -lFilters. Send me an email if you see this problem. Andrzej

$  mkdir larsoft_v03_08_02
$  source /cvmfs/fermilab.opensciencegrid.org/products/larsoft/setup
$  setup larsoft v03_08_02 -q e6:prof
$  export MRB_PROJECT="larsoft" 
$  cd larsoft_v03_08_02/
$  setup mrb
$  mrb newDev
$  source localProducts_larsoft_v03_08_02_e6_prof/setup 
$  cd srcs/
$  mrb g -t v03_08_02 lar1ndcode   // this should work. Otherwise do git checkout below:
$  cd lar1ndcode/      
$  git branch -a         //optional: check you are on the correct branch
$  git checkout tags/v03_08_02  //optional: if -t didn't work above.
$  git branch -a
$  mrb g -t LARSOFT_SUITE_v03_08_02 larsim
$  cd larsim
$  git branch -a   //optional: check you are on the correct branch
$  cd $MRB_BUILDDIR 
$  mrbsetenv
$  mrb i -j8

-- this is an example session on an offsite machine on how to setup a set of code with version v04_24_00
-- this is a work in progress, does not work yet

$  mkdir larsoft_v04_24_00
$  source /cvmfs/fermilab.opensciencegrid.org/products/larsoft/setup
$  setup larsoft v04_24_00 -q e7:prof
$  export MRB_PROJECT="larsoft" 
$  cd larsoft_v04_24_00/
$  setup mrb
$  mrb newDev
$  source localProducts_larsoft_v04_24_00_e7_prof/setup 
$  cd srcs/
$  mrb g -t v04_24_00 lar1ndcode   // this should work. Otherwise do git checkout below:
$  cd lar1ndcode/      
$  git branch -a         //optional: check you are on the correct branch
$  git checkout tags/v04_24_00  //optional: if -t didn't work above.
$  git branch -a
$  mrb g -t LARSOFT_SUITE_v04_24_00 larsim
$  cd larsim
$  git branch -a   //optional: check you are on the correct branch
$  cd $MRB_BUILDDIR 
$  mrbsetenv
$  mrb i -j8