Skip to content

Commit 9041445

Browse files
committed
clarify paths in readme
1 parent 074758f commit 9041445

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

PWGHF/D2H/Macros/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,31 @@ The fitter is **not** a part of O2Physics source code.
55

66
## Dependencies
77
1. ROOT
8-
98
2. 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
1314
The `runMassFitter.C` can be compiled as ROOT macro.
1415
```
16+
cd path-to-o2physics-src/PWGHF/D2H/Macros
1517
source path-to-root-install/bin/thisroot.sh
1618
export ROOT_INCLUDE_PATH=$ROOT_INCLUDE_PATH:path-to-json-include
1719
root -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
2224
It is also possible to compile the fitter as a CMake project or insert it into existing one if any.
2325
Use the `CMakeLists_HFInvMassFitter.txt` (rename it into `CMakeLists.txt` before usage).\
2426
Compile the fitter with the following steps:
2527
```
28+
cd path-to-o2physics-src/PWGHF/D2H/Macros
2629
mkdir build
2730
cd build
2831
source 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 ../
3033
make
3134
```
3235
and run the fitter:
@@ -36,6 +39,7 @@ and run the fitter:
3639
### Directly from the terminal
3740
Compile the fitter with the following steps:
3841
```
42+
cd path-to-o2physics-src/PWGHF/D2H/Macros
3943
mkdir build
4044
cd build
4145
source path-to-root-install/bin/thisroot.sh

0 commit comments

Comments
 (0)