CMS 3D CMS Logo

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