/
test_all-in-one.sh
executable file
·163 lines (140 loc) · 4.1 KB
/
test_all-in-one.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
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
#! /bin/bash
function die { echo $1: status $2 ; exit $2; }
if test -f "validation_config.ini"; then
rm -f validation_config.ini
fi
## copy into local sqlite file the ideal alignment
echo "COPYING locally Ideal Alignment ..."
conddb --yes --db pro copy TrackerAlignment_Upgrade2017_design_v4 --destdb myfile.db
conddb --yes --db pro copy TrackerAlignmentErrorsExtended_Upgrade2017_design_v0 --destdb myfile.db
echo "GENERATING all-in-one tool configuration ..."
cat <<EOF >> validation_config.ini
[general]
jobmode = interactive
eosdir = Test
[alignment:prompt]
title = prompt
globaltag = 92X_dataRun2_Prompt_v2
color = 1
style = 2001
[alignment:express]
title = express
globaltag = 92X_dataRun2_Express_v2
condition TrackerAlignmentRcd = sqlite_file:myfile.db,TrackerAlignment_Upgrade2017_design_v4
condition TrackerAlignmentErrorExtendedRcd = sqlite_file:myfile.db,TrackerAlignmentErrorsExtended_Upgrade2017_design_v0
color = 2
style = 2402
[offline:validation_MinBias]
multiIOV = false
maxevents = 10
dataset = /MinimumBias/Run2017A-TkAlMinBias-PromptReco-v1/ALCARECO
magneticfield = 3.8
trackcollection = ALCARECOTkAlMinBias
[offline:validation_cosmics]
multiIOV = false
maxevents = 10
dataset = /Cosmics/Run2017A-TkAlCosmics0T-PromptReco-v1/ALCARECO
magneticfield = 3.8
trackcollection = ALCARECOTkAlCosmicsCTF0T
[compare:Tracker]
multiIOV = false
levels = "Tracker","DetUnit"
dbOutput = false
[zmumu:some_zmumu_validation]
multiIOV = false
maxevents = 10
dataset = /DoubleMuon/Run2017A-TkAlZMuMu-PromptReco-v3/ALCARECO
etamaxneg = 2.4
etaminneg = -2.4
etamaxpos = 2.4
etaminpos = -2.4
[primaryvertex:validation_HLTPhysics]
maxevents = 10000
multiIOV = false
dataset = /HLTPhysics/Run2017A-TkAlMinBias-PromptReco-v1/ALCARECO
trackcollection = ALCARECOTkAlMinBias
vertexcollection = offlinePrimaryVertices
isda = True
ismc = True
numberOfBins = 48
runboundary = 1
lumilist = None
ptCut = 3.
etaCut = 2.5
runControl = False
[pvresolution:validation_JetHT]
multiIOV = false
maxevents = 50000
dataset = /JetHT/Run2017B-TkAlMinBias-09Aug2019_UL2017-v1/ALCARECO
trackcollection = ALCARECOTkAlMinBias
runboundary = 1
runControl = False
doTriggerSelection = False
triggerBits = "*"
[split:some_split_validation]
multiIOV = false
maxevents = 10
dataset = /Cosmics/Run2017A-TkAlCosmics0T-PromptReco-v1/ALCARECO
trackcollection = ALCARECOTkAlCosmicsCTF0T
[plots:offline]
DMROptions = plain split
DMRMinimum = 5
legendoptions = meanerror rmserror modules outside
customtitle = #CMS{Preliminary}
customrighttitle = 2017A cosmics and collisions data
legendheader = header
bigtext = true
[plots:split]
outliercut = 0.95
customtitle = #CMS{Preliminary}
customrighttitle = 2017A 3.8T cosmics data
legendheader = header
[plots:zmumu]
customtitle = #CMS{Preliminary}
customrighttitle = 2016G Z#rightarrow#mu#mu data, |#eta|<2.4
legendheader = header
[plots:primaryvertex]
doMaps = true
stdResiduals = true
autoLimits = false
m_dxyPhiMax = 40
m_dzPhiMax = 40
m_dxyEtaMax = 40
m_dzEtaMax = 40
m_dxyPhiNormMax = 0.5
m_dzPhiNormMax = 0.5
m_dxyEtaNormMax = 0.5
m_dzEtaNormMax = 0.5
w_dxyPhiMax = 150
w_dzPhiMax = 150
w_dxyEtaMax = 150
w_dzEtaMax = 1000
w_dxyPhiNormMax = 1.8
w_dzPhiNormMax = 1.8
w_dxyEtaNormMax = 1.8
w_dzEtaNormMax = 1.8
[validation]
offline validation_MinBias - prompt :
offline validation_MinBias - express :
offline validation_cosmics - prompt :
offline validation_cosmics - express :
primaryvertex validation_HLTPhysics - prompt :
primaryvertex validation_HLTPhysics - express :
pvresolution validation_JetHT - prompt :
pvresolution validation_JetHT - express :
compare Tracker - prompt 278819, express 278819 :
zmumu some_zmumu_validation - prompt :
zmumu some_zmumu_validation - express :
split some_split_validation - prompt :
split some_split_validation - express :
EOF
echo " TESTING all-in-one tool ..."
validateAlignments.py -c validation_config.ini -N testingAllInOneTool --dryRun || die "Failure running all-in-one test" $?
printf "\n\n"
echo " TESTING all-in-one tool configuration ..."
FILES="$PWD/testingAllInOneTool/*_cfg.py"
for f in $FILES
do
echo "Processing $f file..."
python3 $FILE/$f || die "Failure compiling test configuration" $?
done