forked from WCSim/Validation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakeReference.sh
More file actions
executable file
·39 lines (35 loc) · 901 Bytes
/
MakeReference.sh
File metadata and controls
executable file
·39 lines (35 loc) · 901 Bytes
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
#! /bin/bash
cd $WCSIM_BUILD_DIR
echo Creating reference WCSim output from:
#Save the WCSim sha
cd ../src
git rev-list HEAD -1 > /opt/Validation/Compare/Reference/WCSimSHA
cd -
#Run WCSim
for mac in `ls /opt/Validation/Generate/macReference/*.mac`
do
if [[ $mac == tuning_parameters.mac ]]; then
continue
fi
echo $mac
WCSim $mac /opt/Validation/Generate/macReference/tune/tuning_parameters.mac &> ${mac}.out
done
#Get the relevant histograms from WCSim
for file in `ls *.root`
do
if [[ $file == analysed_* ]]; then
continue
elif [[ $file == *_flat.root ]]; then
continue
elif [[ $file == cosmicflux.root ]]; then
continue
fi
echo $file
/opt/Validation/Generate/daq_readfilemain $file
done
#Move the histogram files to the reference location
for output in `ls ./analysed_*.root`
do
echo $output
cp $output /opt/Validation/Compare/Reference/
done