Building halld recon with JANA2 on ifarm9

From epsciwiki
Revision as of 19:09, 24 June 2024 by Rasool (talk | contribs) (Created page with " Before proceeding with building halld_recon, ensure you have already built JANA2 following the instructions provided on the [https://wiki.jlab.org/epsciwiki/index.php/Buildin...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Before proceeding with building halld_recon, ensure you have already built JANA2 following the instructions provided on the Building JANA2 on ifarm9.

Steps to Build HALLD_RECON with JANA2

1. Create and Navigate to halld_recon Directory

mkdir halld_recon
cd halld_recon

2. Clone the halld_recon Repository

Clone the halld_recon code in rasool_halld_recon branch

git clone --branch rasool_halld_recon https://github.com/nathanwbrei/halld_recon.git .

3. Edit halld_recon_prereqs_version.xml

After cloning, locate and edit `halld_recon_prereqs_version.xml` to update the path in home attribute of the JANA package to point to your locally built JANA2 repository. Example:

<package name="jana" version="2.1.2" home="/w/epsci-sciwork18/rasool/gluex_jana2_2023/JANA2"/>

4. Build HALLD_RECON

In your terminal, execute the following commands:

source /group/halld/Software/build_scripts/gluex_env_boot_jlab.csh
gxenv halld_recon_prereqs_version.xml
cd src

Normal Build:

nice scons install -j32

Debugging Build:

nice scons install -j32 DEBUG=1 OPTIMIZATION=0 SHOWBUILD=1
nice scons install -j64 DEBUG=1 OPTIMIZATION=0 SHOWBUILD=1

Setting up Environment for Using HALLD_RECON

Once halld_recon is built, navigate to Linux_Alma9-x86_64-gcc11.4.1/setenv.csh (build_directory/setenv.csh). Copy its absolute path and source it to set up the environment. Example:

source /w/epsci-sciwork18/rasool/halld_recon/Linux_Alma9-x86_64-gcc11.4.1/setenv.csh

For testing purposes, you can use the following command:

hd_root /cache/halld/RunPeriod-2023-01/rawdata/Run121120/hd_rawdata_121120_000.evio -PPLUGINS=danarest

Following these steps should successfully build and set up halld_recon with JANA2 on ifarm9. For any issues or further assistance, refer to the respective documentation or contact support.