Testing LArSoft at CERN Neutrino Cluster

Setting up and running LArSoft at Neutrino Computing Cluster

Detailed explanations on how to install/use LArSoft can be found in the LArSoft wiki pages:

Setting up your enviroment

For each experiment (DUNE, MicroBooNE, SBND, LArIAT...), you need to build the experiment-specific code. Below is an example of how to set up the code for CERN Neutrino Cluster. A very similar workflow can be expected for other experiments code, but different packages and versions are required.

  • Set up the UPS for dunetpc
    • source /cvmfs/dune.opensciencegrid.org/products/dune/setup_dune.sh

  • Setup the UPS for LArSoft
    • source /cvmfs/larsoft.opensciencegrid.org/products/setup

  • Setup your working space by making a directory
    • mkdir dunetpc
    • cd dunetpc

  • Now set up the basic tools and variables that are needed
    • setup mrb
    • export MRB_PROJECT=larsoft

  • At this point, we need to make a directory for this larsoft release (release version called XX_YY_ZZ here, replace with the version you want)
    • mkdir larsoft_vXX_YY_ZZ
    • cd larsoft_vXX_YY_ZZ

  • Create a new installation of LArSoft (building development area) specifying version and qualifiers
    • mrb newDev -v vXX_YY_ZZ -q e9:prof

  • IMPORTANT the step above generates a setup that you must type (now and whenever you log in):
    • souce localProducts_larsoft_vXX_YY_ZZ_e9_prof/setup

  • You will now see a directory called srcs (sources - where the code is kept). Move to this directory and check out the code packages you want
    • cd srcs/
    • mrb g dunetpc

  • Build your release and tell LArSoft to use your locally built libraries:
    • cd dunetpc/
    • mrbsetenv
    • mrb i -j4
    • cd ..
    • mrbslp

Setting up older versions

  • Set up the UPS for dunetpc
    • source /cvmfs/dune.opensciencegrid.org/products/dune/setup_dune.sh

  • Setup the UPS for LArSoft
    • source /cvmfs/fermilab.opensciencegrid.org/products/larsoft/setups

  • Setup your working space by making a directory
    • mkdir dunetpc
    • cd dunetpc

  • Now set up the basic tools and variables that are needed
    • setup mrb
    • export MRB_PROJECT=larsoft

  • At this point, we need to make a directory for this LArSoft release (release version called XX_YY_ZZ here, replace with the version you want)
    • mkdir larsoft_vXX_YY_ZZ
    • cd larsoft_vXX_YY_ZZ
    • See the release page for a description of the different releases.

  • Create a new installation of LArSoft (building development area) specifying version and qualifiers
    • mrb newDev -v vXX_YY_ZZ -q e9:prof

  • IMPORTANT the step above generates a setup that you must type (now and whenever you log in):
    • souce localProducts_larsoft_vXX_YY_ZZ_e9_prof/setup

  • You will now see a directory called srcs (sources - where the code is kept). Move to this directory and check out the code packages you want
    • cd srcs/
    • mrb g -t vXX_YY_ZZ dunetpc

  • Build your release and tell larsoft to use your locally built libraries:
    • cd dunetpc/
    • mrbsetenv
    • mrb i -j4
    • cd ..
    • mrbslp

Checking available versions

After you have run the two scripts that are reported above, you can run

  • ups list -aK+ dunetpc or
  • ups list -aK+ larsoft

in order to see the available versions of dunetpc or LArSoft

Useful links on LArSoft


Arrow blue up Back to the Neutrino Platform-Computing Main Page

Edit | Attach | Watch | Print version | History: r27 < r26 < r25 < r24 < r23 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r27 - 2018-04-17 - NectarB
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CENF All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback