Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:31:57

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.Configuration.ecalSimValid_cff import *
0048 from Validation.SiTrackerPhase2V.Phase2TrackerValidationFirstStep_cff import *
0049 
0050 # filter/producer "pre-" sequence for globalValidation
0051 globalPrevalidationTracking = cms.Sequence(
0052     simHitTPAssocProducer
0053   * tracksValidation
0054   * vertexValidation
0055 )
0056 globalPrevalidation = cms.Sequence(
0057     globalPrevalidationTracking
0058   * photonPrevalidationSequence
0059   #* produceDenoms
0060   * prebTagSequenceMC
0061 )
0062 
0063 # filter/producer "pre-" sequence for validation_preprod
0064 preprodPrevalidation = cms.Sequence(
0065     tracksPreValidation
0066 )
0067 
0068 globalValidation = cms.Sequence(   trackerHitsValidation
0069                                  + trackerDigisValidation
0070                                  + trackerRecHitsValidation
0071                                  + trackingTruthValid
0072                                  + trackingRecHitsValid
0073                                  + ecalSimHitsValidationSequence
0074                                  + ecalDigisValidationSequence
0075                                  + ecalRecHitsValidationSequence
0076                                  + ecalClustersValidationSequence
0077                                  + hcalSimHitsValidationSequence
0078                                  + hcaldigisValidationSequence
0079                                  + hcalSimHitStudy
0080                                  + validSimHit+muondtdigianalyzer
0081                                  + cscDigiValidation
0082                                  + validationMuonRPCDigis
0083                                  + recoMuonValidation
0084                                  + muIsoVal_seq
0085                                  + muonIdValDQMSeq
0086                                  + mixCollectionValidation
0087                                  + JetValidation
0088                                  + METValidation
0089                                  + egammaValidation
0090                                  + pfJetValidationSequence
0091                                  + pfMETValidationSequence
0092                                  + pfElectronValidationSequence
0093                                  + pfJetResValidationSequence
0094                                  + pfMuonValidationSequence
0095                                  + pfClusterValidationSequence
0096                                  + rpcRecHitValidation_step
0097                                  + cscRecHitValidation
0098                                  + dtLocalRecoValidation_no2D
0099                                  + pfTauRunDQMValidation
0100                                  + bTagPlotsMCbcl
0101                                  + L1Validator
0102                                  + bdHadronTrackValidationSeq
0103 )
0104 
0105 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0106 fastSim.toReplaceWith(globalValidation, globalValidation.copyAndExclude([
0107     # fastsim has no tracker digis and different tracker rechit and simhit structure => skipp
0108     trackerHitsValidation, trackerDigisValidation, trackerRecHitsValidation, trackingRecHitsValid,
0109     # the following depends on crossing frame of ecal simhits, which is a bit hard to implement in the fastsim workflow
0110     # besides: is this cross frame doing something, or is it a relic from the past?
0111     ecalDigisValidationSequence, ecalRecHitsValidationSequence
0112 ]))
0113 
0114 #lite tracking validator to be used in the Validation matrix
0115 #lite validation
0116 globalValidationLiteTracking = cms.Sequence(globalValidation)
0117 
0118 #lite pre-validation
0119 globalPrevalidationLiteTracking = cms.Sequence(globalPrevalidation)
0120 globalPrevalidationLiteTracking.replace(tracksValidation, tracksValidationLite)
0121 
0122 from Validation.Configuration.gemSimValid_cff import *
0123 from Validation.Configuration.me0SimValid_cff import *
0124 
0125 baseCommonPreValidation = cms.Sequence(cms.SequencePlaceholder("mix"))
0126 baseCommonValidation = cms.Sequence()
0127 
0128 # Tracking-only validation
0129 globalPrevalidationTrackingOnly = cms.Sequence(
0130       simHitTPAssocProducer
0131     + tracksValidationTrackingOnly
0132     + vertexValidationTrackingOnly
0133 )
0134 globalValidationTrackingOnly = cms.Sequence()
0135 
0136 # Pixel tracking only validation
0137 globalPrevalidationPixelTrackingOnly = cms.Sequence(
0138       simHitTPAssocProducer
0139     + tracksValidationPixelTrackingOnly
0140     + vertexValidationPixelTrackingOnly
0141 )
0142 globalValidationPixelTrackingOnly = cms.Sequence()
0143 
0144 globalValidationJetMETonly = cms.Sequence(
0145       JetValidation
0146     + METValidation
0147 )
0148 
0149 globalPrevalidationJetMETOnly = cms.Sequence(
0150       jetPreValidSeq
0151     + metPreValidSeq
0152 )
0153 
0154 # ECAL local reconstruction
0155 globalPrevalidationECAL = cms.Sequence()
0156 globalPrevalidationECALOnly = cms.Sequence(
0157       baseCommonPreValidation
0158     + globalPrevalidationECAL
0159 )
0160 
0161 globalValidationECAL = cms.Sequence(
0162       ecalSimHitsValidationSequence
0163     + ecalDigisValidationSequence
0164     + ecalRecHitsValidationSequence
0165     + ecalClustersValidationSequence
0166 )
0167 globalValidationECALOnly = cms.Sequence(
0168       ecalSimHitsValidationSequence
0169     + ecalDigisValidationSequence
0170     + ecalRecHitsValidationSequence
0171     + pfClusterCaloOnlyValidationSequence
0172 )
0173 from Configuration.Eras.Modifier_phase2_ecal_devel_cff import phase2_ecal_devel
0174 phase2_ecal_devel.toReplaceWith(ecalRecHitsValidationSequence, ecalRecHitsValidationSequencePhase2)
0175 
0176 # HCAL local reconstruction
0177 globalPrevalidationHCAL = cms.Sequence()
0178 
0179 globalPrevalidationHCALOnly = cms.Sequence(
0180       baseCommonPreValidation
0181     + globalPrevalidationHCAL
0182 )
0183 
0184 hcalRecHitsOnlyValidationSequence = hcalRecHitsValidationSequence.copyAndExclude([NoiseRatesValidation])
0185 
0186 globalValidationHCAL = cms.Sequence(
0187       hcalSimHitsValidationSequence
0188     + hcaldigisValidationSequence
0189     + hcalSimHitStudy
0190 )
0191 
0192 globalValidationHCALOnly = cms.Sequence(
0193       hcalSimHitsValidationSequence
0194     + hcaldigisValidationSequence
0195     + hcalSimHitStudy
0196     + hcalRecHitsOnlyValidationSequence
0197     + pfClusterCaloOnlyValidationSequence
0198 )
0199 
0200 globalValidationHGCal = cms.Sequence(hgcalValidation)
0201 globalPrevalidationHGCal = cms.Sequence(hgcalAssociators, ticlSimTrackstersTask)
0202 
0203 globalValidationMTD = cms.Sequence()
0204 
0205 globalPrevalidationMuons = cms.Sequence(
0206       gemSimValid
0207     + me0SimValid
0208     + validSimHit
0209     + muondtdigianalyzer
0210     + cscDigiValidation
0211     + validationMuonRPCDigis
0212     + recoMuonValidation
0213     + rpcRecHitValidation_step
0214     + cscRecHitValidation
0215     + dtLocalRecoValidation_no2D
0216     + muonIdValDQMSeq
0217 )
0218 
0219 globalValidationMuons = cms.Sequence()
0220 
0221 _phase_1_globalValidation = globalValidation.copy()
0222 _phase_1_globalValidation += siPixelPhase1OfflineDQM_sourceV
0223 
0224 _phase_1_globalValidationPixelTrackingOnly =  globalValidationPixelTrackingOnly.copy()
0225 _phase_1_globalValidationPixelTrackingOnly += siPixelPhase1ValidationPixelTrackingOnly_sourceV
0226 
0227 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
0228 (phase1Pixel & ~fastSim).toReplaceWith( globalValidation, _phase_1_globalValidation ) #module siPixelPhase1OfflineDQM_sourceV can't run in FastSim since siPixelClusters of type edmNew::DetSetVector are not produced
0229 (phase1Pixel & ~fastSim).toReplaceWith( globalValidationPixelTrackingOnly, _phase_1_globalValidationPixelTrackingOnly ) #module siPixelPhase1OfflineDQM_sourceV can't run in FastSim since siPixelClusters of type edmNew::DetSetVector are not produced
0230 
0231 _run3_globalValidation = globalValidation.copy()
0232 _run3_globalValidation += gemSimValid
0233 
0234 _phase2_globalValidation = _run3_globalValidation.copy()
0235 _phase2_globalValidation += trackerphase2ValidationSource
0236 _phase2_globalValidation += me0SimValid
0237 
0238 _phase2_ge0_globalValidation = _run3_globalValidation.copy()
0239 _phase2_ge0_globalValidation += trackerphase2ValidationSource
0240 
0241 from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017
0242 run2_GEM_2017.toReplaceWith( globalValidation, _run3_globalValidation )
0243 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
0244 run3_GEM.toReplaceWith( globalValidation, _run3_globalValidation )
0245 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
0246 phase2_muon.toReplaceWith( globalValidation, _phase2_globalValidation )
0247 from Configuration.Eras.Modifier_phase2_GE0_cff import phase2_GE0
0248 phase2_GE0.toReplaceWith( globalValidation, _phase2_ge0_globalValidation )
0249 phase2_GE0.toReplaceWith( globalPrevalidationMuons, globalPrevalidationMuons.copyAndExclude([me0SimValid]) )
0250 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0251 pp_on_AA.toReplaceWith(globalValidation, globalValidation.copyAndExclude([pfTauRunDQMValidation]))
0252 from Configuration.Eras.Modifier_phase2_timing_layer_cff import phase2_timing_layer
0253 phase2_timing_layer.toReplaceWith(globalValidationMTD, cms.Sequence(mtdSimValid+mtdDigiValid+mtdRecoValid))