User Tools

Site Tools


howto:root

About ROOT

ROOT https://https://root.cern/about/CERN is a software framework born at CERN, at the heart of the research on high-energy physics. Physicists use ROOT applications to analyze their data or to perform simulations.

Installing ROOT in a Python Virtual Environment on LENGAU

  1. Access LENGAU and Connect via SSH
  2. Sign in to LENGAU and establish an SSH connection to the dtn node.

Initialize Conda (if needed)

Ensure your base Conda environment is initialized:

  1. If initialized, (base) will appear next to your user ID, indicating that your .bashrc file has been set up to load Conda automatically
  2. If Conda is not initialized, follow the instructions in theCHPC Python Guide.

Prepare the Shell and Load Required Modules

Purge any loaded modules and load the BIOMODULES module:

 module purge
 module add chpc/BIOMODULES
 

Create a New Conda Environment with ROOT

conda create -n root_env root -c conda-forge

Verify the Installation

conda info --envs
conda list

Activate the ROOT Environment

conda activate root_env

Launch ROOT

root

Deactivate the Environment when done

conda deactivate

Batch Scripts Example

This is just a simple example which will be improved as testing commences:

root.qsub
#!/bin/bash 
#PBS -P projectid
#PBS -l select=3:ncpus=24:mpiprocs=24:nodetype=haswell_reg
#PBS -q normal
#PBS -l walltime=01:00:00
#PBS -o /mnt/lustre/users/username/rootJobs/job01/stdout
#PBS -e /mnt/lustre/users/username/rootJobs/job01/stderr
#PBS -m abe
#PBS -M username@email.co.za
### Activate the conda ROOT environment: 
 conda activate root_env
##### Running commands
# Set this environment variable explicitly.
export PBS_JOBDIR=/mnt/lustre/users/username/rootJobs/job01
# Explicitly change to the job directory
cd $PBS_JOBDIR
nproc=`cat $PBS_NODEFILE | wc -l`
exe=root
mpirun -np $nproc $exe > root.out
/app/dokuwiki/data/pages/howto/root.txt · Last modified: 2024/11/11 13:33 by msovara