Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:38:35

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 
0004 #RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0005 #        mix = cms.PSet(initialSeed = cms.untracked.uint32(12345),
0006 #                       engineName = cms.untracked.string('HepJamesRandom')
0007 #        ),
0008 #        restoreStateLabel = cms.untracked.string("randomEngineStateProducer"),
0009 #)
0010 
0011 from Validation.GlobalDigis.globaldigis_analyze_cfi import *
0012 from Validation.GlobalRecHits.globalrechits_analyze_cfi import *
0013 from Validation.GlobalHits.globalhits_analyze_cfi import *
0014 from Validation.Configuration.globalValidation_cff import *
0015 
0016 from HLTriggerOffline.Common.HLTValidation_cff import *
0017 
0018 
0019 from Validation.RecoMET.METRelValForDQM_cff import *
0020 from Validation.RecoJets.JetValidation_cff import *
0021 from JetMETCorrections.Type1MET.pfMETCorrectionType0_cfi import *
0022 from Validation.TrackingMCTruth.trackingTruthValidation_cfi import *
0023 from Validation.RecoTrack.TrackValidation_cff import *
0024 from Validation.RecoMuon.muonValidation_cff import *
0025 from Validation.MuonIsolation.MuIsoVal_cff import *
0026 from Validation.MuonIdentification.muonIdVal_cff import *
0027 from Validation.RecoMuon.muonValidationHLT_cff import *
0028 from Validation.EventGenerator.BasicGenValidation_cff import *
0029 # miniAOD
0030 from Validation.RecoParticleFlow.miniAODValidation_cff import *
0031 from Validation.RecoEgamma.photonMiniAODValidationSequence_cff import *
0032 from Validation.RecoEgamma.egammaValidationMiniAOD_cff import *
0033 from Validation.RecoTau.RecoTauValidation_cff import *
0034 from DQMOffline.RecoB.bTagMiniDQM_cff import *
0035 
0036 prevalidationNoHLT = cms.Sequence( cms.SequencePlaceholder("mix") * globalPrevalidation * metPreValidSeq * jetPreValidSeq )
0037 prevalidation = cms.Sequence( cms.SequencePlaceholder("mix") * globalPrevalidation * hltassociation * metPreValidSeq * jetPreValidSeq )
0038 prevalidationLiteTracking = cms.Sequence( prevalidation )
0039 prevalidationLiteTracking.replace(globalPrevalidation,globalPrevalidationLiteTracking)
0040 prevalidationMiniAOD = cms.Sequence( genParticles1 * miniAODValidationSequence 
0041                                     * photonMiniAODValidationSequence * egammaValidationMiniAOD
0042                                     * produceDenoms)
0043 
0044 _prevalidation_fastsim = prevalidation.copy()
0045 for _entry in [hltassociation]:
0046     _prevalidation_fastsim.remove(_entry)
0047 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0048 fastSim.toReplaceWith(prevalidation,_prevalidation_fastsim)
0049 
0050 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
0051 phase2_common.toReplaceWith(prevalidation, prevalidation.copyAndExclude([cms.SequencePlaceholder("mix"),globalPrevalidation,metPreValidSeq,jetPreValidSeq]))
0052 
0053 validationNoHLT = cms.Sequence(
0054                                genvalid_all
0055                                *globaldigisanalyze
0056                                *globalhitsanalyze
0057                                *globalrechitsanalyze
0058                                *globalValidation)
0059 validationNoHLT.remove(condDataValidation) # foca d'ovatta !
0060 validation = cms.Sequence(validationNoHLT
0061                          *hltvalidation)
0062 
0063 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
0064 phase2_common.toReplaceWith(validation, validation.copyAndExclude([validationNoHLT]))
0065 
0066 validationNoHLTHiMix = cms.Sequence(
0067                                genvalid_all_hiMix
0068                                *globaldigisanalyze
0069                                *globalhitsanalyze
0070                                *globalrechitsanalyze
0071                                *globalValidation)
0072 validationNoHLTHiMix.remove(condDataValidation) # foca d'ovatta !
0073 validationHiMix = cms.Sequence(validationNoHLTHiMix
0074                                *hltvalidation)
0075 
0076 
0077 _validation_fastsim = validation.copy()
0078 for _entry in [globaldigisanalyze,globalhitsanalyze,globalrechitsanalyze,hltvalidation]:
0079     _validation_fastsim.remove(_entry)
0080 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0081 fastSim.toReplaceWith(validation,_validation_fastsim)
0082 
0083 validationLiteTracking = cms.Sequence( validation )
0084 validationLiteTracking.replace(globalValidation,globalValidationLiteTracking)
0085 validationLiteTracking.remove(condDataValidation)
0086 
0087 validationMiniAOD = cms.Sequence(type0PFMEtCorrectionPFCandToVertexAssociationForValidationMiniAOD * JetValidationMiniAOD * METValidationMiniAOD * tauValidationSequenceMiniAOD * bTagMiniValidationSource)
0088 
0089 prevalidation_preprod = cms.Sequence( preprodPrevalidation )
0090 
0091 validation_preprodNoHLT = cms.Sequence(
0092                             genvalid_all
0093                             +trackingTruthValid
0094                             +tracksValidation
0095                             +METRelValSequence
0096                             +recoMuonValidation
0097                             +muIsoVal_seq
0098                             +muonIdValDQMSeq
0099                           )
0100 
0101 validation_preprod = cms.Sequence(
0102                           validation_preprodNoHLT
0103                           +hltvalidation_preprod
0104                           )
0105 
0106 _validation_preprod_fastsim = validation_preprod.copy()
0107 for _entry in [hltvalidation_preprod]:
0108     _validation_preprod_fastsim.remove(_entry)
0109 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0110 fastSim.toReplaceWith(validation_preprod,_validation_preprod_fastsim)
0111 
0112 validation_prodNoHLT = cms.Sequence(
0113              genvalid_all
0114             )
0115 
0116 validation_prod = cms.Sequence(
0117              validation_prodNoHLT
0118             +hltvalidation_prod
0119             )
0120 
0121 _validation_prod_fastsim = validation_prodNoHLT.copy()
0122 for _entry in [hltvalidation_prod]:
0123     _validation_prod_fastsim.remove(_entry)
0124 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0125 fastSim.toReplaceWith(validation_prod,_validation_prod_fastsim)
0126