-
Notifications
You must be signed in to change notification settings - Fork 4.3k
/
autoDQM.py
240 lines (182 loc) · 9.7 KB
/
autoDQM.py
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
autoDQM = { 'DQMMessageLogger': ['DQMMessageLoggerSeq',
'PostDQMOffline',
'DQMMessageLoggerClientSeq'],
'commonReduced': ['@dcs+@DQMMessageLogger+@hlt+@beam+@castor+@physics',
'PostDQMOffline',
'@dcs+@DQMMessageLogger+@hlt+@beam+@fed+dqmFastTimerServiceClient'],
'common': ['@dcs+@DQMMessageLogger+@stripCommon+@pixel+@tracking+@hlt+@beam+@castor+@physics',
'PostDQMOffline',
'@dcs+@DQMMessageLogger+@stripCommon+@pixel+@tracking+@hlt+@beam+@fed+dqmFastTimerServiceClient'],
'commonFakeHLT': ['@dcs+@DQMMessageLogger+@stripCommon+@pixel+@tracking+@beam+@castor+@physics',
'PostDQMOffline',
'@dcs+@DQMMessageLoggerClient+@stripCommon+@pixel+@tracking+@beam+@fed+dqmFastTimerServiceClient'],
'commonSiStripZeroBias': ['@dcs+@DQMMessageLogger+@stripZeroBias+@pixelOnlyDQM+@trackingZeroBias+@L1TMon+@hlt+@beam+@castor+@physics',
'PostDQMOffline',
'@dcs+@DQMMessageLogger+@stripZeroBias+@pixelOnlyDQM+@trackingZeroBias+@L1TMon+@hlt+@beam+@fed+dqmFastTimerServiceClient'],
'commonSiStripZeroBiasFakeHLT': ['@dcs+@DQMMessageLogger+@stripZeroBias+@pixelOnlyDQM+@trackingZeroBias+@L1TMon+@beam+@castor+@physics',
'PostDQMOffline',
'@dcs+@DQMMessageLogger+@stripZeroBias+@pixelOnlyDQM+@trackingZeroBias+@L1TMon+@beam+@fed+dqmFastTimerServiceClient'],
'trackingOnlyDQM': ['DQMOfflineTracking',
'PostDQMOffline',
'DQMHarvestTracking'],
'pixelTrackingOnlyDQM': ['DQMOfflinePixelTracking',
'PostDQMOffline',
'DQMHarvestPixelTracking'],
'outerTracker': ['DQMOuterTracker',
'PostDQMOffline',
'DQMHarvestOuterTracker'],
'trackerPhase2': ['DQMOfflineTrackerPhase2',
'PostDQMOffline',
'DQMHarvestTrackerPhase2'],
'dcs': ['DQMOfflineDCS',
'PostDQMOffline',
'DQMNone'],
'strip': ['DQMOfflineTrackerStrip',
'PostDQMOffline',
'DQMHarvestTrackerStrip+DQMCertTrackerStrip'],
'stripCommon': ['DQMOfflineTrackerStripCommon',
'PostDQMOffline',
'DQMHarvestTrackerStrip+DQMCertTrackerStrip'],
'stripZeroBias': ['DQMOfflineTrackerStripMinBias',
'PostDQMOffline',
'DQMHarvestTrackerStrip+DQMCertTrackerStrip'],
'pixel': ['DQMOfflineTrackerPixel',
'PostDQMOffline',
'DQMHarvestTrackerPixel+DQMCertTrackerPixel'],
'pixelOnlyDQM': ['DQMOfflineTrackerPixel',
'PostDQMOffline',
'DQMHarvestTrackerPixel'],
'castor': ['DQMOfflineCASTOR',
'PostDQMOffline',
'DQMNone'],
'tracking': ['DQMOfflineTracking',
'PostDQMOffline',
'DQMHarvestTracking+DQMCertTracking'],
'trackingZeroBias': ['DQMOfflineTrackingMinBias',
'PostDQMOffline',
'DQMHarvestTrackingZeroBias+DQMCertTracking'],
'hlt': ['DQMOfflineTrigger',
'PostDQMOffline',
'DQMHarvestTrigger+DQMCertTrigger'],
'fed': ['DQMNone',
'PostDQMOffline',
'DQMHarvestFED'],
'tau': ['DQMOfflineTAU',
'PostDQMOffline',
'DQMHarvestTAU'],
'beam': ['DQMOfflineBeam',
'PostDQMOffline',
'DQMHarvestBeam'],
'lumi': ['DQMOfflineLumi',
'PostDQMOffline',
'DQMNone'],
'muon': ['DQMOfflineMuon',
'PostDQMOffline',
'DQMHarvestMuon+DQMCertMuon'],
'hcal': ['DQMOfflineHcal',
'PostDQMOffline',
'DQMHarvestHcal'],
'hcal2': ['DQMOfflineHcal2',
'PostDQMOffline',
'DQMHarvestHcal2'],
'hcalOnly': ['DQMOfflineHcalOnly',
'PostDQMOffline',
'DQMHarvestHcal'],
'hcal2Only': ['DQMOfflineHcal2Only',
'PostDQMOffline',
'DQMHarvestHcal2'],
'jetmet': ['DQMOfflineJetMET',
'PostDQMOffline',
'DQMHarvestJetMET+DQMCertJetMET'],
'ecal': ['DQMOfflineEcal',
'PostDQMOffline',
'DQMHarvestEcal+DQMCertEcal'],
'ecalOnly': ['DQMOfflineEcalOnly',
'PostDQMOffline',
'DQMHarvestEcal+DQMCertEcal'],
'egamma': ['DQMOfflineEGamma',
'PostDQMOffline',
'DQMHarvestEGamma+DQMCertEGamma'],
'ctpps': ['DQMOfflineCTPPS',
'PostDQMOffline',
'DQMHarvestCTPPS'],
'btag': ['DQMOfflineBTag',
'PostDQMOffline',
'DQMHarvestBTag'],
'physics': ['DQMOfflinePhysics',
'PostDQMOffline',
'DQMNone'],
'L1TMon': ['DQMOfflineL1T',
'PostDQMOffline',
'DQMHarvestL1T'],
'L1TEgamma': ['DQMOfflineL1TEgamma',
'PostDQMOffline',
'DQMHarvestL1TEgamma'],
'L1TMuon': ['DQMOfflineL1TMuon',
'PostDQMOffline',
'DQMHarvestL1TMuon'],
'HLTMon': ['HLTMonitoring',
'PostDQMOffline',
'HLTMonitoringClient'],
'HLTMonPA': ['HLTMonitoringPA',
'PostDQMOffline',
'HLTMonitoringClientPA'],
'express': ['@commonSiStripZeroBias+@muon+@hcal+@jetmet+@ecal',
'PostDQMOffline',
'@commonSiStripZeroBias+@muon+@hcal+@jetmet+@ecal'],
'allForPrompt': ['@common+@muon+@L1TMon+@hcal+@jetmet+@ecal+@egamma',
'PostDQMOffline',
'@common+@muon+@L1TMon+@hcal+@jetmet+@ecal+@egamma'],
'rerecoCommon': ['@common+@muon+@hcal+@jetmet+@ecal+@egamma+@L1TMuon+@L1TEgamma+@ctpps',
'PostDQMOffline',
'@common+@muon+@hcal+@jetmet+@ecal+@egamma+@L1TMuon+@L1TEgamma+@ctpps'],
'rerecoSingleMuon': ['@common+@muon+@hcal+@jetmet+@ecal+@egamma+@lumi+@L1TMuon+@L1TEgamma+@ctpps',
'PostDQMOffline',
'@common+@muon+@hcal+@jetmet+@ecal+@egamma+@lumi+@L1TMuon+@L1TEgamma+@ctpps'],
'rerecoZeroBias' : ['@commonSiStripZeroBias+@muon+@hcal+@hcal2+@jetmet+@ecal+@egamma+@L1TMuon+@L1TEgamma+@ctpps',
'PostDQMOffline',
'@commonSiStripZeroBias+@muon+@hcal+@hcal2+@jetmet+@ecal+@egamma+@L1TMuon+@L1TEgamma+@ctpps'],
'rerecoZeroBiasFakeHLT' : ['@commonSiStripZeroBiasFakeHLT+@muon+@hcal+@hcal2+@jetmet+@ecal+@egamma+@L1TMuon+@L1TEgamma+@ctpps',
'PostDQMOffline',
'@commonSiStripZeroBiasFakeHLT+@muon+@hcal+@hcal2+@jetmet+@ecal+@egamma+@L1TMuon+@L1TEgamma+@ctpps'],
'miniAODDQM': ['DQMOfflineMiniAOD',
'PostDQMOfflineMiniAOD',
'DQMHarvestMiniAOD'],
'nanoAODDQM': ['DQMOfflineNanoAOD',
'PostDQMOffline',
'DQMHarvestNanoAOD'],
'nanogenDQM': ['DQMOfflineNanoGen',
'PostDQMOffline',
'DQMHarvestNanoAOD'],
'pfDQM': ['DQMOfflinePF+DQMOfflinePFExtended',
'PostDQMOffline',
'DQMHarvestPF'],
# 'standardDQM': ['@dcs+@DQMMessageLogger+@ecal+@hcal+@hcal2+@strip+@pixel+@castor+@ctpps+@muon+@tracking+@jetmet+@egamma+@L1TMon+@hlt+@btag+@beam+@physics+@HLTMon',
'standardDQM': ['DQMOffline',
'PostDQMOffline',
'dqmHarvesting'],
'standardDQMFS': ['DQMOfflineFS',
'PostDQMOffline',
'dqmHarvesting'],
'ExtraHLT': ['DQMOfflineExtraHLT',
'PostDQMOffline',
'dqmHarvestingExtraHLT'],
# 'standardDQMFakeHLT': ['@dcs+@DQMMessageLogger+@ecal+@hcal+@hcal2+@strip+@pixel+@castor+@ctpps+@muon+@tracking+@jetmet+@egamma+@L1TMon+@btag+@beam+@physics',
'standardDQMFakeHLT': ['DQMOfflineFakeHLT',
'PostDQMOffline',
'dqmHarvestingFakeHLT'],
'standardDQMHIFakeHLT': ['DQMOfflineHeavyIonsFakeHLT',
'PostDQMOfflineHI',
'dqmHarvestingFakeHLT'],
'liteDQMHI': ['liteDQMOfflineHeavyIons',
'PostDQMOfflineHI',
'dqmHarvesting'],
'none': ['DQMNone',
'PostDQMOffline',
'DQMNone'],
}
_phase2_allowed = ['trackingOnlyDQM','outerTracker', 'trackerPhase2', 'muon','hcal','hcal2','egamma']
autoDQM['phase2'] = ['','','']
for i in [0,2]:
autoDQM['phase2'][i] = '+'.join([autoDQM[m][i] for m in _phase2_allowed])
autoDQM['phase2'][1] = 'PostDQMOffline'