Skip to content

Commit 5a48d6d

Browse files
committed
init README - describe compilation from the command line
1 parent 7b16886 commit 5a48d6d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

PWGHF/D2H/Macros/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
Step 1: Generate ROOT dictionary:
3+
rootcling -f G__HFInvMassFitter.cxx -c ../HFInvMassFitter.h ../HFInvMassFitterLinkDef.h
4+
5+
Step 2: Compile source code:
6+
g++ -fPIC -I$(root-config --incdir) -I path-to-json-include -c ../HFInvMassFitter.cxx ../runMassFitter.C G__HFInvMassFitter.cxx
7+
8+
Step 3: Link the executable:
9+
g++ -o runMassFitter HFInvMassFitter.o runMassFitter.o G__HFInvMassFitter.o $(root-config --libs) -lRooFit -lRooFitCore -lEG

0 commit comments

Comments
 (0)