Software Setup

From HallCWiki
Jump to: navigation, search

Setting up HCANA and hallc_replay_rsidis Instructions

Git repos

Starting on the cdaqll machine

  • login into cdaql1 through the gateway
  • if you want to use the standard replay type "go_analysis_rsidis"
  • if you do not have a directory and want to do independent analysis
  • Create a directory /home/cdaq/rsidis-2025/users/<username>
  • cd /home/cdaq/rsidis-2025/users/<username>
  • Setup cmake and CERN 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/rsidis-2025/software/hcana-install/bin:$PATH (tcsh, not bash)
    • If one needs to recompile after making changes in hcana/src
      • cd hcana-build
      • make install
  • Setup hallc_replay_rsidis
    • git clone https://github.com/GithubUserName/hallc_replay_rsidis
    • cd hallc_replay_rsidis
    • git remote add --track main upstream https://github.com/JeffersonLab/hallc_replay_rsidis
    • mkdir -p /net/cdaq/cdaql2data/cdaq/hallc-online-rsidis2025/<username>/ROOTfiles
    • ln -sf /net/cdaq/cdaql2data/cdaq/hallc-online-rsidis2025/<username>/ROOTfiles ROOTfiles
    • mkdir -p /net/cdaq/cdaql2data/cdaq/hallc-online-rsidis2025/<username>/REPORT_OUTPUT
    • ln -sf /net/cdaq/cdaql2data/cdaq/hallc-online-rsidis2025/<username>/REPORT_OUTPUT
    • ln -sf /cache/mss/hallc/c-rsidis/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/rsidis-2025/software/hcana-install/bin:$PATH
      • setenv LD_LIBRARY_PATH /home/cdaq/rsidis-2025/software/hcana-install/lib64:$LD_LIBRARY_PATH
      • source /apps/root/PRO/bin/thisroot.csh
    • Replay scripts are under the SCRIPTS