====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==== -Access LENGAU and Connect via SSH -Sign in to **LENGAU** and establish an SSH connection to the **dtn** node. ====Initialize Conda (if needed)==== Ensure your **base Conda environment** is initialized: -If initialized, (base) will appear next to your user ID, indicating that your **.bashrc** file has been set up to load Conda automatically -If Conda is not initialized, follow the instructions in the[[ https://wiki.chpc.ac.za/guide:python?s[]=*python*|CHPC 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: #!/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