-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_bashrc
More file actions
57 lines (46 loc) · 2.05 KB
/
example_bashrc
File metadata and controls
57 lines (46 loc) · 2.05 KB
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
# bashrc example setup
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# access to updated gcc version
source /opt/rh/devtoolset-2/enable
export CC=gcc
export CXX=g++
# base applications install directory
export APP_DIR=/cmn/prospect/
export PATH=${APP_DIR}/bin/:${APP_DIR}/anaconda/bin/:$PATH
export LD_LIBRARY_PATH=/cmn/prospect/anaconda/lib/:$APP_DIR/lib/:$LD_LIBRARY_PATH
# needed by P2x_Analysis build for locally-installed headers, libraries
export LDFLAGS=-L${APP_DIR}/lib/ $LDFLAGS
export CXXFLAGS=-I${APP_DIR}/include/ $CXXFLAGS
# use local ROOT6 install
source ${APP_DIR}/root6-bld/bin/thisroot.sh
# Geant4 install
source ${APP_DIR}/geant4.10.03-build/bin/geant4.sh
# for PROSPECT muon shower simulations compile and run
export CRYHOME=${APP_DIR}/cry_v1.7/
export CRYDATA=${CRYHOME}/data
# PROSPECT analysis toolchain using BundleInstaller
export PBUNDLE=${APP_DIR}/PROSPECT-Bundle-v13/
export P2X_ANALYSIS_CODE=${PBUNDLE}/PROSPECT2x_Analysis/
export LD_LIBRARY_PATH=${P2X_ANALYSIS_CODE}/miniMPM/:${P2X_ANALYSIS_CODE}/Examples/:${P2X_ANALYSIS_CODE}/Analysis/:${LD_LIBRARY_PATH}
export PG4_CODE=${PBUNDLE}/PROSPECT-G4/
export PG4_BUILD=${PBUNDLE}/PG4_build
export PG4_OUTDIR=/projects/prospect/simulation
export LD_LIBRARY_PATH=${PG4_BUILD}/lib:$LD_LIBRARY_PATH
# let Python find the PG4 job launcher scripts:
export PYTHONPATH=$PYTHONPATH:${PG4_CODE}/mac/
# Settings for most recent analysis pass
# override these in your own login if you want to
# use your own modified local copies;
# otherwise, these should be read-only.
export P2X_RAWDAT=/home/prospect-collab/data/
export P2X_UNPACKED=$P2X_RAWDAT/converted_data/Unpacked/
export P2X_PULSEDAT=$P2X_RAWDAT/converted_data/Pulse_20160926/
export P2X_PHYSDAT=$P2X_RAWDAT/converted_data/Phys_20161026/
export P2X_ANALYZED=$P2X_RAWDAT/converted_data/Analyzed_20161111/
export PROSPECT_CONFIGDB=$P2X_UNPACKED/PROSPECT_ConfigDB.sql
export PROSPECT_RUNSDB=$P2X_PULSEDAT/PROSPECT_RunsDB.sql
export PROSPECT_CALDB=$P2X_PHYSDAT/PROSPECT_CalDB.sql
export PROSPECT_ANADB=$P2X_ANALYZED/PROSPECT_AnaDB.sql