From 7f1d812202e16e2d1ff86afad4270dfa129840cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renata=20Kopecn=C3=A1?= Date: Wed, 26 Jan 2022 15:30:15 +0100 Subject: [PATCH] Update 'Selection code' --- Selection-code.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Selection-code.md b/Selection-code.md index 7d9815e..46cf02d 100644 --- a/Selection-code.md +++ b/Selection-code.md @@ -2,7 +2,12 @@ The selection code is a set of C++ scripts. First, the running of the code is in ## Setting up ROOT **TODO** - +In order to make pretty plots, dedicated code in [Design.cpp|Design.cpp] is always checked for compilation when starting ROOT. This is done by creating a `.rootrc` file in your home directory and telling ROOT to always compile the Design.cpp: +``` +{ +gROOT->ProcessLine(".L path/to/your/folder/Design.cpp+"); +} +``` # Running the code The code consists of several C++ scripts that are compiled and executed in ROOT. Before every step, it is worth closing and opening ROOT, as it is possible ROOT will complain about redefinition of functions.