This repository has been archived by the owner on Apr 28, 2023. It is now read-only.
forked from bvormwald/HHKinFit2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile.sh
executable file
·24 lines (22 loc) · 1.62 KB
/
compile.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
if [[ -z "$KINFIT2PATH" ]]
then
echo "Trying to initialize environment:"
source ./setup.sh
fi
if [[ -z "$KINFIT2PATH" ]]
then
echo "Trying to initialize environment failed!"
else
echo "removing old files"
rm -f libHHKinFit2.so
echo "creating shared library"
clang -Wall -Wextra -fPIC -shared src/*.cpp `root-config --cflags --glibs` -I ./interface -D HHKINFIT2 -o libHHKinFit2.so
# echo "creating executable"
# #g++ examples/main.C `root-config --cflags --glibs` -I $KINFIT2PATH/include -L $KINFIT2PATH -lHHKinFit2 -o runHHKinFit
# #g++ -std=c++11 examples/compareKinFits.C `root-config --cflags --glibs` -I $KINFIT2PATH/include -I $KINFIT1PATH/interface -L $KINFIT2PATH -lHHKinFit2 -L $KINFIT1PATH -lHHKinFit1 -o compareKinFits
# g++ -std=c++11 examples/compare2DKinFits.C `root-config --cflags --glibs` -I $KINFIT2PATH/include -I $KINFIT1PATH/interface -L $KINFIT2PATH -lHHKinFit2 -L $KINFIT1PATH -lHHKinFit1 -o compare2DKinFits
# #g++ -std=c++11 examples/gensimHH.C `root-config --cflags --glibs` -I $KINFIT2PATH/include -I $KINFIT1PATH/interface -L $KINFIT2PATH -lHHKinFit2 -o gensimHH
# #g++ -std=c++11 examples/example.C `root-config --cflags --glibs` -I $KINFIT2PATH/include -I $KINFIT1PATH/interface -L $KINFIT2PATH -lHHKinFit2 -o example
# clang examples/fitSingleEvent2DKinFit.C `root-config --cflags --glibs` -I $KINFIT2PATH/interface -L $KINFIT2PATH -lHHKinFit2 -D HHKINFIT2 -o fitSingleEvent2DKinFit
# clang examples/fitSingleEvent1DKinFit.C `root-config --cflags --glibs` -I $KINFIT2PATH/interface -L $KINFIT2PATH -lHHKinFit2 -D HHKINFIT2 -o fitSingleEvent1DKinFit
fi