From 3fd98bd3b7d71ce447527fe11e14de59b9beea57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renata=20Kopecn=C3=A1?= Date: Tue, 8 Feb 2022 13:03:49 +0100 Subject: [PATCH] Update 'getPathForPython' --- getPathForPython.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/getPathForPython.md b/getPathForPython.md index 841a67e..0c0c0c6 100644 --- a/getPathForPython.md +++ b/getPathForPython.md @@ -1,6 +1,8 @@ This script is a helper function for the python scripts. It loads the hardcoded paths from [[Paths.hpp|Paths.hpp]] and returns them as a string based on the specified options. -**Before compiling this, one has to go to Utils.hpp and comment out functions `getResult`, `getVarFromResult` and `getBplusMeanFromResult`.** This is due to the fact it is a header file: it cannot properly link the RooFit functions. If the function was properly defined and compiled, runinng the scripts from the ROOT shell would be a living hell. Without running in the ROOT shell, one would have to constantly change the main file and recompile everything 400 times a day, so this is the price to pay. +**Before compiling this, one has to go to Utils.hpp and comment out functions `getResult`, `getVarFromResult` and `getBplusMeanFromResult`.** This is due to the fact it is a header file: it cannot properly link the RooFit functions. If the function was properly defined and compiled, runinng the scripts from the ROOT shell would be a living hell. Without running in the ROOT shell, one would have to constantly change the main file and recompile everything 400 times a day, so this is the price to pay. + +The code has to be compiled in the same enviroment as we run the python in, hence we need to [source it](https://git.physi.uni-heidelberg.de/kopecna/EWP-BplusToKstMuMu-AngAna/wiki/Selection-code#setting-up-python3-and-pyroot) First, compile the script to be a standalone executable that can be called by pyhton: ```