-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCombineEtaPrimeMeasurements5TeV_pPb.sh
26 lines (25 loc) · 1.3 KB
/
CombineEtaPrimeMeasurements5TeV_pPb.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
# NOTE: Macro parameters
GPPcompile=0
fileNamePCM="pdf/pPb_5.023TeV/2018_09_16/MC_PCMResultsFullCorrection_pPb.root"
fileNamePCMEMCAL="pdf/pPb_5.023TeV/2018_09_16/MC_PCM-EMCALResultsFullCorrection_pPb.root"
fileNamePCMPHOS="pdf/pPb_5.023TeV/2018_09_16/MC_PCM-PHOSResultsFullCorrection_pPb.root"
fileNameEMCAL="pdf/pPb_5.023TeV/2018_09_16/MC_EMCAL-EMCALResultsFullCorrection_pPb.root"
fileNamePHOS="pdf/pPb_5.023TeV/2018_09_16/MC_PHOS-PHOSResultsFullCorrection_pPb.root"
suffix="pdf"
isMC=kTRUE
bWCorrection=""
fileNameCorrFactors=""
#
# * Compile with ROOT :(( *
if [ $GPPcompile -eq 0 ]; then
root -l -x -q -b "CombineEtaPrimeMeasurements5TeV_pPb.C+(\"$fileNamePCM\",\"$fileNamePCMEMCAL\",\"$fileNamePCMPHOS\",\"$fileNameEMCAL\",\"$fileNamePHOS\",\"$suffix\",$isMC,\"$bWCorrection\",\"$fileNameCorrFactors\")"
# * Compile with G++ \('.')/ *
else
echo -n "Compiling \"CombineEtaPrimeMeasurements5TeV_pPb\" ..."
compile CombineEtaPrimeMeasurements5TeV_pPb.C
if [ $? -eq 0 ]; then
echo -e "\rRunning \"CombineEtaPrimeMeasurements5TeV_pPb\" ...\n"
./CombineEtaPrimeMeasurements5TeV_pPb $fileNamePCM $fileNamePCMEMCAL $fileNamePCMPHOS $fileNameEMCAL $fileNamePHOS $suffix $isMC $bWCorrection $fileNameCorrFactors
fi
fi
#