CMS 3D CMS Logo

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 #commented as the config file does not exist!
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  # All the metQMParameters clones are commented as it doesn't exist.
86  # caloMETAnalysis = metDQMParameters.clone(
87  # allHist = True
88  # ),
89 
90  #
91  # For caloMETAnalysis "metNoHF"
92  #
93  #caloMETNoHFAnalysis = metDQMParameters.clone(
94  # METCollectionLabel = "metNoHF",
95  # Source = "CaloMETNoHF"
96  #),
97 
98  #
99  # For caloMETAnalysis "metHO"
100  #
101  #caloMETHOAnalysis = metDQMParameters.clone(
102  # METCollectionLabel = "metHO",
103  # Source = "CaloMETHO",
104  # DetectorTypes = "ecal:hbhe:hf:ho",
105  #DebugOn = True,
106  # Filter = True
107  #),
108 
109  #
110  # For caloMETAnalysis
111  #
112  #caloMETNoHFHOAnalysis = metDQMParameters.clone(
113  # METCollectionLabel = "metNoHFHO",
114  # Source = "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 = "pfMet",
127  # Source = "PfMET",
128  # PfJetCollectionLabel = "iterativeCone5PFJets",
129  # PFCandidates = "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 = "tcMet",
142  # Source = "TcMET",
143  # InputTrackLabel = "generalTracks",
144  # InputMuonLabel = "muons",
145  # InputElectronLabel = "gedGsfElectrons",
146  # InputBeamSpotLabel = "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 = "caloMetM",
159  # Source = "MuCorrMET",
160  # InputBeamSpotLabel = "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  # All cleanedJetDQMParameters clones are commented as it doesn't exist.
189  #CleanedjetAnalysis = cleanedJetDQMParameters.clone(),
190 
191  #
192  # For dijet Analysis
193  #
194  #DijetAnalysis = cleanedJetDQMParameters.clone(
195  # makedijetselection = 1,
196  # ptThreshold = 20.,
197  # fillJIDPassFrac = 1
198  #),
199 
200  #PFDijetAnalysis = cleanedJetDQMParameters.clone(
201  # makedijetselection = 1,
202  # ptThreshold = 20.,
203  # fillJIDPassFrac = 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  # For CleanedJPT jetAnalysis
249  #
250  #CleanedJPTJetAnalysis = cleanedjptDQMParameters.clone(),
251 
252  #
253  # DCS
254  #
255  DCSFilterCalo = cms.PSet(
256  DetectorTypes = cms.untracked.string("ecal:hbhe:hf"),
257  #DebugOn = cms.untracked.bool(True),
258  Filter = cms.untracked.bool(True)
259  ),
260  DCSFilterPF = cms.PSet(
261  DetectorTypes = cms.untracked.string("ecal:hbhe:hf:pixel:sistrip:es:muon"),
262  #DebugOn = cms.untracked.bool(True),
263  Filter = cms.untracked.bool(True)
264  ),
265  DCSFilterJPT = cms.PSet(
266  DetectorTypes = cms.untracked.string("ecal:hbhe:hf:pixel:sistrip:es:muon"),
267  #DebugOn = cms.untracked.bool(True),
268  Filter = cms.untracked.bool(True)
269  ),
270  DCSFilterAll = cms.PSet(
271  DetectorTypes = cms.untracked.string("ecal:hbhe:hf:ho:pixel:sistrip:es:muon"),
272  #DebugOn = cms.untracked.bool(True),
273  Filter = cms.untracked.bool(True)
274  )
275 
276 )