root(1)
πΈ root(1) β the glow-up manual πΈ
okay bestie, listen up π you just typed man 1 root (or like, you're reading this in the terminal, main character energy fr) and now you're meeting root β an interactive interpreter of C++ code using Cling and the ROOT framework. This page lives in the General Commands Manual, section 1, iykyk.
For more info on ROOT, go touch grass at https://root.cern/ π± β and lowkey there's an extensive Users Guide and an API Reference waiting for you on that exact website. Like, go look. It's giving encyclopedia but make it C++.
β¨ SYNOPSIS β¨
the way that you summon it:
usage: root [-b B] [-x X] [-e E] [-n N] [-t T] [-q Q] [-l L] [-a A]
[-config CONFIG] [-h HELP] [--version VERSION]
[--notebook NOTEBOOK] [--web WEB] [--web=<type> WEB=<TYPE>]
[--web=off WEB=OFF]
[dir] [data1.root...dataN.root] [file1.C...fileN.C]
[file1_C.so...fileN_C.so] [anyfile1..anyfileN]
so many little boxes to fill in, so much potential π
π¦ DESCRIPTION π¦
root is an interactive interpreter of C++ code using Cling and the ROOT framework. That's it, that's the vibe. You type C++, it just runs, no compile-edit-run cycle crying session required.
For more information on ROOT, please refer to https://root.cern/ β an extensive Users Guide and API Reference are available from that website. π«Ά
π OPTIONS π
Every single flag, no skips, no cap:
-bβ Run in batch mode without graphics. no windows, no vibes, just β¨executionβ¨-xβ Exit on exceptions. the moment something throws, we're out πͺπ¨-eβ Execute the command passed between single quotes-nβ Do not execute logon and logoff macros as specified in.rootrc-tβ Enable thread-safety and implicit multi-threading (IMT). multitasking queen behavior π§-qβ Exit after processing command line macro files-lβ Do not show the ROOT banner. (shy mode π)-aβ Show the ROOT splash screen (Windows only). windows girlies get the sparkle β¨-configβ print./configureoptions-hβ Show summary of options. your lil cheat sheet π--versionβ Show the ROOT version--notebookβ Execute ROOT notebook--webβ Use web-based display for graphics, browser, geometry π--web=<type>β Use the specified web-based display such aschrome,firefox,qt6
For more options see the documentation of TROOT::SetWebDisplay()
--web=offβ Disable any kind of web-based display. we're going offline bestie π΄[dir]β if dir is a valid directory cd to it before executing[data1.root...dataN.root]β Open the given ROOT files; remote protocols (such ashttp://) are supported. yes you can be remote and mysterious π[file1.C...fileN.C]β Execute the ROOT macrofile1.C...fileN.C
Compilation flags as well as macro arguments can be passed, see format in https://root.cern/manual/root_macros_and_shared_libraries/
[file1_C.so...fileN_C.so]β Load and executefile1_C.so...fileN_C.so(or.dllif on Windows)
They should be already-compiled ROOT macros (shared libraries) or:
regular user shared libraries e.g. userlib.so with a function userlib(args)
[anyfile1..anyfileN]β All other arguments pointing to existing files will be checked to see if they are ROOT Files (checking the MIME type inside the file) and if they are not they will be handled as a ROOT macro file
π real talk though: some of these flags change what actually happens when stuff goes wrong, so don't just yeet them in because they look cute.-xand-bespecially? they mean what they mean.
and that's the whole page, bestie β no notes, no crumbs, ate and left zero evidence π
This was the root(1) page from the General Commands Manual, section 1, served fresh at the bottom of every man page like a lil signature π periodt. π
π¦ where this page comes from
- arch rolling: root 6.40.04-1 Β· LGPL-2.1-or-later AND BSD-2-Clause AND BSD-3-Clause-LBNL AND NCSA
- arch rolling: root-cuda 6.40.04-1 Β· LGPL-2.1-or-later AND BSD-2-Clause AND BSD-3-Clause-LBNL AND NCSA
- epel 10: root 6.40.04-4.el10_3 Β· LGPL-2.1-or-later
- epel 9: root 6.40.04-4.el9 Β· LGPL-2.1-or-later
- fedora 43: root 6.40.04-1.fc43 Β· LGPL-2.1-or-later
- fedora 44: root 6.38.04-1.fc44 Β· LGPL-2.1-or-later
- fedora 44: root 6.40.04-1.fc44
- fedora 44: root 6.40.04-4.fc44 Β· LGPL-2.1-or-later
- nixos 26.05: root 6.40.00
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms