Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-11 03:35:50

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from DQMOffline.JetMET.metDQMConfig_cff     import *
0004 from DQMOffline.JetMET.jetAnalyzer_cff   import *
0005 from DQMOffline.JetMET.pfCandidateDQMConfig_cfi   import *
0006 from DQMOffline.JetMET.SUSYDQMAnalyzer_cfi  import *
0007 from DQMOffline.JetMET.goodOfflinePrimaryVerticesDQM_cfi import *
0008 from RecoJets.JetProducers.PileupJetID_cfi  import *
0009 from RecoJets.JetProducers.QGTagger_cfi  import *
0010 from RecoMET.METFilters.metFilters_cff import*
0011 
0012 HcalStripHaloFilterDQM=HcalStripHaloFilter.clone(taggingMode = True)
0013 CSCTightHaloFilterDQM=CSCTightHaloFilter.clone(taggingMode = True)
0014 CSCTightHalo2015FilterDQM=CSCTightHalo2015Filter.clone(taggingMode = True)
0015 eeBadScFilterDQM=eeBadScFilter.clone(taggingMode = True)
0016 EcalDeadCellTriggerPrimitiveFilterDQM=EcalDeadCellTriggerPrimitiveFilter.clone(taggingMode = True)
0017 EcalDeadCellBoundaryEnergyFilterDQM=EcalDeadCellBoundaryEnergyFilter.clone(taggingMode = True) 
0018 
0019 pileupJetIdCalculatorDQM=pileupJetIdCalculator.clone(
0020     jets = "ak4PFJets",
0021     jec = "AK4PF",
0022     applyJec = True,
0023     inputIsCorrected = False
0024 )
0025 
0026 pileupJetIdEvaluatorDQM=pileupJetIdEvaluator.clone(
0027     jets = "ak4PFJets",
0028     jetids = "pileupJetIdCalculatorDQM",
0029     jec = "AK4PF",
0030     applyJec = True,
0031     inputIsCorrected = False
0032 )
0033 
0034 pileupJetIdCalculatorCHSDQM=pileupJetIdCalculator.clone(
0035     applyJec = True,
0036     inputIsCorrected = False
0037 )
0038 
0039 pileupJetIdEvaluatorCHSDQM=pileupJetIdEvaluator.clone(
0040     jetids = "pileupJetIdCalculatorCHSDQM",
0041     applyJec = True,
0042     inputIsCorrected = False
0043     )
0044 
0045 from JetMETCorrections.Configuration.JetCorrectors_cff import ak4CaloL2L3ResidualCorrectorChain,ak4CaloL2L3ResidualCorrector,ak4CaloResidualCorrector,ak4CaloL2L3Corrector,ak4CaloL3AbsoluteCorrector,ak4CaloL2RelativeCorrector
0046 
0047 dqmAk4CaloL2L3ResidualCorrector = ak4CaloL2L3ResidualCorrector.clone()
0048 dqmAk4CaloL2L3ResidualCorrectorChain = cms.Sequence(
0049     #ak4CaloL2RelativeCorrector*ak4CaloL3AbsoluteCorrector*ak4CaloResidualCorrector*
0050     dqmAk4CaloL2L3ResidualCorrector
0051 )
0052 
0053 from JetMETCorrections.Configuration.JetCorrectors_cff import ak4PFL1FastL2L3ResidualCorrectorChain,ak4PFL1FastL2L3ResidualCorrector,ak4PFCHSL1FastL2L3Corrector,ak4PFResidualCorrector,ak4PFL3AbsoluteCorrector,ak4PFL2RelativeCorrector,ak4PFL1FastjetCorrector
0054 
0055 dqmAk4PFCHSL1FastL2L3Corrector = ak4PFCHSL1FastL2L3Corrector.clone()
0056 dqmAk4PFCHSL1FastL2L3CorrectorChain = cms.Sequence(
0057     #ak4CaloL2RelativeCorrector*ak4CaloL3AbsoluteCorrector*ak4CaloResidualCorrector*
0058     dqmAk4PFCHSL1FastL2L3Corrector
0059 )
0060 
0061 dqmAk4PFL1FastL2L3ResidualCorrector = ak4PFL1FastL2L3ResidualCorrector.clone()
0062 dqmAk4PFL1FastL2L3ResidualCorrectorChain = cms.Sequence(
0063     #ak4PFL1FastjetCorrector*ak4PFL2RelativeCorrector*ak4PFL3AbsoluteCorrector*ak4PFResidualCorrector*
0064     dqmAk4PFL1FastL2L3ResidualCorrector
0065 )
0066 
0067 from JetMETCorrections.Configuration.JetCorrectors_cff import ak4PFCHSL1FastL2L3ResidualCorrectorChain,ak4PFCHSL1FastL2L3ResidualCorrector,ak4PFCHSL1FastL2L3Corrector,ak4PFCHSResidualCorrector,ak4PFCHSL3AbsoluteCorrector,ak4PFCHSL2RelativeCorrector,ak4PFCHSL1FastjetCorrector
0068 
0069 dqmAk4PFCHSL1FastL2L3ResidualCorrector = ak4PFCHSL1FastL2L3ResidualCorrector.clone()
0070 dqmAk4PFCHSL1FastL2L3ResidualCorrectorChain = cms.Sequence(
0071     #ak4PFCHSL1FastjetCorrector*ak4PFCHSL2RelativeCorrector*ak4PFCHSL3AbsoluteCorrector*ak4PFCHSResidualCorrector
0072     dqmAk4PFCHSL1FastL2L3ResidualCorrector
0073 )
0074 
0075 dqmAk4PFCHSL1FastL2L3Corrector = ak4PFCHSL1FastL2L3Corrector.clone()
0076 dqmAk4PFCHSL1FastL2L3CorrectorChain = cms.Sequence(
0077     dqmAk4PFCHSL1FastL2L3Corrector
0078 )
0079 
0080 HBHENoiseFilterResultProducerDQM=HBHENoiseFilterResultProducer.clone()
0081 
0082 jetPreDQMTask = cms.Task(ak4CaloL2RelativeCorrector,
0083                          ak4CaloL3AbsoluteCorrector,
0084                          ak4CaloResidualCorrector,
0085                          ak4PFL1FastjetCorrector,
0086                          ak4PFL2RelativeCorrector,
0087                          ak4PFL3AbsoluteCorrector,
0088                          ak4PFResidualCorrector,
0089                          ak4PFCHSL1FastjetCorrector,
0090                          ak4PFCHSL2RelativeCorrector,
0091                          ak4PFCHSL3AbsoluteCorrector,
0092                          ak4PFCHSResidualCorrector
0093 )
0094 jetPreDQMSeq=cms.Sequence(jetPreDQMTask)
0095 
0096 from JetMETCorrections.Type1MET.correctedMet_cff import pfMetT1
0097 from JetMETCorrections.Type1MET.correctionTermsPfMetType0PFCandidate_cff import *
0098 from JetMETCorrections.Type1MET.correctionTermsPfMetType1Type2_cff import corrPfMetType1
0099 
0100 dqmCorrPfMetType1=corrPfMetType1.clone(jetCorrLabel = cms.InputTag('dqmAk4PFCHSL1FastL2L3Corrector'),
0101                                        jetCorrLabelRes = cms.InputTag('dqmAk4PFCHSL1FastL2L3ResidualCorrector')
0102                                        )
0103 pfMETT1=pfMetT1.clone(srcCorrections = (
0104         'dqmCorrPfMetType1:type1',
0105         ))
0106 
0107 jetMETDQMOfflineSource = cms.Sequence(AnalyzeSUSYDQM*QGTagger*
0108                                       pileupJetIdCalculatorCHSDQM*pileupJetIdEvaluatorCHSDQM*
0109                                       pileupJetIdCalculatorDQM*pileupJetIdEvaluatorDQM*
0110                                       jetPreDQMSeq*
0111                                       dqmAk4CaloL2L3ResidualCorrectorChain*dqmAk4PFL1FastL2L3ResidualCorrectorChain*dqmAk4PFCHSL1FastL2L3ResidualCorrectorChain*dqmAk4PFCHSL1FastL2L3CorrectorChain*
0112                                       cms.ignore(goodOfflinePrimaryVerticesDQM)*                                                                            
0113                                       dqmCorrPfMetType1*pfMETT1*jetDQMAnalyzerSequence*HBHENoiseFilterResultProducer*
0114                                       cms.ignore(CSCTightHaloFilterDQM)*cms.ignore(CSCTightHalo2015FilterDQM)*cms.ignore(eeBadScFilterDQM)*cms.ignore(EcalDeadCellTriggerPrimitiveFilterDQM)*cms.ignore(EcalDeadCellBoundaryEnergyFilterDQM)*cms.ignore(HcalStripHaloFilterDQM)                                      
0115                                       *METDQMAnalyzerSequence
0116                                       *pfCandidateDQMAnalyzer)
0117 
0118 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
0119 
0120 jetMETDQMOfflineRedoProductsMiniAOD = cms.Sequence(cms.ignore(goodOfflinePrimaryVerticesDQMforMiniAOD))
0121 
0122 jetMETDQMOfflineSourceMiniAOD = cms.Sequence(jetDQMAnalyzerSequenceMiniAOD*METDQMAnalyzerSequenceMiniAOD*packedCandidateDQMAnalyzerMiniAOD)