Difference between revisions of "Building halld recon with JANA2 on ifarm9"
(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...") |
m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | === Prerequisites === | ||
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/Building_JANA2_on_ifarm9 Building JANA2 on ifarm9]. | 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/Building_JANA2_on_ifarm9 Building JANA2 on ifarm9]. | ||
− | === Steps to Build | + | === Steps to Build halld_recon with JANA2 === |
1. '''Create and Navigate to halld_recon Directory''' | 1. '''Create and Navigate to halld_recon Directory''' | ||
Line 13: | 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 21: | 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 27: | Line 28: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | 4. '''Build | + | 4. '''Build halld_recon''' |
In your terminal, execute the following commands: | In your terminal, execute the following commands: | ||
Line 47: | 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> | ||
− | === Setting up Environment for Using | + | === 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: | 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: | ||
Line 64: | Line 64: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | Following these steps should successfully build and set up halld_recon with JANA2 on ifarm9. For any issues or further assistance, | + | Following these steps should successfully build and set up halld_recon with JANA2 on ifarm9. For any issues or further assistance, contact Raiqa Rasool ([mailto:rasool@jlab.org rasool@jlab.org]). |
Revision as of 20:14, 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).