-
Notifications
You must be signed in to change notification settings - Fork 4.4k
/
Copy pathl1temulator_dqm_sourceclient-live_cfg.py
229 lines (186 loc) · 8 KB
/
l1temulator_dqm_sourceclient-live_cfg.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
# L1 Emulator DQM sequence
#
# authors previous versions - see CVS
#
# V.M. Ghete 2010-10-22 revised version of L1 emulator DQM
import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Era_Run3_cff import Run3
process = cms.Process("L1TEmuDQMlive", Run3)
#----------------------------
# Event Source
#
# for live online DQM in P5
process.load("DQM.Integration.config.inputsource_cfi")
from DQM.Integration.config.inputsource_cfi import options
#
# for testing in lxplus
#process.load("DQM.Integration.config.fileinputsource_cfi")
#from DQM.Integration.config.fileinputsource_cfi import options
#----------------------------
# DQM Environment
#
#
process.load("DQM.Integration.config.environment_cfi")
# for local test
process.dqmEnv.subSystemFolder = 'L1TEMU'
process.dqmSaver.tag = 'L1TEMU'
process.dqmSaver.runNumber = options.runNumber
# process.dqmSaverPB.tag = 'L1TEMU'
# process.dqmSaverPB.runNumber = options.runNumber
#
# no references needed
#
# Condition for P5 cluster
process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
process.GlobalTag.RefreshEachRun = True
# Condition for lxplus: change and possibly customise the GT
#from Configuration.AlCa.GlobalTag import GlobalTag as gtCustomise
#process.GlobalTag = gtCustomise(process.GlobalTag, 'auto:run3_data', '')
#process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
#-------------------------------------
# sequences needed for L1 emulator DQM
#
# standard unpacking sequence
process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
# L1 data - emulator sequences
process.load("DQM.L1TMonitor.L1TEmulatorMonitor_cff")
process.load("DQM.L1TMonitorClient.L1TEMUMonitorClient_cff")
#-------------------------------------
# paths & schedule for L1 emulator DQM
#
# TODO define a L1 trigger L1TriggerRawToDigi in the standard sequence
# to avoid all these remove
process.rawToDigiPath = cms.Path(process.RawToDigi)
#
process.RawToDigi.remove("siPixelDigis")
process.RawToDigi.remove("siStripDigis")
process.RawToDigi.remove("scalersRawToDigi")
process.RawToDigi.remove("castorDigis")
#if ( process.runType.getRunType() == process.runType.pp_run_stage1 or process.runType.getRunType() == process.runType.cosmic_run_stage1):
process.gtDigis.DaqGtFedId = 809
#else:
# process.gtDigis.DaqGtFedId = cms.untracked.int32(813)
# L1HvVal + emulator monitoring path
process.l1HwValEmulatorMonitorPath = cms.Path(process.l1HwValEmulatorMonitor)
if (process.runType.getRunType() == process.runType.pp_run_stage1 or process.runType.getRunType() == process.runType.cosmic_run_stage1):
process.gtDigis.DaqGtFedId = 809
else:
process.gtDigis.DaqGtFedId = 813
# for RCT at P5, read FED vector from OMDS
#process.load("L1TriggerConfig.RCTConfigProducers.l1RCTOmdsFedVectorProducer_cfi")
#process.valRctDigis.getFedsFromOmds = cms.bool(True)
#
process.l1EmulatorMonitorClientPath = cms.Path(process.l1EmulatorMonitorClient)
#
process.l1EmulatorMonitorEndPath = cms.EndPath(process.dqmEnv*process.dqmSaver)#*process.dqmSaverPB)
#
process.valCscTriggerPrimitiveDigis.gangedME1a = False
process.valCsctfTrackDigis.SectorProcessor.gangedME1a = False
#
process.schedule = cms.Schedule(process.rawToDigiPath,
process.l1HwValEmulatorMonitorPath,
#process.l1EmulatorMonitorClientPath,
process.l1EmulatorMonitorEndPath)
#---------------------------------------------
# examples for quick fixes in case of troubles
# please do not modify the commented lines
#
# remove a module from hardware validation
# cff file: L1Trigger.HardwareValidation.L1HardwareValidation_cff
#
process.l1HwValEmulatorMonitorPath.remove(process.l1TdeCSCTF)
#
process.L1HardwareValidation.remove(process.deDt)
process.l1HwValEmulatorMonitorPath.remove(process.l1TdeRCTRun1)
#
# remove a L1 trigger system from the comparator integrated in hardware validation
# cfi file: L1Trigger.HardwareValidation.L1Comparator_cfi
#
# process.l1compare.COMPARE_COLLS = [0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0]
process.l1compare.COMPARE_COLLS = [0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]
process.l1demon.COMPARE_COLLS = [0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]
process.l1demon.HistFolder = 'L1TEMU/Legacy'
process.l1TdeGCT.HistFolder = 'L1TEMU/Legacy/GCTexpert'
process.l1GtHwValidation.DirName = "L1TEMU/Legacy/GTexpert"
#
# remove an expert module for L1 trigger system
# cff file: DQM.L1TMonitor.L1TEmulatorMonitor_cff
#
# process.l1ExpertDataVsEmulator.remove(process.l1GtHwValidation)
#
#process.l1ExpertDataVsEmulator.remove(process.l1TdeCSCTF)
#
# remove a module / sequence from l1EmulatorMonitorClient
# cff file: DQM.L1TMonitorClient.L1TEmulatorMonitorClient_cff
#
# process.l1EmulatorMonitorClient.remove(process.l1EmulatorErrorFlagClient)
#
#
# fast over-mask a system in L1TEMUEventInfoClient:
# if the name of the system is in the list, the system will be masked
# (the default mask value is given in L1Systems VPSet)
#
# names are case sensitive, order is irrelevant
# "ECAL", "HCAL", "RCT", "GCT", "DTTF", "DTTPG", "CSCTF", "CSCTPG", "RPC", "GMT", "GT"
#
# process.l1temuEventInfoClient.DisableL1Systems = cms.vstring("ECAL")
#
#
# fast over-mask an object in L1TEMUEventInfoClient:
# if the name of the object is in the list, the object will be masked
# (the default mask value is given in L1Objects VPSet)
#
# names are case sensitive, order is irrelevant
#
# "Mu", "NoIsoEG", "IsoEG", "CenJet", "ForJet", "TauJet", "ETM", "ETT", "HTT", "HTM",
# "HfBitCounts", "HfRingEtSums", "TechTrig", "GtExternal
#
# process.l1temuEventInfoClient.DisableL1Objects = cms.vstring("ETM")
#
#
# turn on verbosity in L1TEMUEventInfoClient
#
# process.l1EmulatorEventInfoClient.verbose = cms.untracked.bool(True)
print("Running with run type = ", process.runType.getRunType())
process.castorDigis.InputLabel = "rawDataCollector"
process.csctfDigis.producer = "rawDataCollector"
process.dttfDigis.DTTF_FED_Source = "rawDataCollector"
process.ecalDigisCPU.InputLabel = "rawDataCollector"
process.ecalPreshowerDigis.sourceTag = "rawDataCollector"
process.gctDigis.inputLabel = "rawDataCollector"
process.gtDigis.DaqGtInputTag = "rawDataCollector"
process.gtEvmDigis.EvmGtInputTag = "rawDataCollector"
process.hcalDigis.InputLabel = "rawDataCollector"
process.l1compare.FEDsourceEmul = "rawDataCollector"
process.l1compare.FEDsourceData = "rawDataCollector"
process.muonCSCDigis.InputObjects = "rawDataCollector"
process.muonDTDigis.inputLabel = "rawDataCollector"
process.muonRPCDigis.InputLabel = "rawDataCollector"
process.scalersRawToDigi.scalersInputTag = "rawDataCollector"
process.siPixelDigis.InputLabel = "rawDataCollector"
process.siStripDigis.ProductLabel = "rawDataCollector"
#--------------------------------------------------
# Heavy Ion Specific Fed Raw Data Collection Label
#--------------------------------------------------
if (process.runType.getRunType() == process.runType.hi_run):
process.castorDigis.InputLabel = "rawDataRepacker"
process.csctfDigis.producer = "rawDataRepacker"
process.dttfDigis.DTTF_FED_Source = "rawDataRepacker"
process.ecalDigisCPU.InputLabel = "rawDataRepacker"
process.ecalPreshowerDigis.sourceTag = "rawDataRepacker"
process.gctDigis.inputLabel = "rawDataRepacker"
process.gtDigis.DaqGtInputTag = "rawDataRepacker"
process.gtEvmDigis.EvmGtInputTag = "rawDataRepacker"
process.hcalDigis.InputLabel = "rawDataRepacker"
process.l1compare.FEDsourceEmul = "rawDataRepacker"
process.l1compare.FEDsourceData = "rawDataRepacker"
process.muonCSCDigis.InputObjects = "rawDataRepacker"
process.muonDTDigis.inputLabel = "rawDataRepacker"
process.muonRPCDigis.InputLabel = "rawDataRepacker"
process.scalersRawToDigi.scalersInputTag = "rawDataRepacker"
process.siPixelDigis.InputLabel = "rawDataRepacker"
process.siStripDigis.ProductLabel = "rawDataRepacker"
### process customizations included here
from DQM.Integration.config.online_customizations_cfi import *
process = customise(process)