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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
#!/bin/bash
# Save current working dir so img can be outputted there later
W_DIR=$(pwd);
# Set SCRAM architecture var
SCRAM_ARCH=slc7_amd64_gcc900;
export SCRAM_ARCH;
source /afs/cern.ch/cms/cmsset_default.sh;
eval `scram run -sh`;
# Go back to original working directory
cd $W_DIR;
# Run get payload data script
if [ -f *.png ]; then
rm *.png
fi
if [ -d $W_DIR/results_HLT ]; then
rm -fr $W_DIR/results_HLT
fi
mkdir $W_DIR/results_HLT
if [ -d $W_DIR/results_Offline ]; then
rm -fr $W_DIR/results_Offline
fi
mkdir $W_DIR/results_Offline
declare -a arr=("1" "112110" "112245" "117680" "129282" "188059" "189210" "199755" "205566" "233749" "237545" "256491" "268129" "278869" "290543" "294582" "295077" "298756" "303659" "312203" "313800" "320377" "322634" "323893" "326851")
for i in "${arr[@]}"
do
echo -e "\n\n dealing with IOV: "$i"\n"
getPayloadData.py \
--plugin pluginSiPixelGainCalibrationForHLT_PayloadInspector \
--plot plot_SiPixelGainCalibForHLTGainDiffRatioTwoTags \
--tagtwo SiPixelGainCalibrationHLT_2009runs_hlt \
--tag SiPixelGainCalibrationHLT_2009runs_ScaledForVCal_hlt \
--time_type Run \
--iovs '{"start_iov": "'$i'", "end_iov": "'$i'"}' \
--iovstwo '{"start_iov": "'$i'", "end_iov": "'$i'"}' \
--db Prod \
--test;
mv *.png $W_DIR/results_HLT/GainsDiffRatio_${i}.png
getPayloadData.py \
--plugin pluginSiPixelGainCalibrationForHLT_PayloadInspector \
--plot plot_SiPixelGainCalibForHLTPedestalDiffRatioTwoTags \
--tagtwo SiPixelGainCalibrationHLT_2009runs_hlt \
--tag SiPixelGainCalibrationHLT_2009runs_ScaledForVCal_hlt \
--time_type Run \
--iovs '{"start_iov": "'$i'", "end_iov": "'$i'"}' \
--iovstwo '{"start_iov": "'$i'", "end_iov": "'$i'"}' \
--db Prod \
--test;
mv *.png $W_DIR/results_HLT/PedestalsDiffRatio_${i}.png
getPayloadData.py \
--plugin pluginSiPixelGainCalibrationForHLT_PayloadInspector \
--plot plot_SiPixelGainCalibForHLTGainComparisonTwoTags \
--tagtwo SiPixelGainCalibrationHLT_2009runs_hlt \
--tag SiPixelGainCalibrationHLT_2009runs_ScaledForVCal_hlt \
--time_type Run \
--iovs '{"start_iov": "'$i'", "end_iov": "'$i'"}' \
--iovstwo '{"start_iov": "'$i'", "end_iov": "'$i'"}' \
--db Prod \
--test;
mv *.png $W_DIR/results_HLT/GainsComparison_${i}.png
getPayloadData.py \
--plugin pluginSiPixelGainCalibrationForHLT_PayloadInspector \
--plot plot_SiPixelGainCalibForHLTPedestalComparisonTwoTags \
--tagtwo SiPixelGainCalibrationHLT_2009runs_hlt \
--tag SiPixelGainCalibrationHLT_2009runs_ScaledForVCal_hlt \
--time_type Run \
--iovs '{"start_iov": "'$i'", "end_iov": "'$i'"}' \
--iovstwo '{"start_iov": "'$i'", "end_iov": "'$i'"}' \
--db Prod \
--test;
mv *.png $W_DIR/results_HLT/PedestalsComparison_${i}.png
done
declare -a arr2=("1" "112110" "112245" "117680" "129282" "188059" "189210" "199755" "205566" "233749" "237545" "256491" "268129" "278869" "290550" "294582" "295077" "298647" "303659" "312203" "313800" "320377" "322634" "323893" "326851")
for i in "${arr2[@]}"
do
echo -e "\n\n dealing with IOV: "$i"\n"
getPayloadData.py \
--plugin pluginSiPixelGainCalibrationOffline_PayloadInspector \
--plot plot_SiPixelGainCalibOfflineGainDiffRatioTwoTags \
--tagtwo SiPixelGainCalibration_2009runs_hlt \
--tag SiPixelGainCalibration_2009runs_ScaledForVCal_hlt \
--time_type Run \
--iovs '{"start_iov": "'$i'", "end_iov": "'$i'"}' \
--iovstwo '{"start_iov": "'$i'", "end_iov": "'$i'"}' \
--db Prod \
--test;
mv *.png $W_DIR/results_Offline/GainsDiffRatio_${i}.png
getPayloadData.py \
--plugin pluginSiPixelGainCalibrationOffline_PayloadInspector \
--plot plot_SiPixelGainCalibOfflinePedestalDiffRatioTwoTags \
--tagtwo SiPixelGainCalibration_2009runs_hlt \
--tag SiPixelGainCalibration_2009runs_ScaledForVCal_hlt \
--time_type Run \
--iovs '{"start_iov": "'$i'", "end_iov": "'$i'"}' \
--iovstwo '{"start_iov": "'$i'", "end_iov": "'$i'"}' \
--db Prod \
--test;
mv *.png $W_DIR/results_Offline/PedestalsDiffRatio_${i}.png
getPayloadData.py \
--plugin pluginSiPixelGainCalibrationOffline_PayloadInspector \
--plot plot_SiPixelGainCalibOfflineGainComparisonTwoTags \
--tagtwo SiPixelGainCalibration_2009runs_hlt \
--tag SiPixelGainCalibration_2009runs_ScaledForVCal_hlt \
--time_type Run \
--iovs '{"start_iov": "'$i'", "end_iov": "'$i'"}' \
--iovstwo '{"start_iov": "'$i'", "end_iov": "'$i'"}' \
--db Prod \
--test;
mv *.png $W_DIR/results_Offline/GainsComparison_${i}.png
getPayloadData.py \
--plugin pluginSiPixelGainCalibrationOffline_PayloadInspector \
--plot plot_SiPixelGainCalibOfflinePedestalComparisonTwoTags \
--tagtwo SiPixelGainCalibration_2009runs_hlt \
--tag SiPixelGainCalibration_2009runs_ScaledForVCal_hlt \
--time_type Run \
--iovs '{"start_iov": "'$i'", "end_iov": "'$i'"}' \
--iovstwo '{"start_iov": "'$i'", "end_iov": "'$i'"}' \
--db Prod \
--test;
mv *.png $W_DIR/results_Offline/PedestalsComparison_${i}.png
done
|