@@ -5,28 +5,31 @@ The fitter is **not** a part of O2Physics source code.
55
66## Dependencies
771 . ROOT
8-
982 . RapidJSON. Download the header-only (no compilation needed) RapidJSON library, see the link < https://rapidjson.org > .
109
10+ If you have O2Physics compilation you do not need to fulfill these dependencies explicitly.
11+
1112## How to run
1213### As a ROOT macro
1314The ` runMassFitter.C ` can be compiled as ROOT macro.
1415```
16+ cd path-to-o2physics-src/PWGHF/D2H/Macros
1517source path-to-root-install/bin/thisroot.sh
1618export ROOT_INCLUDE_PATH=$ROOT_INCLUDE_PATH:path-to-json-include
1719root -l -x -b -q "HFInvMassFitter.cxx" "runMassFitter.C(\"config_massfitter.json\")"
1820```
19- If you have O2Physics compilation and enter into its environment there is no need to set environment variables (skip first two lines above).
21+ If you have O2Physics compilation and enter into its environment there is no need to set environment variables (skip lines 2-3 above).
2022
2123### As a CMake project
2224It is also possible to compile the fitter as a CMake project or insert it into existing one if any.
2325Use the ` CMakeLists_HFInvMassFitter.txt ` (rename it into ` CMakeLists.txt ` before usage).\
2426Compile the fitter with the following steps:
2527```
28+ cd path-to-o2physics-src/PWGHF/D2H/Macros
2629mkdir build
2730cd build
2831source path-to-root-install/bin/thisroot.sh
29- cmake -DHFFITTER_RAPIDJSON_INCLUDE_DIRS=path-to-json-include ..
32+ cmake -DHFFITTER_RAPIDJSON_INCLUDE_DIRS=path-to-json-include ../
3033make
3134```
3235and run the fitter:
@@ -36,6 +39,7 @@ and run the fitter:
3639### Directly from the terminal
3740Compile the fitter with the following steps:
3841```
42+ cd path-to-o2physics-src/PWGHF/D2H/Macros
3943mkdir build
4044cd build
4145source path-to-root-install/bin/thisroot.sh
0 commit comments