CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
jetMETAnalyzer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMOffline.JetMET.jptDQMConfig_cff import * # parameters for jpt analyzer
4 from DQMOffline.JetMET.jetDQMConfig_cff import * # parameters for all jet analyzers
5 from DQMOffline.JetMET.metDQMConfig_cff import * # parameters for all met analyzers
6 from DQMOffline.JetMET.jetMETDQMCleanup_cff import * # parameters for event cleanup
7 
8 jetMETAnalyzer = cms.EDAnalyzer("JetMETAnalyzer",
9 
10  #
11  # Output files
12  #
13  OutputMEsInRootFile = cms.bool(False),
14  OutputFileName = cms.string('jetMETMonitoring.root'),
15 
16  #
17  #
18  #
19  highPtJetTrigger = cms.PSet(
20  andOr = cms.bool( False ),
21  dbLabel = cms.string("JetMETDQMTrigger"),
22  hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
23  hltDBKey = cms.string( 'jetmet_highptjet' ),
24  hltPaths = cms.vstring( 'HLT_Jet300_v','HLT_Jet300_v6','HLT_Jet300_v7','HLT_Jet300_v8' ),
25  andOrHlt = cms.bool( True ),
26  errorReplyHlt = cms.bool( False ),
27  ),
28  lowPtJetTrigger = cms.PSet(
29  andOr = cms.bool( False ),
30  dbLabel = cms.string("JetMETDQMTrigger"),
31  hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
32  hltDBKey = cms.string( 'jetmet_lowptjet' ),
33  hltPaths = cms.vstring( 'HLT_Jet60_v','HLT_Jet60_v6','HLT_Jet60_v7','HLT_Jet60_v8' ),
34  andOrHlt = cms.bool( True ),
35  errorReplyHlt = cms.bool( False ),
36  ),
37 
38  TriggerResultsLabel = cms.InputTag("TriggerResults::HLT"),
39  processname = cms.string("HLT"),
40 
41  #
42  # Jet-related
43  #
44  DoPFJetAnalysis = cms.untracked.bool(False),
45  DoPFJetCleaning = cms.untracked.bool(True),
46 
47  DoJPTJetAnalysis = cms.untracked.bool(False),
48  DoJPTJetCleaning = cms.untracked.bool(True),
49 
50  DoJetAnalysis = cms.untracked.bool(True),
51  DoJetCleaning = cms.untracked.bool(True),
52  DoIterativeCone = cms.untracked.bool(False),
53  DoSisCone = cms.untracked.bool(False),
54 
55  DoJetPtAnalysis = cms.untracked.bool(False),
56  DoJetPtCleaning = cms.untracked.bool(False),
57  DoDiJetSelection = cms.untracked.bool(True),
58 
59  PFJetsCollectionLabel = cms.InputTag("ak4PFJets"),
60  JPTJetsCollectionLabel = cms.InputTag("JetPlusTrackZSPCorJetAntiKt4"),
61  SCJetsCollectionLabel = cms.InputTag("sisCone5CaloJets"),
62  AKJetsCollectionLabel = cms.InputTag("ak4CaloJets"),
63  ICJetsCollectionLabel = cms.InputTag("iterativeCone5CaloJets"),
64 
65  #
66  # MET-related
67  #
68  DoCaloMETAnalysis = cms.untracked.bool(True),
69  DoTcMETAnalysis = cms.untracked.bool(True),
70  DoMuCorrMETAnalysis = cms.untracked.bool(False),
71  DoPfMETAnalysis = cms.untracked.bool(True),
72  DoHTMHTAnalysis = cms.untracked.bool(False),
73 
74  #
75  #
76  #
77  LSBegin = cms.int32(0),
78  LSEnd = cms.int32(-1),
79 
80  #Cleanup parameters
81  CleaningParameters = cleaningParameters.clone(),
82 
83  #
84  # For caloMETAnalysis "met"
85  #
86  caloMETAnalysis = metDQMParameters.clone(
87  allHist = cms.bool(True)
88  ),
89 
90  #
91  # For caloMETAnalysis "metNoHF"
92  #
93  caloMETNoHFAnalysis = metDQMParameters.clone(
94  METCollectionLabel = cms.InputTag("metNoHF"),
95  Source = cms.string("CaloMETNoHF")
96  ),
97 
98  #
99  # For caloMETAnalysis "metHO"
100  #
101  caloMETHOAnalysis = metDQMParameters.clone(
102  METCollectionLabel = cms.InputTag("metHO"),
103  Source = cms.string("CaloMETHO"),
104  DetectorTypes = cms.untracked.string("ecal:hbhe:hf:ho"),
105  #DebugOn = cms.untracked.bool(True),
106  Filter = cms.untracked.bool(True)
107  ),
108 
109  #
110  # For caloMETAnalysis
111  #
112  caloMETNoHFHOAnalysis = metDQMParameters.clone(
113  METCollectionLabel = cms.InputTag("metNoHFHO"),
114  Source = cms.string("CaloMETNoHFHO"),
115  DCSFilter = cms.PSet(
116  DetectorTypes = cms.untracked.string("ecal:hbhe:hf:ho"),
117  #DebugOn = cms.untracked.bool(True),
118  Filter = cms.untracked.bool(True)
119  )
120  ),
121 
122  #
123  # For pfMETAnalysis
124  #
125  pfMETAnalysis = metDQMParameters.clone(
126  METCollectionLabel = cms.InputTag("pfMet"),
127  Source = cms.string("PfMET"),
128  PfJetCollectionLabel = cms.InputTag("iterativeCone5PFJets"),
129  PFCandidates = cms.InputTag("particleFlow"),
130  DCSFilter = cms.PSet(
131  DetectorTypes = cms.untracked.string("ecal:hbhe:hf:pixel:sistrip:es:muon"),
132  #DebugOn = cms.untracked.bool(True),
133  Filter = cms.untracked.bool(True)
134  )
135  ),
136 
137  #
138  # For tcMETAnalysis
139  #
140  tcMETAnalysis = metDQMParameters.clone(
141  METCollectionLabel = cms.InputTag("tcMet"),
142  Source = cms.string("TcMET"),
143  InputTrackLabel = cms.InputTag("generalTracks"),
144  InputMuonLabel = cms.InputTag("muons"),
145  InputElectronLabel = cms.InputTag("gedGsfElectrons"),
146  InputBeamSpotLabel = cms.InputTag("offlineBeamSpot"),
147  DCSFilter = cms.PSet(
148  DetectorTypes = cms.untracked.string("ecal:hbhe:hf:pixel:sistrip:es:muon"),
149  #DebugOn = cms.untracked.bool(True),
150  Filter = cms.untracked.bool(True)
151  )
152  ),
153 
154  #
155  # For mucorrMET
156  #
157  mucorrMETAnalysis = metDQMParameters.clone(
158  METCollectionLabel = cms.InputTag("caloMetM"),
159  Source = cms.string("MuCorrMET"),
160  InputBeamSpotLabel = cms.InputTag("offlineBeamSpot"),
161  DCSFilter = cms.PSet(
162  DetectorTypes = cms.untracked.string("ecal:hbhe:hf:pixel:sistrip:muon"),
163  #DebugOn = cms.untracked.bool(True),
164  Filter = cms.untracked.bool(True)
165  )
166  ),
167 
168  #
169  # For HTMHTAnalysis
170  #
171  HTMHTAnalysis = cms.PSet(
172  verbose = cms.int32(0),
173  printOut = cms.int32(0),
174  JetCollectionForHTMHTLabel = cms.InputTag("iterativeCone5CaloJets"),
175  FolderName = cms.untracked.string("JetMET/MET/"),
176  Source = cms.string("HTMHT"),
177  HLTPathsJetMB = cms.vstring(),
178  ptThreshold = cms.double(20.)
179  ),
180 
181  #
182  # For jetAnalysis
183  #
184  jetAnalysis = jetDQMParameters.clone(),
185 
186  #
187  # For jetcleaning Analysis
188  #
189  CleanedjetAnalysis = cleanedJetDQMParameters.clone(),
190 
191  #
192  # For dijet Analysis
193  #
194  DijetAnalysis = cleanedJetDQMParameters.clone(
195  makedijetselection = cms.int32(1),
196  ptThreshold = cms.double(20.),
197  fillJIDPassFrac = cms.int32(1)
198  ),
199 
200  PFDijetAnalysis = cleanedJetDQMParameters.clone(
201  makedijetselection = cms.int32(1),
202  ptThreshold = cms.double(20.),
203  fillJIDPassFrac = cms.int32(1)
204  ),
205 
206  #
207  # For Pt jet Analysis
208  #
209  PtAnalysis = jetDQMParameters.clone(),
210 
211  #
212  # For Cleaned Pt jet Analysis
213  #
214  CleanedPtAnalysis = cleanedJetDQMParameters.clone(),
215 
216  #
217  # For PF jetAnalysis
218  #
219  pfJetAnalysis = jetDQMParameters.clone(
220  ptThreshold = cms.double(20.),
221  TightCHFMin = cms.double(0.0),
222  TightNHFMax = cms.double(1.0),
223  TightCEFMax = cms.double(1.0),
224  TightNEFMax = cms.double(1.0),
225  LooseCHFMin = cms.double(0.0),
226  LooseNHFMax = cms.double(0.9),
227  LooseCEFMax = cms.double(1.0),
228  LooseNEFMax = cms.double(0.9),
229  ThisCHFMin = cms.double(-999.),
230  ThisNHFMax = cms.double(999.),
231  ThisCEFMax = cms.double(999.),
232  ThisNEFMax = cms.double(999.)
233  ),
234 
235  #
236  # For Cleaned PF jetAnalysis
237  #
238  CleanedpfJetAnalysis = cleanedJetDQMParameters.clone(
239  ptThreshold = cms.double(20.)
240  ),
241 
242  #
243  # For JPT jetAnalysis
244  #
245  JPTJetAnalysis = jptDQMParameters.clone(
246  ),
247 
248  #
249  # For CleanedJPT jetAnalysis
250  #
251  CleanedJPTJetAnalysis = cleanedjptDQMParameters.clone(
252  ),
253 
254  #
255  # DCS
256  #
257  DCSFilterCalo = cms.PSet(
258  DetectorTypes = cms.untracked.string("ecal:hbhe:hf"),
259  #DebugOn = cms.untracked.bool(True),
260  Filter = cms.untracked.bool(True)
261  ),
262  DCSFilterPF = cms.PSet(
263  DetectorTypes = cms.untracked.string("ecal:hbhe:hf:pixel:sistrip:es:muon"),
264  #DebugOn = cms.untracked.bool(True),
265  Filter = cms.untracked.bool(True)
266  ),
267  DCSFilterJPT = cms.PSet(
268  DetectorTypes = cms.untracked.string("ecal:hbhe:hf:pixel:sistrip:es:muon"),
269  #DebugOn = cms.untracked.bool(True),
270  Filter = cms.untracked.bool(True)
271  ),
272  DCSFilterAll = cms.PSet(
273  DetectorTypes = cms.untracked.string("ecal:hbhe:hf:ho:pixel:sistrip:es:muon"),
274  #DebugOn = cms.untracked.bool(True),
275  Filter = cms.untracked.bool(True)
276  )
277 
278 )