ROOT

From Research Computing Website


Overview

This guide is based on documentation provided by https://root.cern/install/#download-a-pre-compiled-binary-distribution and it is meant for users who want to install ROOT on Windows Machine. For users who intend to use ROOT on other platforms, may consult guide provided at https://root.cern/install/#install-via-a-package-manager OR for assistance you may send help-desk request.

Pre-Requisites

  • ROOT 6
    1. CMake (version >= 16.3)
    2. Microsoft Visual C++ (ROOT6 requires at least Visual Studio 2019 version 16.1). The Community version is free. The Desktop Development With C++ workload is also needed. You must manually activate it by clicking on the checkbox available on the installation menu of Visual Studio Installer.
    3. Python. ROOTs Python interface and bindings support any Python version that is not end-of-life. This means it supports the 5 latest major versions of Python 3. If you download a binary release, you need to install the exact same Python version used for the compilation of the binary
  • ROOT 5 (deprecated)

If you are using Windows make sure you have installed Microsoft Visual C++ (e.g., the no-cost edition) plus CMake. The CMake build will work directly without the need to install cygwin as it was required previously before the adaption of CMake.

Download Root Setup

  1. Once VC++ is installed, download ROOT Setup and store this file somewhere in your computer

To Install Root

  1. Right click on downloaded ROOT setup and click Run as Administrator, if you are already logged in as Admin account, just double click the root Setup.
  2. Installation will begin and continue the installation with default parameters.
  3. ROOT 5.32.04 icon will appear in Start Menu.

Starting Root

  1. Right Click on ROOT 5.32.04 icon in Start menu and click Run as Administrator.
  2. A Console window will open and Root console window will appear.

Getting Started with Root

  1. To get started with ROOT after Installation, follow ROOT Starter Guide

Use your local browser to visualize ROOT files from Raad2

Starting from the version 6.26 of ROOT, there is a possibility to visualise ROOT files from a web Browser, hence improving the user experience.
No Web Browser are available on Raad2, but this feature is still usable through a Port Forwarding technic as described below.

On Windows

  • Copy rootssh script from here: P:\Office of Research\Research Computing\RC\ROOT\rootssh and past it anywhere on your PC
  • Open MobaXterm and click on "Start local terminal"

Rootbrowser1.png

  • In this terminal, issue the following command:
./Path/To/rootssh username@raad2.hbku.edu.qa "module load root/6.28.06; root --web -e 'new TBrowser'"
  • ("/Path/To/rootssh" is the folder on your local machine where you copied the rootssh script)
  • That's it.
  • That should normally open a new web page in Firefox, Edge or Google Chrome, from which you can navigate to your root file:

Rootbrowser2.png

  • To specify which browser to use, just add : --browser <name of the executable of the chosen browser>
  • For instance, for Microsoft Edge, (let's assume you placed rootssh file on your PC in "This PC/Documents"), the command becomes:
./MyDocuments/rootssh --browser msedge.exe username@raad2.hbku.edu.qa "module load root/6.28.06; root --web -e 'new TBrowser'"

On Mac

  • Install Firefox (or Google Chrome), the script does not support Safari yet
  • Set Firefox as your default browser (in System Preferences -> General -> Default Web Browser: Firefox)
  • Copy the rootssh script from this location: https://raw.githubusercontent.com/root-project/root/master/config/rootssh to any local folder on your Mac
  • Open a Mac terminal and cd to the location of the rootssh file that you just downloaded
$ cd /path/to/rootssh/folder
  • Make this script executable and run it, with following commands:
$ chmod u+x rootssh
$ ./rootssh username@raad2
  • This will open an ssh session on your Raad2 account, with the proper settings
  • Enter your Raad2 account password
  • Issue the following commands:
username@raad2:~> module load root/6.28.06
username@raad2:~> root --web
root[1] TBrowser tb
  • If everything went well, a Firefox window will open up on your Mac, inside this window you can navigate to the file.root that you want to browse

References

Cookies help us deliver our services. By using our services, you agree to our use of cookies.
© 2025 | RComputing