CMS 3D CMS Logo

globalValidation_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
46 
47 
48 # filter/producer "pre-" sequence for globalValidation
49 globalPrevalidationTracking = cms.Sequence(
50  simHitTPAssocProducer
51  * tracksValidation
52  * vertexValidation
53 )
54 globalPrevalidation = cms.Sequence(
55  globalPrevalidationTracking
56  * photonPrevalidationSequence
57  * produceDenoms
58  * prebTagSequenceMC
59 )
60 
61 # filter/producer "pre-" sequence for validation_preprod
62 preprodPrevalidation = cms.Sequence(
63  tracksPreValidation
64 )
65 
66 globalValidation = cms.Sequence( trackerHitsValidation
67  + trackerDigisValidation
68  + trackerRecHitsValidation
69  + trackingTruthValid
70  + trackingRecHitsValid
71  + ecalSimHitsValidationSequence
72  + ecalDigisValidationSequence
73  + ecalRecHitsValidationSequence
74  + ecalClustersValidationSequence
75  + hcalSimHitsValidationSequence
76  + hcaldigisValidationSequence
77  + hcalSimHitStudy
78  + hcalRecHitsValidationSequence
79  + calotowersValidationSequence
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  + rpcRecHitValidation_step
96  + dtLocalRecoValidation_no2D
97  + pfTauRunDQMValidation
98  + bTagPlotsMCbcl
99  + L1Validator
100  + bdHadronTrackValidationSeq
101 )
102 
103 
104 from Configuration.Eras.Modifier_fastSim_cff import fastSim
105 fastSim.toReplaceWith(globalValidation, globalValidation.copyAndExclude([
106  # fastsim has no tracker digis and different tracker rechit and simhit structure => skipp
107  trackerHitsValidation, trackerDigisValidation, trackerRecHitsValidation, trackingRecHitsValid,
108  # the following depends on crossing frame of ecal simhits, which is a bit hard to implement in the fastsim workflow
109  # besides: is this cross frame doing something, or is it a relic from the past?
110  ecalDigisValidationSequence, ecalRecHitsValidationSequence
111 ]))
112 
113 #lite tracking validator to be used in the Validation matrix
114 #lite validation
115 globalValidationLiteTracking = cms.Sequence(globalValidation)
116 
117 #lite pre-validation
118 globalPrevalidationLiteTracking = cms.Sequence(globalPrevalidation)
119 globalPrevalidationLiteTracking.replace(tracksValidation, tracksValidationLite)
120 
123 
124 baseCommonPreValidation = cms.Sequence(cms.SequencePlaceholder("mix"))
125 baseCommonValidation = cms.Sequence()
126 
127 # Tracking-only validation
128 globalPrevalidationTrackingOnly = cms.Sequence(
129  simHitTPAssocProducer
130  + tracksValidationTrackingOnly
131  + vertexValidationTrackingOnly
132 )
133 globalValidationTrackingOnly = cms.Sequence()
134 # Pixel tracking only validation
135 globalPrevalidationPixelTrackingOnly = cms.Sequence(
136  simHitTPAssocProducer
137  + tracksValidationPixelTrackingOnly
138  + vertexValidationPixelTrackingOnly
139 )
140 globalValidationPixelTrackingOnly = cms.Sequence()
141 
142 globalValidationJetMETonly = cms.Sequence(
143  JetValidation
144  + METValidation
145 )
146 
147 globalPrevalidationJetMETOnly = cms.Sequence(
148  jetPreValidSeq
149  +metPreValidSeq
150 )
151 
152 globalPrevalidationHCAL = cms.Sequence()
153 
154 globalValidationHCAL = cms.Sequence(
155  hcalSimHitsValidationSequence
156  + hcaldigisValidationSequence
157  + hcalSimHitStudy
158  + hcalRecHitsValidationSequence
159  + calotowersValidationSequence
160 )
161 
162 globalValidationHGCal = cms.Sequence(hgcalValidation)
163 
164 globalValidationMTD = cms.Sequence()
165 
166 globalValidationOuterTracker = cms.Sequence(OuterTrackerSourceV)
167 
168 globalPrevalidationMuons = cms.Sequence(
169  gemSimValid
170  + me0SimValid
171  + validSimHit
172  + muondtdigianalyzer
173  + cscDigiValidation
174  + validationMuonRPCDigis
175  + recoMuonValidation
176  + rpcRecHitValidation_step
177  + dtLocalRecoValidation_no2D
178  + muonIdValDQMSeq
179 )
180 
181 globalValidationMuons = cms.Sequence()
182 
183 _phase_1_globalValidation = globalValidation.copy()
184 _phase_1_globalValidation += siPixelPhase1OfflineDQM_sourceV
185 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
186 (phase1Pixel & ~fastSim).toReplaceWith( globalValidation, _phase_1_globalValidation ) #module siPixelPhase1OfflineDQM_sourceV can't run in FastSim since siPixelClusters of type edmNew::DetSetVector are not produced
187 
188 _run3_globalValidation = globalValidation.copy()
189 _run3_globalValidation += gemSimValid
190 
191 _phase2_globalValidation = _run3_globalValidation.copy()
192 _phase2_globalValidation += me0SimValid
193 
194 
195 from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017
196 run2_GEM_2017.toReplaceWith( globalValidation, _run3_globalValidation )
197 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
198 run3_GEM.toReplaceWith( globalValidation, _run3_globalValidation )
199 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
200 phase2_muon.toReplaceWith( globalValidation, _phase2_globalValidation )
201 from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
202 pp_on_AA_2018.toReplaceWith(globalValidation, globalValidation.copyAndExclude([pfTauRunDQMValidation]))
203 from Configuration.Eras.Modifier_phase2_timing_layer_bar_cff import phase2_timing_layer_bar
204 from Configuration.Eras.Modifier_phase2_timing_layer_tile_cff import phase2_timing_layer_tile
205 (phase2_timing_layer_tile | phase2_timing_layer_bar).toReplaceWith(globalValidationMTD, cms.Sequence(mtdSimValid+mtdDigiValid+mtdRecoValid))
Expects test.root in current directory.