CMS 3D CMS Logo

globalValidation_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
49 
50 # filter/producer "pre-" sequence for globalValidation
51 globalPrevalidationTracking = cms.Sequence(
52  simHitTPAssocProducer
53  * tracksValidation
54  * vertexValidation
55 )
56 globalPrevalidation = cms.Sequence(
57  globalPrevalidationTracking
58  * photonPrevalidationSequence
59  * produceDenoms
60  * prebTagSequenceMC
61 )
62 
63 # filter/producer "pre-" sequence for validation_preprod
64 preprodPrevalidation = cms.Sequence(
65  tracksPreValidation
66 )
67 
68 globalValidation = cms.Sequence( trackerHitsValidation
69  + trackerDigisValidation
70  + trackerRecHitsValidation
71  + trackingTruthValid
72  + trackingRecHitsValid
73  + ecalSimHitsValidationSequence
74  + ecalDigisValidationSequence
75  + ecalRecHitsValidationSequence
76  + ecalClustersValidationSequence
77  + hcalSimHitsValidationSequence
78  + hcaldigisValidationSequence
79  + hcalSimHitStudy
80  + validSimHit+muondtdigianalyzer
81  + cscDigiValidation
82  + validationMuonRPCDigis
83  + recoMuonValidation
84  + muIsoVal_seq
85  + muonIdValDQMSeq
86  + mixCollectionValidation
87  + JetValidation
88  + METValidation
89  + egammaValidation
90  + pfJetValidationSequence
91  + pfMETValidationSequence
92  + pfElectronValidationSequence
93  + pfJetResValidationSequence
94  + pfMuonValidationSequence
95  + pfClusterValidationSequence
96  + rpcRecHitValidation_step
97  + dtLocalRecoValidation_no2D
98  + pfTauRunDQMValidation
99  + bTagPlotsMCbcl
100  + L1Validator
101  + bdHadronTrackValidationSeq
102 )
103 
104 
105 from Configuration.Eras.Modifier_fastSim_cff import fastSim
106 fastSim.toReplaceWith(globalValidation, globalValidation.copyAndExclude([
107  # fastsim has no tracker digis and different tracker rechit and simhit structure => skipp
108  trackerHitsValidation, trackerDigisValidation, trackerRecHitsValidation, trackingRecHitsValid,
109  # the following depends on crossing frame of ecal simhits, which is a bit hard to implement in the fastsim workflow
110  # besides: is this cross frame doing something, or is it a relic from the past?
111  ecalDigisValidationSequence, ecalRecHitsValidationSequence
112 ]))
113 
114 #lite tracking validator to be used in the Validation matrix
115 #lite validation
116 globalValidationLiteTracking = cms.Sequence(globalValidation)
117 
118 #lite pre-validation
119 globalPrevalidationLiteTracking = cms.Sequence(globalPrevalidation)
120 globalPrevalidationLiteTracking.replace(tracksValidation, tracksValidationLite)
121 
124 
125 baseCommonPreValidation = cms.Sequence(cms.SequencePlaceholder("mix"))
126 baseCommonValidation = cms.Sequence()
127 
128 # Tracking-only validation
129 globalPrevalidationTrackingOnly = cms.Sequence(
130  simHitTPAssocProducer
131  + tracksValidationTrackingOnly
132  + vertexValidationTrackingOnly
133 )
134 globalValidationTrackingOnly = cms.Sequence()
135 
136 # Pixel tracking only validation
137 globalPrevalidationPixelTrackingOnly = cms.Sequence(
138  simHitTPAssocProducer
139  + tracksValidationPixelTrackingOnly
140  + vertexValidationPixelTrackingOnly
141 )
142 globalValidationPixelTrackingOnly = cms.Sequence()
143 
144 globalValidationJetMETonly = cms.Sequence(
145  JetValidation
146  + METValidation
147 )
148 
149 globalPrevalidationJetMETOnly = cms.Sequence(
150  jetPreValidSeq
151  + metPreValidSeq
152 )
153 
154 # ECAL local reconstruction
155 globalPrevalidationECAL = cms.Sequence()
156 globalPrevalidationECALOnly = cms.Sequence(
157  baseCommonPreValidation
158  + globalPrevalidationECAL
159 )
160 
161 globalValidationECAL = cms.Sequence(
162  ecalSimHitsValidationSequence
163  + ecalDigisValidationSequence
164  + ecalRecHitsValidationSequence
165  + ecalClustersValidationSequence
166 )
167 globalValidationECALOnly = cms.Sequence(
168  ecalSimHitsValidationSequence
169  + ecalDigisValidationSequence
170  + ecalRecHitsValidationSequence
171  + pfClusterCaloOnlyValidationSequence
172 )
173 
174 # HCAL local reconstruction
175 globalPrevalidationHCAL = cms.Sequence()
176 
177 globalPrevalidationHCALOnly = cms.Sequence(
178  baseCommonPreValidation
179  + globalPrevalidationHCAL
180 )
181 
182 hcalRecHitsOnlyValidationSequence = hcalRecHitsValidationSequence.copyAndExclude([NoiseRatesValidation])
183 
184 globalValidationHCAL = cms.Sequence(
185  hcalSimHitsValidationSequence
186  + hcaldigisValidationSequence
187  + hcalSimHitStudy
188 )
189 
190 globalValidationHCALOnly = cms.Sequence(
191  hcalSimHitsValidationSequence
192  + hcaldigisValidationSequence
193  + hcalSimHitStudy
194  + hcalRecHitsOnlyValidationSequence
195  + pfClusterCaloOnlyValidationSequence
196 )
197 
198 globalValidationHGCal = cms.Sequence(hgcalValidation)
199 globalPrevalidationHGCal = cms.Sequence(hgcalAssociators)
200 
201 globalValidationMTD = cms.Sequence()
202 
203 globalValidationOuterTracker = cms.Sequence(OuterTrackerSourceV)
204 
205 globalPrevalidationMuons = cms.Sequence(
206  gemSimValid
207  + me0SimValid
208  + validSimHit
209  + muondtdigianalyzer
210  + cscDigiValidation
211  + validationMuonRPCDigis
212  + recoMuonValidation
213  + rpcRecHitValidation_step
214  + dtLocalRecoValidation_no2D
215  + muonIdValDQMSeq
216 )
217 
218 globalValidationMuons = cms.Sequence()
219 
220 _phase_1_globalValidation = globalValidation.copy()
221 _phase_1_globalValidation += siPixelPhase1OfflineDQM_sourceV
222 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
223 (phase1Pixel & ~fastSim).toReplaceWith( globalValidation, _phase_1_globalValidation ) #module siPixelPhase1OfflineDQM_sourceV can't run in FastSim since siPixelClusters of type edmNew::DetSetVector are not produced
224 
225 _run3_globalValidation = globalValidation.copy()
226 _run3_globalValidation += gemSimValid
227 
228 _phase2_globalValidation = _run3_globalValidation.copy()
229 _phase2_globalValidation += trackerphase2ValidationSource
230 _phase2_globalValidation += me0SimValid
231 
232 _phase2_ge0_globalValidation = _run3_globalValidation.copy()
233 _phase2_ge0_globalValidation += trackerphase2ValidationSource
234 
235 from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017
236 run2_GEM_2017.toReplaceWith( globalValidation, _run3_globalValidation )
237 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
238 run3_GEM.toReplaceWith( globalValidation, _run3_globalValidation )
239 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
240 phase2_muon.toReplaceWith( globalValidation, _phase2_globalValidation )
241 from Configuration.Eras.Modifier_phase2_GE0_cff import phase2_GE0
242 phase2_GE0.toReplaceWith( globalValidation, _phase2_ge0_globalValidation )
243 phase2_GE0.toReplaceWith( globalPrevalidationMuons, globalPrevalidationMuons.copyAndExclude([me0SimValid]) )
244 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
245 pp_on_AA.toReplaceWith(globalValidation, globalValidation.copyAndExclude([pfTauRunDQMValidation]))
246 from Configuration.Eras.Modifier_phase2_timing_layer_cff import phase2_timing_layer
247 phase2_timing_layer.toReplaceWith(globalValidationMTD, cms.Sequence(mtdSimValid+mtdDigiValid+mtdRecoValid))
SiTrackingRecHitsValid_cff
ecalSimValid_cff
hcalRecHitsValidationSequence_cff
validationMuonRPCDigis_cfi
DQMMCValidation_cfi
PFJetValidation_cff
me0SimValid_cff
mixCollectionValidation_cfi
PFMETValidation_cff
L1Validator_cfi
BDHadronTrackValidation_cff
ecalRecHitsValidationSequence_cff
mtdSimValid_cff
trackerHitsValidation_cff
dqmAnalyzer_cff
OuterTrackerSourceConfigV_cff
PFJetResValidation_cff
SiPixelPhase1OfflineDQM_sourceV_cff
Phase2TrackerValidationFirstStep_cff
SimHitsValidationSequence_cff
gemSimValid_cff
PFClusterValidation_cff
hgcalSimValid_cff
cscDigiValidation_cfi
JetValidation_cff
egammaValidation_cff
rpcRecHitValidation_cfi
ecalDigisValidationSequence_cff
muonValidation_cff
hcalDigisValidationSequence_cff
trackingTruthValidation_cfi
calotowersValidationSequence_cff
simHitTPAssociation_cfi
trackerDigisValidation_cff
muonHitsValidation_cfi
METRelValForDQM_cff
TrackValidation_cff
VertexValidation_cff
DTRecHitQuality_cfi
dtDigiValidation_cfi
HcalSimHitStudy_cfi
muonIdVal_cff
PFMuonValidation_cff
ecalSimHitsValidationSequence_cff
ecalClustersValidationSequence_cff
trackerRecHitsValidation_cff
PFElectronValidation_cff
MuIsoVal_cff