Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-31 23:17:28

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from SimGeneral.TrackingAnalysis.simHitTPAssociation_cfi import *
0004 from Validation.TrackerHits.trackerHitsValidation_cff import *
0005 from Validation.TrackerDigis.trackerDigisValidation_cff import *
0006 from Validation.TrackerRecHits.trackerRecHitsValidation_cff import *
0007 from Validation.TrackingMCTruth.trackingTruthValidation_cfi import *
0008 from Validation.RecoTrack.SiTrackingRecHitsValid_cff import *
0009 from Validation.RecoTrack.TrackValidation_cff import *
0010 from Validation.EcalHits.ecalSimHitsValidationSequence_cff import *
0011 from Validation.EcalDigis.ecalDigisValidationSequence_cff import *
0012 from Validation.EcalRecHits.ecalRecHitsValidationSequence_cff import *
0013 from Validation.EcalClusters.ecalClustersValidationSequence_cff import *
0014 from Validation.HcalHits.SimHitsValidationSequence_cff import *
0015 from Validation.HcalDigis.hcalDigisValidationSequence_cff import *
0016 from Validation.HcalHits.HcalSimHitStudy_cfi import *
0017 from Validation.HcalRecHits.hcalRecHitsValidationSequence_cff import *
0018 from Validation.CaloTowers.calotowersValidationSequence_cff import *
0019 from Validation.MuonHits.muonHitsValidation_cfi import *
0020 from Validation.MuonDTDigis.dtDigiValidation_cfi import *
0021 from Validation.MuonCSCDigis.cscDigiValidation_cfi import *
0022 from Validation.MuonRPCDigis.validationMuonRPCDigis_cfi import *
0023 from Validation.RecoMuon.muonValidation_cff import *
0024 from Validation.MuonIsolation.MuIsoVal_cff import *
0025 from Validation.MuonIdentification.muonIdVal_cff import *
0026 from Validation.Mixing.mixCollectionValidation_cfi import *
0027 from Validation.RecoJets.JetValidation_cff import *
0028 from Validation.RecoMET.METRelValForDQM_cff import *
0029 from Validation.RecoVertex.VertexValidation_cff import *
0030 from Validation.RecoEgamma.egammaValidation_cff import *
0031 from Validation.RecoParticleFlow.PFJetValidation_cff  import *
0032 from Validation.RecoParticleFlow.PFMETValidation_cff import *
0033 from Validation.RecoParticleFlow.PFMuonValidation_cff import *
0034 from Validation.RecoParticleFlow.PFElectronValidation_cff import *
0035 from Validation.RecoParticleFlow.PFJetResValidation_cff import *
0036 from Validation.RecoParticleFlow.PFClusterValidation_cff import *
0037 from Validation.RPCRecHits.rpcRecHitValidation_cfi import *
0038 from Validation.DTRecHits.DTRecHitQuality_cfi import *
0039 from Validation.CSCRecHits.cscRecHitValidation_cfi import *
0040 from Validation.RecoTau.DQMMCValidation_cfi import *
0041 from Validation.L1T.L1Validator_cfi import *
0042 from Validation.SiPixelPhase1ConfigV.SiPixelPhase1OfflineDQM_sourceV_cff import *
0043 from DQMOffline.RecoB.dqmAnalyzer_cff import *
0044 from Validation.RecoB.BDHadronTrackValidation_cff import *
0045 from Validation.Configuration.hgcalSimValid_cff import *
0046 from Validation.Configuration.mtdSimValid_cff import *
0047 from Validation.SiOuterTrackerV.OuterTrackerSourceConfigV_cff import *
0048 from Validation.Configuration.ecalSimValid_cff import *
0049 from Validation.SiTrackerPhase2V.Phase2TrackerValidationFirstStep_cff import *
0050 
0051 # filter/producer "pre-" sequence for globalValidation
0052 globalPrevalidationTracking = cms.Sequence(
0053     simHitTPAssocProducer
0054   * tracksValidation
0055   * vertexValidation
0056 )
0057 globalPrevalidation = cms.Sequence(
0058     globalPrevalidationTracking
0059   * photonPrevalidationSequence
0060   * produceDenoms
0061   * prebTagSequenceMC
0062 )
0063 
0064 # filter/producer "pre-" sequence for validation_preprod
0065 preprodPrevalidation = cms.Sequence(
0066     tracksPreValidation
0067 )
0068 
0069 globalValidation = cms.Sequence(   trackerHitsValidation
0070                                  + trackerDigisValidation
0071                                  + trackerRecHitsValidation
0072                                  + trackingTruthValid
0073                                  + trackingRecHitsValid
0074                                  + ecalSimHitsValidationSequence
0075                                  + ecalDigisValidationSequence
0076                                  + ecalRecHitsValidationSequence
0077                                  + ecalClustersValidationSequence
0078                                  + hcalSimHitsValidationSequence
0079                                  + hcaldigisValidationSequence
0080                                  + hcalSimHitStudy
0081                                  + validSimHit+muondtdigianalyzer
0082                                  + cscDigiValidation
0083                                  + validationMuonRPCDigis
0084                                  + recoMuonValidation
0085                                  + muIsoVal_seq
0086                                  + muonIdValDQMSeq
0087                                  + mixCollectionValidation
0088                                  + JetValidation
0089                                  + METValidation
0090                                  + egammaValidation
0091                                  + pfJetValidationSequence
0092                                  + pfMETValidationSequence
0093                                  + pfElectronValidationSequence
0094                                  + pfJetResValidationSequence
0095                                  + pfMuonValidationSequence
0096                                  + pfClusterValidationSequence
0097                                  + rpcRecHitValidation_step
0098                                  + cscRecHitValidation
0099                                  + dtLocalRecoValidation_no2D
0100                                  + pfTauRunDQMValidation
0101                                  + bTagPlotsMCbcl
0102                                  + L1Validator
0103                                  + bdHadronTrackValidationSeq
0104 )
0105 
0106 
0107 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0108 fastSim.toReplaceWith(globalValidation, globalValidation.copyAndExclude([
0109     # fastsim has no tracker digis and different tracker rechit and simhit structure => skipp
0110     trackerHitsValidation, trackerDigisValidation, trackerRecHitsValidation, trackingRecHitsValid,
0111     # the following depends on crossing frame of ecal simhits, which is a bit hard to implement in the fastsim workflow
0112     # besides: is this cross frame doing something, or is it a relic from the past?
0113     ecalDigisValidationSequence, ecalRecHitsValidationSequence
0114 ]))
0115 
0116 #lite tracking validator to be used in the Validation matrix
0117 #lite validation
0118 globalValidationLiteTracking = cms.Sequence(globalValidation)
0119 
0120 #lite pre-validation
0121 globalPrevalidationLiteTracking = cms.Sequence(globalPrevalidation)
0122 globalPrevalidationLiteTracking.replace(tracksValidation, tracksValidationLite)
0123 
0124 from Validation.Configuration.gemSimValid_cff import *
0125 from Validation.Configuration.me0SimValid_cff import *
0126 
0127 baseCommonPreValidation = cms.Sequence(cms.SequencePlaceholder("mix"))
0128 baseCommonValidation = cms.Sequence()
0129 
0130 # Tracking-only validation
0131 globalPrevalidationTrackingOnly = cms.Sequence(
0132       simHitTPAssocProducer
0133     + tracksValidationTrackingOnly
0134     + vertexValidationTrackingOnly
0135 )
0136 globalValidationTrackingOnly = cms.Sequence()
0137 
0138 # Pixel tracking only validation
0139 globalPrevalidationPixelTrackingOnly = cms.Sequence(
0140       simHitTPAssocProducer
0141     + tracksValidationPixelTrackingOnly
0142     + vertexValidationPixelTrackingOnly
0143 )
0144 globalValidationPixelTrackingOnly = cms.Sequence()
0145 
0146 globalValidationJetMETonly = cms.Sequence(
0147       JetValidation
0148     + METValidation
0149 )
0150 
0151 globalPrevalidationJetMETOnly = cms.Sequence(
0152       jetPreValidSeq
0153     + metPreValidSeq
0154 )
0155 
0156 # ECAL local reconstruction
0157 globalPrevalidationECAL = cms.Sequence()
0158 globalPrevalidationECALOnly = cms.Sequence(
0159       baseCommonPreValidation
0160     + globalPrevalidationECAL
0161 )
0162 
0163 globalValidationECAL = cms.Sequence(
0164       ecalSimHitsValidationSequence
0165     + ecalDigisValidationSequence
0166     + ecalRecHitsValidationSequence
0167     + ecalClustersValidationSequence
0168 )
0169 globalValidationECALOnly = cms.Sequence(
0170       ecalSimHitsValidationSequence
0171     + ecalDigisValidationSequence
0172     + ecalRecHitsValidationSequence
0173     + pfClusterCaloOnlyValidationSequence
0174 )
0175 from Configuration.Eras.Modifier_phase2_ecal_devel_cff import phase2_ecal_devel
0176 phase2_ecal_devel.toReplaceWith(ecalRecHitsValidationSequence, ecalRecHitsValidationSequencePhase2)
0177 
0178 # HCAL local reconstruction
0179 globalPrevalidationHCAL = cms.Sequence()
0180 
0181 globalPrevalidationHCALOnly = cms.Sequence(
0182       baseCommonPreValidation
0183     + globalPrevalidationHCAL
0184 )
0185 
0186 hcalRecHitsOnlyValidationSequence = hcalRecHitsValidationSequence.copyAndExclude([NoiseRatesValidation])
0187 
0188 globalValidationHCAL = cms.Sequence(
0189       hcalSimHitsValidationSequence
0190     + hcaldigisValidationSequence
0191     + hcalSimHitStudy
0192 )
0193 
0194 globalValidationHCALOnly = cms.Sequence(
0195       hcalSimHitsValidationSequence
0196     + hcaldigisValidationSequence
0197     + hcalSimHitStudy
0198     + hcalRecHitsOnlyValidationSequence
0199     + pfClusterCaloOnlyValidationSequence
0200 )
0201 
0202 globalValidationHGCal = cms.Sequence(hgcalValidation)
0203 globalPrevalidationHGCal = cms.Sequence(hgcalAssociators, ticlSimTrackstersTask)
0204 
0205 globalValidationMTD = cms.Sequence()
0206 
0207 globalValidationOuterTracker = cms.Sequence(OuterTrackerSourceV)
0208 
0209 globalPrevalidationMuons = cms.Sequence(
0210       gemSimValid
0211     + me0SimValid
0212     + validSimHit
0213     + muondtdigianalyzer
0214     + cscDigiValidation
0215     + validationMuonRPCDigis
0216     + recoMuonValidation
0217     + rpcRecHitValidation_step
0218     + cscRecHitValidation
0219     + dtLocalRecoValidation_no2D
0220     + muonIdValDQMSeq
0221 )
0222 
0223 globalValidationMuons = cms.Sequence()
0224 
0225 _phase_1_globalValidation = globalValidation.copy()
0226 _phase_1_globalValidation += siPixelPhase1OfflineDQM_sourceV
0227 
0228 _phase_1_globalValidationPixelTrackingOnly =  globalValidationPixelTrackingOnly.copy()
0229 _phase_1_globalValidationPixelTrackingOnly += siPixelPhase1ValidationPixelTrackingOnly_sourceV
0230 
0231 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
0232 (phase1Pixel & ~fastSim).toReplaceWith( globalValidation, _phase_1_globalValidation ) #module siPixelPhase1OfflineDQM_sourceV can't run in FastSim since siPixelClusters of type edmNew::DetSetVector are not produced
0233 (phase1Pixel & ~fastSim).toReplaceWith( globalValidationPixelTrackingOnly, _phase_1_globalValidationPixelTrackingOnly ) #module siPixelPhase1OfflineDQM_sourceV can't run in FastSim since siPixelClusters of type edmNew::DetSetVector are not produced
0234 
0235 _run3_globalValidation = globalValidation.copy()
0236 _run3_globalValidation += gemSimValid
0237 
0238 _phase2_globalValidation = _run3_globalValidation.copy()
0239 _phase2_globalValidation += trackerphase2ValidationSource
0240 _phase2_globalValidation += me0SimValid
0241 
0242 _phase2_ge0_globalValidation = _run3_globalValidation.copy()
0243 _phase2_ge0_globalValidation += trackerphase2ValidationSource
0244 
0245 from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017
0246 run2_GEM_2017.toReplaceWith( globalValidation, _run3_globalValidation )
0247 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
0248 run3_GEM.toReplaceWith( globalValidation, _run3_globalValidation )
0249 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
0250 phase2_muon.toReplaceWith( globalValidation, _phase2_globalValidation )
0251 from Configuration.Eras.Modifier_phase2_GE0_cff import phase2_GE0
0252 phase2_GE0.toReplaceWith( globalValidation, _phase2_ge0_globalValidation )
0253 phase2_GE0.toReplaceWith( globalPrevalidationMuons, globalPrevalidationMuons.copyAndExclude([me0SimValid]) )
0254 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0255 pp_on_AA.toReplaceWith(globalValidation, globalValidation.copyAndExclude([pfTauRunDQMValidation]))
0256 from Configuration.Eras.Modifier_phase2_timing_layer_cff import phase2_timing_layer
0257 phase2_timing_layer.toReplaceWith(globalValidationMTD, cms.Sequence(mtdSimValid+mtdDigiValid+mtdRecoValid))