forked from victor-gonzalez/CAP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Setup_CAP.sh
executable file
·55 lines (53 loc) · 2.61 KB
/
Setup_CAP.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
#!/bin/bash
####################################################################################################
#
# Use this file to setup envirionment variable to run CAP applications
#
# The build is controlled by cmake and make. Both are needed for this to work.
#
# The following directory structure is assumed/build
#
# 'pwd' : Current directory
# 'pwd'/build : Where cmake & make will compile&build APPs
# 'pwd'/data : data read/written by CAP executables and MACROs
# 'pwd'/documentation : documentation output (DOXYGEN)
# 'pwd'/src : Source code main directory
# 'pwd'/src/AMPT : Code to read AMPT events.
# 'pwd'/src/Base : Base classes of the CAP framework.
# 'pwd'/src/Blastwave : Classes to simulate Blastwave (depracated, use Base/BWGenerator).
# 'pwd'/src/Cluster : Original "cluster" code (depracated).
# 'pwd'/src/EOS : Configuration file for the Hadron Gas module.
# 'pwd'/src/Epos : Code to read EPOS events.
# 'pwd'/src/HadronGas : Code to carry out hadron gas calculation and event generation.
# 'pwd'/src/Music : Code to read MUSIC events.
# 'pwd'/src/StatStudies : Code to carry various stat studies.
# 'pwd'/src/Urqmd : Code to read UrQMD events.
# 'pwd'/src/CAPPythia : Code to read or produce PYTHIA events.
#
####################################################################################################
echo "========================================================================================"
echo "Creating (if needed) build, InputFiles, and OutputFiles directories"
if [[ ! (-d build) ]]
then
mkdir build;
fi
echo "========================================================================================"
echo "Setting up CAP environment variables"
echo "========================================================================================"
export CAP_ROOT=`pwd`
export CAP_SRC="$CAP_ROOT/src/"
export CAP_BIN="$CAP_ROOT/bin/"
export CAP_LIB="$CAP_ROOT/lib/"
export CAP_DATA="$CAP_ROOT/data/"
export CAP_INPUT_PATH="$CAP_DATA/inputHistos/"
export CAP_OUTPUT_PATH="$CAP_DATA/outputHistos/"
export CAP_REPOSITORY_PATH="$CAP_DATA/repository/"
export CAP_FIGURES_PATH="$CAP_DATA/figures/"
export PATH="$CAP_BIN:$PATH"
export DYLD_LIBRARY_PATH="$CAP_LIB:$DYLD_LIBRARY_PATH"
export LD_LIBRARY_PATH="$CAP_LIB:$LD_LIBRARY_PATH"
export CAP_INPUT_PATH="$CAP_DATA/InputFiles/"
export CAP_OUTPUT_PATH="$CAP_DATA/OutputFiles/"
export CAP_REPOSITORY_PATH="$CAP_DATA/Repository/"
echo "All done"
echo "========================================================================================"