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: ```