-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.sh
executable file
·67 lines (52 loc) · 2.67 KB
/
build.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
TOPDIR=${PWD}
FORCE=no
if [[ $# == 1 && x$1 == x-f ]]; then FORCE=yes; fi
# set up software
source ndcaf_setup.sh
# edep-sim needs to know where a certain GEANT .cmake file is...
G4_cmake_file=`find ${GEANT4_FQ_DIR}/lib64 -name 'Geant4Config.cmake'`
export Geant4_DIR=`dirname $G4_cmake_file`
# Just use the edep-sim UPS product, don't clone master branch off repos!
# Get edep-sim and build it
#if [ $FORCE == yes ]; then rm -rf edep-sim; fi
#git clone https://github.com/ClarkMcGrew/edep-sim.git
#cd edep-sim
#sed -i 's/add_definitions(-DEDEPSIM_FORCE_PRIVATE_FIELDS)//g' */CMakeLists.txt
#source setup.sh
#source build/edep-build.sh
cd ${TOPDIR}
## Update Jan 5 2022:
## DIRT-II task force is currently working on deciding on GENIE 3 models to work with for the ND TDR.
## Since nusystematics' internal fhicl-cpp replacement conflicts with the official fhicl-cpp UPS product,
## for the moment, we're disabling the nusystematics interface.
## It will be re-enabled and cleaned up with help from the DIRT-II group once the model & uncertainties are settled.
# Get nusystematics and built it "artless"
# The ART-dependent version can be ups setup but for ND we need this special build
#
# v00_04_01 is the last version to depend on genie v2 (specifically v2_12_10d)
#if [ $FORCE == yes ]; then rm -rf nusystematics; fi
#git clone ssh://[email protected]/cvs/projects/nusystematics -b v00_04_01
#mkdir nusystematics/build
#cd nusystematics/build
#cmake ../ -DUSEART=0 -DLIBXML2_LIB=/cvmfs/larsoft.opensciencegrid.org/products/libxml2/v2_9_5/Linux64bit+2.6-2.12-prof/lib/ -DLIBXML2_INC=/cvmfs/larsoft.opensciencegrid.org/products/libxml2/v2_9_5/Linux64bit+2.6-2.12-prof/include/libxml2 -DPYTHIA6=/cvmfs/larsoft.opensciencegrid.org/products/pythia/v6_4_28i/Linux64bit+2.6-2.12-gcc640-prof/lib
#make -j systematicstools # force this to build first
#make -j
#make -j install
cd ${TOPDIR}
# Get Geometric efficiency library and build
if [ $FORCE == yes ]; then rm -rf DUNE_ND_GeoEff; fi
git clone --recurse-submodules https://github.com/cvilelasbu/DUNE_ND_GeoEff.git
cd DUNE_ND_GeoEff
cmake -DPYTHON_EXECUTABLE:FILEPATH=`which python` .
make -j pyGeoEff
cd ${TOPDIR}
# Add nusystematics to the paths
#export LD_LIBRARY_PATH=${TOPDIR}/nusystematics/build/Linux/lib:$LD_LIBRARY_PATH
#export LD_LIBRARY_PATH=${TOPDIR}/nusystematics/build/nusystematics/artless:$LD_LIBRARY_PATH
#export FHICL_FILE_PATH=${TOPDIR}/nusystematics/nusystematics/fcl:$FHICL_FILE_PATH
# Add pyGeoEff to pythonpath
export PYTHONPATH=${PYTHONPATH}:${TOPDIR}/DUNE_ND_GeoEff/lib/
# make tarballs of edep-sim and nusystematics for grid jobs
#tar -zcf nusystematics.tar.gz nusystematics
tar -zcf DUNE_ND_GeoEff.tar.gz DUNE_ND_GeoEff