CMS 3D CMS Logo

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