Update 'getPathForPython'

Renata Kopecná 2022-02-08 13:03:49 +01:00
parent 6b0ce11f25
commit 3fd98bd3b7

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