Difference between revisions of "LAD Software Setup"
From HallCWiki
Jump to navigationJump to search (Created page with "== 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...") |
|||
Line 10: | Line 10: | ||
* 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- | + | * cd /home/cdaq/lad-2024/users/<username> |
* Setup cmake and ROOT '''WILL CHANGE ON alma9''' | * Setup cmake and ROOT '''WILL CHANGE ON alma9''' | ||
** module use /apps/modulefiles/ | ** module use /apps/modulefiles/ | ||
Line 25: | Line 25: | ||
** cmake --build hcana-build -j12 | ** cmake --build hcana-build -j12 | ||
** cmake --install hcana-build/ | ** cmake --install hcana-build/ | ||
− | ** setenv PATH /home/cdaq/Dirname/nps- | + | ** setenv PATH /home/cdaq/Dirname/nps-2024/hcana-install/bin:$PATH |
** If one needs to recompile after making changes in hcana/src | ** If one needs to recompile after making changes in hcana/src | ||
*** cd hcana-build | *** cd hcana-build | ||
Line 40: | Line 40: | ||
*** cd LADlib-build | *** cd LADlib-build | ||
*** make install | *** make install | ||
− | ** setenv LD_LIBRARY_PATH /home/cdaq/lad- | + | ** setenv LD_LIBRARY_PATH /home/cdaq/lad-2024/software/hcana-install/lib64:$LD_LIBRARY_PATH |
* Setup lad_replay | * Setup lad_replay | ||
** git clone https://github.com/GithubUserName/lad_replay | ** git clone https://github.com/GithubUserName/lad_replay |
Revision as of 14:17, 3 June 2024
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/cdaql1data/cdaq/"name"/ROOTfiles
- ln -sf /net/cdaq/cdaql1data/cdaq/"name"/ROOTfiles ROOTfiles
- mkdir /net/cdaq/cdaql1data/cdaq/"name"/REPORT_OUTPUT
- mkdir /net/cdaq/cdaql1data/cdaq/"name"/REPORT_OUTPUT/NPS
- mkdir /net/cdaq/cdaql1data/cdaq/"name"/REPORT_OUTPUT/NPS/eel108
- ln -sf /net/cdaq/cdaql1data/cdaq/"name"/REPORT_OUTPUT
- ln -sf /cache/mss/hallc/c-nps/raw cache
- ln -sf /net/cdaq/cdaql1data/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