-- NkatekoBaloyi - 2019-03-07

Installing ROOT on Windows

  • Download the .exe extension of ROOT matching your visual studio on the this link https://root.cern.ch/releases
  • Install ROOT
  • Search for ROOT your window
  • If the installation is complete, the ROOT lady will appear.

Setup environments for ROOT

  • Type root on the command prompt
  • If you are getting this error:
'root' is not recognized as an internal or external command,
operable program or batch file.

You need to setup the environment:

  • On your PC, Go to properties -> Advanced System Settings -> Environment Variables -> System Variables -> Select path -> edit -> add the full path of where ROOT is installed and save.

Running TMVA Scripts

To run a script on ROOT, the scripts and data must be saved on the ROOT directory.

  • On the commnd prompt, use the cd command to go to the directory where the scripts are saved:
    • C:\Users\user> cd C:\root_v5.34.36\Nkateko\MVA
      • C:\root_v5.34.36\user\MVA>

    • To run the script type : root -l script_name.C OR
    • type root and the root prompt will show. Run the following command:
      • .X script_name.C

  • You can also run your script on the command prompt without changing directories:
    • On the command prompt run:
      • root -l full_path_to_the_folder\script.C
    • e.g.

      C:\Users\user> root -l C:\root_v5.34.36\Nkateko\MVA\compareBDTs.C

  • To quit root, run the .q command
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2019-03-08 - NkatekoBaloyi
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback