Difference between revisions of "LAD Software Setup"

From HallCWiki
Jump to navigationJump to search
 
Line 1: Line 1:
== Setting up HCANA and LADlib, lad_replay Instructions ==
+
__TOC__
 +
 
 +
= LAD software instructions =
 +
== General information ==
 +
=== Modules available on cdaql machines ===
 +
Modulefiles are at /capps/modulefiles
 +
* root (default 6.24.08)
 +
* Podd analyzer
 +
* epics
 +
* hcana
 +
* panguin
 +
 
 +
To check the modules that are already loaded:
 +
> module list
 +
 
 +
To load a module or use a different version:
 +
> module purge
 +
> module use /capps/modulefiles
 +
> module load <module name/version>
 +
 
 
=== Git repos  ===
 
=== Git repos  ===
 
* Setup a github.com account
 
* Setup a github.com account
Line 5: Line 24:
 
* Fork a git repo from https://github.com/JeffersonLab/LADlib
 
* Fork a git repo from https://github.com/JeffersonLab/LADlib
 
* Fork a git repo from https://github.com/JeffersonLab/lad_replay
 
* Fork a git repo from https://github.com/JeffersonLab/lad_replay
===Starting on the cdaqll machine===
+
 
* login into cdaql1 through the gateway
+
== For Shift crew ==
* if you want to use the standard replay type "go_analysis_lad"
+
When login to cdaq machines, the latest tagged version of hcana is loaded by default.
 +
 
 +
Login into cdaql1 through the gateway
 +
> ssh cdaq@cdaql1
 +
To use the standard replay setup for LAD
 +
> go_analysis_lad
 +
 
 +
== For users/developers ==
 +
==== Work space on cdaq machines ====
 
* if you do not have a directory and want to do independent analysis
 
* if you do not have a directory and want to do independent analysis
 
* Create a directory /home/cdaq/lad-2024/users/<username>
 
* Create a directory /home/cdaq/lad-2024/users/<username>
 
* cd /home/cdaq/lad-2024/users/<username>
 
* cd /home/cdaq/lad-2024/users/<username>
 +
 +
==== Setting up personal software directories ====
 
* Setup cmake and ROOT '''WILL CHANGE ON alma9'''
 
* Setup cmake and ROOT '''WILL CHANGE ON alma9'''
 
** module use /apps/modulefiles/
 
** module use /apps/modulefiles/

Latest revision as of 09:58, 7 February 2025

LAD software instructions

General information

Modules available on cdaql machines

Modulefiles are at /capps/modulefiles

  • root (default 6.24.08)
  • Podd analyzer
  • epics
  • hcana
  • panguin

To check the modules that are already loaded:

> module list

To load a module or use a different version:

> module purge
> module use /capps/modulefiles
> module load <module name/version>

Git repos

For Shift crew

When login to cdaq machines, the latest tagged version of hcana is loaded by default.

Login into cdaql1 through the gateway

> ssh cdaq@cdaql1

To use the standard replay setup for LAD

> go_analysis_lad

For users/developers

Work space on cdaq machines

  • if you do not have a directory and want to do independent analysis
  • Create a directory /home/cdaq/lad-2024/users/<username>
  • cd /home/cdaq/lad-2024/users/<username>

Setting up personal software directories

  • Setup cmake and ROOT WILL CHANGE ON alma9
    • module use /apps/modulefiles/
    • module load cmake
    • source /apps/root/PRO/bin/thisroot.csh
  • Setup hcana
    • git clone https://github.com/GithubUserName/hcana
    • cd hcana
    • git remote add --track develop upstream https://github.com/JeffersonLab/hcana
    • git submodule init
    • git submodule update
    • cd ..
    • cmake -B hcana-build -S hcana -DCMAKE_INSTALL_PREFIX=hcana-install
    • cmake --build hcana-build -j12
    • cmake --install hcana-build/
    • setenv PATH /home/cdaq/Dirname/nps-2024/hcana-install/bin:$PATH
    • If one needs to recompile after making changes in hcana/src
      • cd hcana-build
      • make install
  • Setup LADlib
    • git clone https://github.com/GithubUserName/LADlib
    • cd LADlib
    • git remote add --track main upstream https://github.com/JeffersonLab/LADlib
    • cd ..
    • cmake -B LADlib-build -S LADlib -DCMAKE_INSTALL_PREFIX=hcana-install
    • cmake --build LADlib-build/
    • cmake --install LADlib-build/
    • If one needs to recompile after making changes in LADlib/src
      • cd LADlib-build
      • make install
    • setenv LD_LIBRARY_PATH /home/cdaq/lad-2024/software/hcana-install/lib64:$LD_LIBRARY_PATH
  • Setup lad_replay
    • git clone https://github.com/GithubUserName/lad_replay
    • cd lad_replay
    • git remote add --track main upstream https://github.com/JeffersonLab/lad_replay
    • mkdir /net/cdaq/cdaql3data/cdaq/"name"/ROOTfiles
    • ln -sf /net/cdaq/cdaql3data/cdaq/"name"/ROOTfiles ROOTfiles
    • mkdir /net/cdaq/cdaql3data/cdaq/"name"/REPORT_OUTPUT
    • ln -sf /net/cdaq/cdaql1data/cdaq/"name"/REPORT_OUTPUT
    • ln -sf /cache/mss/hallc/c-lad/raw cache
    • ln -sf /net/cdaq/cdaql4data/coda/data/raw raw
    • If not setup already and will have to done for every new login
      • setenv PATH /home/cdaq/Dirname/nps-2023/hcana-install/bin:$PATH
      • setenv LD_LIBRARY_PATH /home/cdaq/Dirname/nps-2023/hcana-install/lib64:$LD_LIBRARY_PATH
      • source /apps/root/PRO/bin/thisroot.csh
    • Replay scripts are under the SCRIPTS