Difference between revisions of "Building halld sim with JANA2 on ifarm9"
(Created page with "=== Prerequisites === Before proceeding with building halld_sim, ensure you have already built JANA2 and halld_recon following the instructions provided in [https://wiki.jlab...") |
m |
||
Line 5: | Line 5: | ||
=== Steps to Build halld_sim with JANA2 === | === Steps to Build halld_sim with JANA2 === | ||
− | 1. '''Create and Navigate to | + | 1. '''Create and Navigate to halld_sim Directory''' |
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Line 14: | Line 14: | ||
2. '''Clone the halld_sim Repository''' | 2. '''Clone the halld_sim Repository''' | ||
− | Clone the halld_sim code in rasool_jana2 branch of [https://github.com/JeffersonLab/halld_sim.git JeffersonLab/halld_sim] | + | Clone the halld_sim code in rasool_jana2 branch of [https://github.com/JeffersonLab/halld_sim.git JeffersonLab/halld_sim]: |
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Line 22: | Line 22: | ||
3. '''Edit halld_sim_prereqs_version.xml''' | 3. '''Edit halld_sim_prereqs_version.xml''' | ||
− | After cloning, locate and edit `halld_sim_prereqs_version.xml` to update the path in home attribute of the `jana` and `halld_recon` packages to their respective repositories you built on ifarm9. Example: | + | After cloning, locate and edit `halld_sim_prereqs_version.xml` to update the path in home attribute of the `jana` and `halld_recon` packages to the paths of their respective repositories you built on ifarm9. Example: |
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
Line 29: | Line 29: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | 4. '''Build halld_sim''' | + | 4. '''Build and Install halld_sim''' |
In your terminal, execute the following commands: | In your terminal, execute the following commands: | ||
− | <syntaxhighlight lang=" | + | <syntaxhighlight lang="tcsh"> |
source /group/halld/Software/build_scripts/gluex_env_boot_jlab.csh | source /group/halld/Software/build_scripts/gluex_env_boot_jlab.csh | ||
gxenv halld_sim_prereqs_version.xml | gxenv halld_sim_prereqs_version.xml | ||
Line 39: | Line 39: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | ''Normal Build:'' | + | ''Normal Build and Install:'' |
− | <syntaxhighlight lang=" | + | <syntaxhighlight lang="tcsh"> |
nice scons install -j32 | nice scons install -j32 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | ''Debugging Build:'' | + | ''Debugging Build and Install:'' |
− | <syntaxhighlight lang=" | + | <syntaxhighlight lang="tcsh"> |
nice scons install -j32 DEBUG=1 OPTIMIZATION=0 SHOWBUILD=1 | nice scons install -j32 DEBUG=1 OPTIMIZATION=0 SHOWBUILD=1 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | 5. '''Verify the Installation''' | |
− | Once halld_sim 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_sim is built and installed, 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: |
− | <syntaxhighlight lang=" | + | <syntaxhighlight lang="tcsh"> |
source /w/epsci-sciwork18/rasool/halld_recon/Linux_Alma9-x86_64-gcc11.4.1/setenv.csh | source /w/epsci-sciwork18/rasool/halld_recon/Linux_Alma9-x86_64-gcc11.4.1/setenv.csh | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | After setting up the environment, run the following command to confirm that halld_sim is correctly built and installed: | |
− | < | + | <pre> |
fit | fit | ||
− | </ | + | </pre> |
+ | |||
+ | If halld_sim is installed correctly, the command will provide following output, confirming its installation: | ||
+ | <pre> | ||
+ | No config file specified | ||
+ | </pre> | ||
− | + | For any issues or further assistance with building, installing or using halld_sim with JANA2 on ifarm9, contact Raiqa Rasool ([mailto:rasool@jlab.org rasool@jlab.org]). |
Revision as of 14:40, 25 June 2024
Prerequisites
Before proceeding with building halld_sim, ensure you have already built JANA2 and halld_recon following the instructions provided in Building JANA2 on ifarm9 and Building & Using halld_recon with JANA2 on ifarm9, respectively.
Steps to Build halld_sim with JANA2
1. Create and Navigate to halld_sim Directory
mkdir halld_sim
cd halld_sim
2. Clone the halld_sim Repository
Clone the halld_sim code in rasool_jana2 branch of JeffersonLab/halld_sim:
git clone --branch rasool_jana2 https://github.com/JeffersonLab/halld_sim.git .
3. Edit halld_sim_prereqs_version.xml
After cloning, locate and edit `halld_sim_prereqs_version.xml` to update the path in home attribute of the `jana` and `halld_recon` packages to the paths of their respective repositories you built on ifarm9. Example:
<package name="halld_recon" home="/w/epsci-sciwork18/rasool/halld_recon_jana2_latest"/>
<package name="jana" version="2.1.2" home="/w/epsci-sciwork18/rasool/gluex_jana2_2023/JANA2"/>
4. Build and Install halld_sim
In your terminal, execute the following commands:
source /group/halld/Software/build_scripts/gluex_env_boot_jlab.csh
gxenv halld_sim_prereqs_version.xml
cd src
Normal Build and Install:
nice scons install -j32
Debugging Build and Install:
nice scons install -j32 DEBUG=1 OPTIMIZATION=0 SHOWBUILD=1
5. Verify the Installation
Once halld_sim is built and installed, 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
After setting up the environment, run the following command to confirm that halld_sim is correctly built and installed:
fit
If halld_sim is installed correctly, the command will provide following output, confirming its installation:
No config file specified
For any issues or further assistance with building, installing or using halld_sim with JANA2 on ifarm9, contact Raiqa Rasool (rasool@jlab.org).