forked from afropapp13/BuildEventGenerators
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_nuisance.sh
executable file
·46 lines (39 loc) · 1.69 KB
/
build_nuisance.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]:-${(%):-%x}}" )" && pwd )"
source ${BASE_DIR}/global_vars.sh
## Set up NEUT
export NEUTROOT=${BASE_DIR}/neut
source ${NEUTROOT}/neutbuild/cernlib/setup_cernlib.sh
source ${NEUTROOT}/build/Linux/setup.sh
export LD_LIBRARY_PATH=$NEUTROOT/src/reweight:$LD_LIBRARY_PATH
## Set up GENIE
export GENIE=${BASE_DIR}/Generator
export PYTHIA6=${PYTHIA_FQ_DIR}/lib
export LHAPDF5_INC=${LHAPDF_INC}
export LHAPDF5_LIB=${LHAPDF_LIB}
export GENIE_REWEIGHT=${BASE_DIR}/Reweight
export PATH=${GENIE}/bin:${GENIE_REWEIGHT}/bin:$PATH
export LD_LIBRARY_PATH=${GENIE}/lib:${GENIE_REWEIGHT}/lib:${LD_LIBRARY_PATH}
export LIBRARY_PATH=${LIBRARY_PATH}:${GENIE_REWEIGHT}/lib
## Set up GiBUU (run via the "gibuu" symbolic link to GiBUU.x)
export PATH=${PATH}:${BASE_DIR}/GiBUU
## Set up NuWro
#export PYTHIA6=$PYTHIA6_LIBRARY
export NUWRO=${BASE_DIR}/nuwro
#export LD_LIBRARY_PATH=${BASE_DIR}/pythia6:$NUWRO/lib:$NUWRO/bin:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=${PYTHIA6}:$NUWRO/bin:$LD_LIBRARY_PATH
export PATH=$NUWRO/bin:$PATH
# Clone and build Nuisance
git clone https://github.com/NUISANCEMC/nuisance.git
#git clone https://github.com/afropapp13/nuisance.git
cd nuisance
#git checkout v2r8
mkdir build
cd build
# old fashioned config
#cmake -DUSE_GENIE=1 -DUSE_NuWro=1 -DUSE_NEUT=1 -DUSE_GiBUU=1 -DLIBXML2_LIB=$(xml2-config --prefix)/lib -DNEUT_ROOT=${NEUTROOT} -DCMAKE_BUILD_TYPE=DEBUG ../
# new config after May 22 2023
cmake -DGENIE_ENABLED=ON -DNuWro_ENABLED=ON -DNEUT_ENABLED=ON -DGiBUU_ENABLED=ON -DCMAKE_BUILD_TYPE=DEBUG ../
make
make install
#sed -i 's/add_to_LD_LIBRARY_PATH "\/uboone\/app\/users\/apapadop\/BuildEventGenerators\/nuwro\/build\/Linux\/lib"/ /g' Linux/setup.sh