CMS 3D CMS Logo

jetMETDQMOfflineSource_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
11 
12 HcalStripHaloFilterDQM=HcalStripHaloFilter.clone(taggingMode = True)
13 CSCTightHaloFilterDQM=CSCTightHaloFilter.clone(taggingMode = True)
14 CSCTightHalo2015FilterDQM=CSCTightHalo2015Filter.clone(taggingMode = True)
15 eeBadScFilterDQM=eeBadScFilter.clone(taggingMode = True)
16 EcalDeadCellTriggerPrimitiveFilterDQM=EcalDeadCellTriggerPrimitiveFilter.clone(taggingMode = True)
17 EcalDeadCellBoundaryEnergyFilterDQM=EcalDeadCellBoundaryEnergyFilter.clone(taggingMode = True)
18 
19 pileupJetIdCalculatorDQM=pileupJetIdCalculator.clone(
20  jets = "ak4PFJets",
21  jec = "AK4PF",
22  applyJec = True,
23  inputIsCorrected = False
24 )
25 
26 pileupJetIdEvaluatorDQM=pileupJetIdEvaluator.clone(
27  jets = "ak4PFJets",
28  jetids = "pileupJetIdCalculatorDQM",
29  jec = "AK4PF",
30  applyJec = True,
31  inputIsCorrected = False
32 )
33 
34 pileupJetIdCalculatorCHSDQM=pileupJetIdCalculator.clone(
35  applyJec = True,
36  inputIsCorrected = False
37 )
38 
39 pileupJetIdEvaluatorCHSDQM=pileupJetIdEvaluator.clone(
40  jetids = "pileupJetIdCalculatorCHSDQM",
41  applyJec = True,
42  inputIsCorrected = False
43  )
44 
45 pileupJetIdCalculatorPUPPIDQM=pileupJetIdCalculator.clone(
46  jets = "ak4PFJetsPuppi",
47  jec = "AK4PFPuppi",
48  applyJec = True,
49  inputIsCorrected = False
50 )
51 
52 pileupJetIdEvaluatorPUPPIDQM=pileupJetIdEvaluator.clone(
53  jets = "ak4PFJetsPuppi",
54  jetids = "pileupJetIdCalculatorPUPPIDQM",
55  jec = "AK4PFPuppi",
56  applyJec = True,
57  inputIsCorrected = False
58 )
59 
60 from JetMETCorrections.Configuration.JetCorrectors_cff import ak4CaloL2L3ResidualCorrectorChain,ak4CaloL2L3ResidualCorrector,ak4CaloResidualCorrector,ak4CaloL2L3Corrector,ak4CaloL3AbsoluteCorrector,ak4CaloL2RelativeCorrector
61 
62 dqmAk4CaloL2L3ResidualCorrector = ak4CaloL2L3ResidualCorrector.clone()
63 dqmAk4CaloL2L3ResidualCorrectorChain = cms.Sequence(
64  #ak4CaloL2RelativeCorrector*ak4CaloL3AbsoluteCorrector*ak4CaloResidualCorrector*
65  dqmAk4CaloL2L3ResidualCorrector
66 )
67 
68 from JetMETCorrections.Configuration.JetCorrectors_cff import ak4PFL1FastL2L3ResidualCorrectorChain,ak4PFL1FastL2L3ResidualCorrector,ak4PFCHSL1FastL2L3Corrector,ak4PFResidualCorrector,ak4PFL3AbsoluteCorrector,ak4PFL2RelativeCorrector,ak4PFL1FastjetCorrector
69 
70 dqmAk4PFCHSL1FastL2L3Corrector = ak4PFCHSL1FastL2L3Corrector.clone()
71 dqmAk4PFCHSL1FastL2L3CorrectorChain = cms.Sequence(
72  #ak4CaloL2RelativeCorrector*ak4CaloL3AbsoluteCorrector*ak4CaloResidualCorrector*
73  dqmAk4PFCHSL1FastL2L3Corrector
74 )
75 
76 dqmAk4PFL1FastL2L3ResidualCorrector = ak4PFL1FastL2L3ResidualCorrector.clone()
77 dqmAk4PFL1FastL2L3ResidualCorrectorChain = cms.Sequence(
78  #ak4PFL1FastjetCorrector*ak4PFL2RelativeCorrector*ak4PFL3AbsoluteCorrector*ak4PFResidualCorrector*
79  dqmAk4PFL1FastL2L3ResidualCorrector
80 )
81 
82 from JetMETCorrections.Configuration.JetCorrectors_cff import ak4PFCHSL1FastL2L3ResidualCorrectorChain,ak4PFCHSL1FastL2L3ResidualCorrector,ak4PFCHSL1FastL2L3Corrector,ak4PFCHSResidualCorrector,ak4PFCHSL3AbsoluteCorrector,ak4PFCHSL2RelativeCorrector,ak4PFCHSL1FastjetCorrector
83 
84 dqmAk4PFCHSL1FastL2L3ResidualCorrector = ak4PFCHSL1FastL2L3ResidualCorrector.clone()
85 dqmAk4PFCHSL1FastL2L3ResidualCorrectorChain = cms.Sequence(
86  #ak4PFCHSL1FastjetCorrector*ak4PFCHSL2RelativeCorrector*ak4PFCHSL3AbsoluteCorrector*ak4PFCHSResidualCorrector
87  dqmAk4PFCHSL1FastL2L3ResidualCorrector
88 )
89 
90 dqmAk4PFCHSL1FastL2L3Corrector = ak4PFCHSL1FastL2L3Corrector.clone()
91 dqmAk4PFCHSL1FastL2L3CorrectorChain = cms.Sequence(
92  dqmAk4PFCHSL1FastL2L3Corrector
93 )
94 
95 from JetMETCorrections.Configuration.JetCorrectors_cff import ak4PFPuppiL1FastL2L3ResidualCorrectorChain,ak4PFPuppiL1FastL2L3ResidualCorrector,ak4PFPuppiL1FastL2L3Corrector,ak4PFPuppiResidualCorrector,ak4PFPuppiL3AbsoluteCorrector,ak4PFPuppiL2RelativeCorrector,ak4PFPuppiL1FastjetCorrector
96 
97 dqmAk4PFPuppiL1FastL2L3ResidualCorrector = ak4PFPuppiL1FastL2L3ResidualCorrector.clone()
98 dqmAk4PFPuppiL1FastL2L3ResidualCorrectorChain = cms.Sequence(
99  dqmAk4PFPuppiL1FastL2L3ResidualCorrector
100 )
101 
102 HBHENoiseFilterResultProducerDQM=HBHENoiseFilterResultProducer.clone()
103 
104 jetPreDQMTask = cms.Task(ak4CaloL2RelativeCorrector,
105  ak4CaloL3AbsoluteCorrector,
106  ak4CaloResidualCorrector,
107  ak4PFL1FastjetCorrector,
108  ak4PFL2RelativeCorrector,
109  ak4PFL3AbsoluteCorrector,
110  ak4PFResidualCorrector,
111  ak4PFCHSL1FastjetCorrector,
112  ak4PFCHSL2RelativeCorrector,
113  ak4PFCHSL3AbsoluteCorrector,
114  ak4PFCHSResidualCorrector,
115 )
116 
117 _jetPreDQMTaskWithPUPPI = cms.Task(ak4CaloL2RelativeCorrector,
118  ak4CaloL3AbsoluteCorrector,
119  ak4CaloResidualCorrector,
120  ak4PFL1FastjetCorrector,
121  ak4PFL2RelativeCorrector,
122  ak4PFL3AbsoluteCorrector,
123  ak4PFResidualCorrector,
124  ak4PFCHSL1FastjetCorrector,
125  ak4PFCHSL2RelativeCorrector,
126  ak4PFCHSL3AbsoluteCorrector,
127  ak4PFCHSResidualCorrector,
128  ak4PFPuppiL1FastjetCorrector,
129  ak4PFPuppiL2RelativeCorrector,
130  ak4PFPuppiL3AbsoluteCorrector,
131  ak4PFPuppiResidualCorrector,
132 )
133 jetPreDQMSeq=cms.Sequence(jetPreDQMTask)
134 _jetPreDQMSeqWithPUPPI=cms.Sequence(_jetPreDQMTaskWithPUPPI)
135 
136 from JetMETCorrections.Type1MET.correctedMet_cff import pfMetT1
139 
140 dqmCorrPfMetType1=corrPfMetType1.clone(jetCorrLabel = cms.InputTag('dqmAk4PFCHSL1FastL2L3Corrector'),
141  jetCorrLabelRes = cms.InputTag('dqmAk4PFCHSL1FastL2L3ResidualCorrector')
142  )
143 pfMETT1=pfMetT1.clone(srcCorrections = (
144  'dqmCorrPfMetType1:type1',
145  ))
146 
147 jetMETDQMOfflineSource = cms.Sequence(AnalyzeSUSYDQM*QGTagger*
148  pileupJetIdCalculatorCHSDQM*pileupJetIdEvaluatorCHSDQM*
149  pileupJetIdCalculatorDQM*pileupJetIdEvaluatorDQM*
150  jetPreDQMSeq*
151  dqmAk4CaloL2L3ResidualCorrectorChain*dqmAk4PFL1FastL2L3ResidualCorrectorChain*dqmAk4PFCHSL1FastL2L3ResidualCorrectorChain*dqmAk4PFCHSL1FastL2L3CorrectorChain*
152  cms.ignore(goodOfflinePrimaryVerticesDQM)*
153  dqmCorrPfMetType1*pfMETT1*jetDQMAnalyzerSequence*HBHENoiseFilterResultProducer*
154  cms.ignore(CSCTightHaloFilterDQM)*cms.ignore(CSCTightHalo2015FilterDQM)*cms.ignore(eeBadScFilterDQM)*cms.ignore(EcalDeadCellTriggerPrimitiveFilterDQM)*cms.ignore(EcalDeadCellBoundaryEnergyFilterDQM)*cms.ignore(HcalStripHaloFilterDQM)
155  *METDQMAnalyzerSequence
156  *pfCandidateDQMAnalyzer)
157 
158 _jetMETDQMOfflineSourceWithPUPPI = cms.Sequence(AnalyzeSUSYDQM*QGTagger*
159  pileupJetIdCalculatorCHSDQM*pileupJetIdEvaluatorCHSDQM*
160  pileupJetIdCalculatorDQM*pileupJetIdEvaluatorDQM*
161  pileupJetIdCalculatorPUPPIDQM*pileupJetIdEvaluatorPUPPIDQM*
162  _jetPreDQMSeqWithPUPPI*
163  dqmAk4CaloL2L3ResidualCorrectorChain*dqmAk4PFL1FastL2L3ResidualCorrectorChain*dqmAk4PFCHSL1FastL2L3ResidualCorrectorChain*dqmAk4PFCHSL1FastL2L3CorrectorChain*dqmAk4PFPuppiL1FastL2L3ResidualCorrectorChain*
164  cms.ignore(goodOfflinePrimaryVerticesDQM)*
165  dqmCorrPfMetType1*pfMETT1*jetDQMAnalyzerSequence*HBHENoiseFilterResultProducer*
166  cms.ignore(CSCTightHaloFilterDQM)*cms.ignore(CSCTightHalo2015FilterDQM)*cms.ignore(eeBadScFilterDQM)*cms.ignore(EcalDeadCellTriggerPrimitiveFilterDQM)*cms.ignore(EcalDeadCellBoundaryEnergyFilterDQM)*cms.ignore(HcalStripHaloFilterDQM)
167  *METDQMAnalyzerSequence
168  *pfCandidateDQMAnalyzer)
169 
170 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
171 (~pp_on_AA).toReplaceWith(jetMETDQMOfflineSource, _jetMETDQMOfflineSourceWithPUPPI)
172 
173 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
174 
175 jetMETDQMOfflineRedoProductsMiniAOD = cms.Sequence(cms.ignore(goodOfflinePrimaryVerticesDQMforMiniAOD))
176 
177 jetMETDQMOfflineSourceMiniAOD = cms.Sequence(jetDQMAnalyzerSequenceMiniAOD*METDQMAnalyzerSequenceMiniAOD*packedCandidateDQMAnalyzerMiniAOD)