CMS 3D CMS Logo

globalValidation_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
44 
45 # filter/producer "pre-" sequence for globalValidation
46 globalPrevalidationTracking = cms.Sequence(
47  simHitTPAssocProducer
48  * tracksValidation
49  * vertexValidation
50 )
51 globalPrevalidation = cms.Sequence(
52  globalPrevalidationTracking
53  * photonPrevalidationSequence
54  * produceDenoms
55  * prebTagSequenceMC
56 )
57 
58 # filter/producer "pre-" sequence for validation_preprod
59 preprodPrevalidation = cms.Sequence(
60  tracksPreValidation
61 )
62 
63 globalValidation = cms.Sequence( trackerHitsValidation
64  + trackerDigisValidation
65  + trackerRecHitsValidation
66  + trackingTruthValid
67  + trackingRecHitsValid
68  + ecalSimHitsValidationSequence
69  + ecalDigisValidationSequence
70  + ecalRecHitsValidationSequence
71  + ecalClustersValidationSequence
72  + hcalSimHitsValidationSequence
73  + hcaldigisValidationSequence
74  + hcalSimHitStudy
75  + hcalRecHitsValidationSequence
76  + calotowersValidationSequence
77  + validSimHit+muondtdigianalyzer
78  + cscDigiValidation
79  + validationMuonRPCDigis
80  + recoMuonValidation
81  + muIsoVal_seq
82  + muonIdValDQMSeq
83  + mixCollectionValidation
84  + JetValidation
85  + METValidation
86  + egammaValidation
87  + pfJetValidationSequence
88  + pfMETValidationSequence
89  + pfElectronValidationSequence
90  + pfJetResValidationSequence
91  + pfMuonValidationSequence
92  + rpcRecHitValidation_step
93  + dtLocalRecoValidation_no2D
94  + pfTauRunDQMValidation
95  + bTagPlotsMCbcl
96  + L1Validator
97  + bdHadronTrackValidationSeq
98 )
99 
100 
101 from Configuration.Eras.Modifier_fastSim_cff import fastSim
102 if fastSim.isChosen():
103  # fastsim has no tracker digis and different tracker rechit and simhit structure => skipp
104  globalValidation.remove(trackerHitsValidation)
105  globalValidation.remove(trackerDigisValidation)
106  globalValidation.remove(trackerRecHitsValidation)
107  globalValidation.remove(trackingRecHitsValid)
108  # globalValidation.remove(mixCollectionValidation) # can be put back, once mixing is migrated to fastsim era
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  globalValidation.remove(ecalDigisValidationSequence)
112  globalValidation.remove(ecalRecHitsValidationSequence)
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 
137 globalValidationJetMETonly = cms.Sequence(
138  JetValidation
139  + METValidation
140 )
141 
142 globalPrevalidationJetMETOnly = cms.Sequence(
143  jetPreValidSeq
144  +metPreValidSeq
145 )
146 
147 globalPrevalidationHCAL = cms.Sequence()
148 
149 globalValidationHCAL = cms.Sequence(
150  hcalSimHitsValidationSequence
151  + hcaldigisValidationSequence
152  + hcalSimHitStudy
153  + hcalRecHitsValidationSequence
154  + calotowersValidationSequence
155 )
156 
157 globalValidationHGCal = cms.Sequence(hgcalValidation)
158 
159 globalPrevalidationMuons = cms.Sequence(
160  gemSimValid
161  + me0SimValid
162  + validSimHit
163  + muondtdigianalyzer
164  + cscDigiValidation
165  + validationMuonRPCDigis
166  + recoMuonValidation
167  + rpcRecHitValidation_step
168  + dtLocalRecoValidation_no2D
169  + muonIdValDQMSeq
170 )
171 
172 globalValidationMuons = cms.Sequence()
173 
174 _phase_1_globalValidation = globalValidation.copy()
175 _phase_1_globalValidation += siPixelPhase1OfflineDQM_sourceV
176 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
177 phase1Pixel.toReplaceWith( globalValidation, _phase_1_globalValidation )
178 
179 _run3_globalValidation = globalValidation.copy()
180 _run3_globalValidation += gemSimValid
181 
182 _phase2_globalValidation = _run3_globalValidation.copy()
183 _phase2_globalValidation += me0SimValid
184 
185 
186 from Configuration.Eras.Modifier_run2_GEM_2017_MCTest_cff import run2_GEM_2017_MCTest
187 run2_GEM_2017_MCTest.toReplaceWith( globalValidation, _run3_globalValidation )
188 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
189 run3_GEM.toReplaceWith( globalValidation, _run3_globalValidation )
190 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
191 phase2_muon.toReplaceWith( globalValidation, _phase2_globalValidation )
Expects test.root in current directory.