LAD Software Setup
From HallCWiki
Setting up HCANA and LADlib, lad_replay Instructions
Git repos
- Setup a github.com account
- Fork a git repo from https://github.com/JeffersonLab/hcana
- Fork a git repo from https://github.com/JeffersonLab/LADlib
- Fork a git repo from https://github.com/JeffersonLab/lad_replay
Starting on the cdaqll machine
- login into cdaql1 through the gateway
- if you want to use the standard replay type "go_analysis_lad"
- 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>
- 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