build and setup LArLite - twongjirad/LArLiteSoftCookBook GitHub Wiki

Luckily, Kazu, has tried to make this as simple as possible.

These instructions are for the GPVM.

LArLite essentially only needs ROOT. On the GPVM you can setup a version of ROOT using UPS. setup root [version of root] [flavor of version].

However, on the GPVMs, our typical goal is to extract LArSoft data products into larlite, so that we may abscond with them to our laptops and apply to them our various manipulations/tortures. So it makes sense first to setup a uboone code environment which which we will be using larlite -- to keep the version of ROOT compatible.

So...

Building

  1. setup a uboonecode environment

  2. go to some directory you want to put the larlite repository. typically /uboone/app/users/[your-username].

  3. clone the repository

     git clone https://github.com/larlight/larlite.git
    
  4. go into the larlite directory

     cd larlite
    
  5. configure larlite

     source config/setup.sh
    
  6. build (optional with 4 cores using the -j4 argument)

     make -j4
    

Setup existing larlite build

  1. restore your uboonecode environment

  2. go to your larlite folder

  3. setup larlite (i.e. put folders containing binaries and libraries into your PATH and LD_LIBRARY_PATH; setup LARLITE environment variables)

    source config/setup.sh