CMS 3D CMS Logo

metDQMConfig_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
6 
7 #jet corrector defined in jetMETDQMOfflineSource python file
8 
9 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
10 caloMetDQMAnalyzer = DQMEDAnalyzer('METAnalyzer',
11  METType=cms.untracked.string('calo'),
12  srcPFlow = cms.InputTag('particleFlow', ''),
13  l1algoname = cms.string("L1Tech_BPTX_plus_AND_minus.v0"),
14  METCollectionLabel = cms.InputTag("caloMet"),
15  JetCollectionLabel = cms.InputTag("ak4CaloJets"),
16  JetCorrections = cms.InputTag("dqmAk4PFL1FastL2L3ResidualCorrector"),
17  muonsrc = cms.InputTag("muons"),
18 
19  ptMinCand = cms.double(1.),
20  hcalMin =cms.double(1.),
21 
22  InputJetIDValueMap = cms.InputTag("ak4JetID"),
23  ptThreshold =cms.double(30),
24 
25  FolderName = cms.untracked.string("JetMET/MET/"),
26 
27  fillMetHighLevel = cms.bool(True),#fills lumi overview plots
28 
29  fillCandidateMaps = cms.bool(False),
30 
31  CleaningParameters = cleaningParameters.clone(
32  bypassAllPVChecks = cms.bool(True),#needed for 0T running
33  ),
34  METDiagonisticsParameters = multPhiCorr_METDiagnostics,
35 
36  TriggerResultsLabel = cms.InputTag("TriggerResults::HLT"),
37  FilterResultsLabelMiniAOD = cms.InputTag("TriggerResults::RECO"),
38  FilterResultsLabelMiniAOD2 = cms.InputTag("TriggerResults::reRECO"),
39 
40  onlyCleaned = cms.untracked.bool(True),
41  runcosmics = cms.untracked.bool(False),
42 
43  LSBegin = cms.int32(0),
44  LSEnd = cms.int32(-1),
45 
46 # HLTPathsJetMB = cms.vstring(),
47 # When it is empty, it accepts all the triggers
48 
49  triggerSelectedSubFolders = cms.VPSet(
50  cms.PSet( label = cms.string('highPtJet'),
51  andOr = cms.bool( False ), #True -> OR #Comment this line to turn OFF
52  dbLabel = cms.string("JetMETDQMTrigger"),
53  hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
54 # hltDBKey = cms.string( 'jetmet_highptjet' ), #overrides hltPaths!
55  hltPaths = cms.vstring( 'HLT_PFJet450_v*' ),
56  andOrHlt = cms.bool( True ),
57  errorReplyHlt = cms.bool( False ),
58  ),
59  cms.PSet(label = cms.string('lowPtJet'),
60  andOr = cms.bool( False ), #True -> OR #Comment this line to turn OFF
61  dbLabel = cms.string("JetMETDQMTrigger"),
62  hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
63 # hltDBKey = cms.string( 'jetmet_lowptjet' ),#overrides hltPaths!
64  hltPaths = cms.vstring( 'HLT_PFJet80_v*' ),
65  andOrHlt = cms.bool( True ),
66  errorReplyHlt = cms.bool( True ),
67  ),
68  cms.PSet(label = cms.string('zeroBias'),
69  andOr = cms.bool( False ), #True -> OR #Comment this line to turn OFF
70  dbLabel = cms.string("JetMETDQMTrigger"),
71  hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
72  #hltDBKey = cms.string( 'jetmet_minbias' ),#overrides hltPaths!
73  hltPaths = cms.vstring( 'HLT_ZeroBias_v*' ),
74  andOrHlt = cms.bool( True ),
75  errorReplyHlt = cms.bool( False ),
76  ),
77  cms.PSet(label = cms.string('highMET'),
78  andOr = cms.bool( False ), #True -> OR #Comment this line to turn OFF
79  dbLabel = cms.string("JetMETDQMTrigger"),
80  hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
81 # hltDBKey = cms.string( 'jetmet_highmet' ),#overrides hltPaths!
82  hltPaths = cms.vstring( 'HLT_MET250_v*' ),
83  andOrHlt = cms.bool( True ),
84  errorReplyHlt = cms.bool( False ),
85  ),
86  #cms.PSet(label = cms.string('singleEle'),
87  # andOr = cms.bool( False ), #True -> OR #Comment this line to turn OFF
88  # dbLabel = cms.string("JetMETDQMTrigger"),
89  # hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
90 # hltDBKey = cms.string( 'jetmet_ele' ),#overrides hltPaths!
91  # hltPaths = cms.vstring('HLT_Ele27_WP80_v*' ),
92  # andOrHlt = cms.bool( True ),
93  # errorReplyHlt = cms.bool( False ),
94  #),
95  cms.PSet(label = cms.string('singleMu'),
96  andOr = cms.bool( False ), #True -> OR #Comment this line to turn OFF
97  dbLabel = cms.string("JetMETDQMTrigger"),
98  hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
99 # hltDBKey = cms.string( 'jetmet_muon' ),#overrides hltPaths!
100  hltPaths = cms.vstring( 'HLT_IsoMu24_eta2p1_v*', 'HLT_IsoMu27_v*'),
101  andOrHlt = cms.bool( True ),
102  errorReplyHlt = cms.bool( False ),
103  )
104  ),
105 
106  HBHENoiseLabelMiniAOD = cms.string("Flag_HBHENoiseFilter"),
107  HBHEIsoNoiseLabelMiniAOD = cms.string("Flag_HBHEIsoNoiseFilter"),
108 
109  HcalNoiseRBXCollection = cms.InputTag("hcalnoise"),
110  HBHENoiseFilterResultLabel = cms.InputTag("HBHENoiseFilterResultProducer", "HBHENoiseFilterResult"),
111  HBHENoiseIsoFilterResultLabel = cms.InputTag("HBHENoiseFilterResultProducer", "HBHEIsoNoiseFilterResult"),
112  CSCHaloResultLabel = cms.InputTag("CSCTightHaloFilterDQM"),
113  CSCHalo2015ResultLabel = cms.InputTag("CSCTightHalo2015FilterDQM"),
114  EcalDeadCellTriggerPrimitiveFilterLabel = cms.InputTag("EcalDeadCellTriggerPrimitiveFilterDQM"),
115  EcalDeadCellBoundaryEnergyFilterLabel = cms.InputTag("EcalDeadCellBoundaryEnergyFilterDQM"),
116  eeBadScFilterLabel = cms.InputTag("eeBadScFilterDQM"),
117  HcalStripHaloFilterLabel = cms.InputTag("HcalStripHaloFilterDQM"),
118 
119  #if changed here, change certification module input in same manner and injetDQMconfig
120  pVBin = cms.int32(100),
121  pVMax = cms.double(100.0),
122  pVMin = cms.double(0.0),
123 
124  verbose = cms.int32(0),
125 
126 # etThreshold = cms.double(2.),
127 
128  DCSFilter = cms.PSet(
129  DetectorTypes = cms.untracked.string("ecal:hbhe:hf"),
130  #DebugOn = cms.untracked.bool(True),
131  Filter = cms.untracked.bool(True)
132  ),
133 )
134 
135 pfMetDQMAnalyzer = caloMetDQMAnalyzer.clone(
136  METType=cms.untracked.string('pf'),
137  METCollectionLabel = cms.InputTag("pfMet"),
138  srcPFlow = cms.InputTag('particleFlow', ''),
139  JetCollectionLabel = cms.InputTag("ak4PFJets"),
140  JetCorrections = cms.InputTag("dqmAk4PFL1FastL2L3ResidualCorrector"),
141  CleaningParameters = cleaningParameters.clone(
142  bypassAllPVChecks = cms.bool(False),
143  ),
144  fillMetHighLevel = cms.bool(False),
145  fillCandidateMaps = cms.bool(True),
146  # if this flag is changed, the METTypeRECOUncleaned flag in dataCertificationJetMET_cfi.py
147  #has to be updated (by a string not pointing to an existing directory)
148  onlyCleaned = cms.untracked.bool(False),
149  DCSFilter = cms.PSet(
150  DetectorTypes = cms.untracked.string("ecal:hbhe:hf:pixel:sistrip:es:muon"),
151  #DebugOn = cms.untracked.bool(True),
152  Filter = cms.untracked.bool(True)
153  ),
154 )
155 pfChMetDQMAnalyzer = pfMetDQMAnalyzer.clone(
156  METCollectionLabel = cms.InputTag("pfChMet"),
157  fillCandidateMaps = cms.bool(False),
158  onlyCleaned = cms.untracked.bool(True),
159  )
160 
161 
162 
163 #both CaloMET and type1 MET only cleaned plots are filled
164 pfMetT1DQMAnalyzer = caloMetDQMAnalyzer.clone(
165  METType=cms.untracked.string('pf'),
166  METCollectionLabel = cms.InputTag("pfMETT1"),
167  srcPFlow = cms.InputTag('particleFlow', ''),
168  JetCollectionLabel = cms.InputTag("ak4PFJetsCHS"),
169  JetCorrections = cms.InputTag("dqmAk4PFCHSL1FastL2L3ResidualCorrector"),
170  CleaningParameters = cleaningParameters.clone(
171  bypassAllPVChecks = cms.bool(False),
172  ),
173  fillMetHighLevel = cms.bool(False),
174  fillCandidateMaps = cms.bool(False),
175  DCSFilter = cms.PSet(
176  DetectorTypes = cms.untracked.string("ecal:hbhe:hf:pixel:sistrip:es:muon"),
177  Filter = cms.untracked.bool(True)
178  ),
179 )
180 pfMetDQMAnalyzerMiniAOD = pfMetDQMAnalyzer.clone(
181  fillMetHighLevel = cms.bool(True),#fills only lumisec plots
182  fillCandidateMaps = cms.bool(False),
183  srcPFlow = cms.InputTag('packedPFCandidates', ''),
184  METDiagonisticsParameters = multPhiCorr_METDiagnosticsMiniAOD,
185  CleaningParameters = cleaningParameters.clone(
186  vertexCollection = cms.InputTag( "goodOfflinePrimaryVerticesDQMforMiniAOD" ),
187  ),
188  METType=cms.untracked.string('miniaod'),
189  METCollectionLabel = cms.InputTag("slimmedMETs"),
190  JetCollectionLabel = cms.InputTag("slimmedJets"),
191  JetCorrections = cms.InputTag(""),#not called, since corrected by default
192 )
193 pfPuppiMetDQMAnalyzerMiniAOD = pfMetDQMAnalyzerMiniAOD.clone(
194  fillMetHighLevel = cms.bool(False),#fills only lumisec plots
195  fillCandidateMaps = cms.bool(True),
196  METType=cms.untracked.string('miniaod'),
197  METCollectionLabel = cms.InputTag("slimmedMETsPuppi"),
198  JetCollectionLabel = cms.InputTag("slimmedJetsPuppi"),
199  JetCorrections = cms.InputTag(""),#not called, since corrected by default
200 )