CMS 3D CMS Logo

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