Difference between revisions of "Building halld recon with JANA2 on ifarm9"
m |
|||
Line 14: | Line 14: | ||
2. '''Clone the halld_recon Repository''' | 2. '''Clone the halld_recon Repository''' | ||
− | Clone the halld_recon code in rasool_halld_recon branch | + | Clone the halld_recon code in rasool_halld_recon branch of [https://github.com/nathanwbrei/halld_recon.git nathanwbrei/halld_recon]. |
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Line 22: | Line 22: | ||
3. '''Edit halld_recon_prereqs_version.xml''' | 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 | + | After cloning, locate and edit `halld_recon_prereqs_version.xml` to update the path in home attribute of the JANA package to the path of the JANA2 repository you built on ifamr9. Example: |
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
Line 48: | Line 48: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
nice scons install -j32 DEBUG=1 OPTIMIZATION=0 SHOWBUILD=1 | nice scons install -j32 DEBUG=1 OPTIMIZATION=0 SHOWBUILD=1 | ||
− | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 20:13, 24 June 2024
Prerequisites
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 of nathanwbrei/halld_recon.
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 the path of the JANA2 repository you built on ifamr9. 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
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, contact Raiqa Rasool (rasool@jlab.org).