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.
2 
4 
5 from JetMETCorrections.Configuration.JetCorrectionServices_cff import ak4CaloL2L3,ak4CaloL2Relative,ak4CaloL3Absolute
6 newAk4CaloL2L3 = ak4CaloL2L3.clone()
7 
8 from JetMETCorrections.Configuration.JetCorrectionServicesAllAlgos_cff import ak7CaloL2L3,ak7CaloL2Relative,ak7CaloL3Absolute
9 newAk7CaloL2L3 = ak7CaloL2L3.clone()
10 
11 from JetMETCorrections.Configuration.JetCorrectionServices_cff import ak4PFL1FastL2L3,ak4PFL1Fastjet,ak4PFL2Relative,ak4PFL3Absolute
12 newAk4PFL1FastL2L3 = ak4PFL1FastL2L3.clone()
13 
14 #from JetMETCorrections.Configuration.JetCorrectionServices_cff import ak4JPTL1FastL2L3,ak4JPTL1Fastjet,ak4JPTL2Relative,ak4JPTL3Absolute
15 #newAk4JPTL1FastL2L3 = ak4JPTL1FastL2L3.clone()
16 
17 
18 caloMetDQMAnalyzer = cms.EDAnalyzer("METAnalyzer",
19  OutputMEsInRootFile = cms.bool(False),
20  OutputFile = cms.string('jetMETMonitoring.root'),
21 
22  METType=cms.untracked.string('calo'),
23  METCollectionLabel = cms.InputTag("met"),
24  JetCollectionLabel = cms.InputTag("ak4CaloJets"),
25  JetCorrections = cms.string("newAk4CaloL2L3"),
26 
27  InputJetIDValueMap = cms.InputTag("ak4JetID"),
28  ptThreshold =cms.double(30),
29 
30  FolderName = cms.untracked.string("JetMET/MET/"),
31 
32  fillMetHighLevel = cms.bool(True),
33 
34  CleaningParameters = cleaningParameters.clone(),
35 
36  TriggerResultsLabel = cms.InputTag("TriggerResults::HLT"),
37 
38  runcosmics = cms.untracked.bool(False),
39 
40  LSBegin = cms.int32(0),
41  LSEnd = cms.int32(-1),
42 
43 # HLTPathsJetMB = cms.vstring(),
44 # When it is empty, it accepts all the triggers
45 
46  triggerSelectedSubFolders = cms.VPSet(
47  cms.PSet( label = cms.string('highPtJet'),
48  andOr = cms.bool( False ), #True -> OR #Comment this line to turn OFF
49  dbLabel = cms.string("JetMETDQMTrigger"),
50  hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
51 # hltDBKey = cms.string( 'jetmet_highptjet' ), #overrides hltPaths!
52  hltPaths = cms.vstring( 'HLT_PFJet400_v*' ),
53  andOrHlt = cms.bool( True ),
54  errorReplyHlt = cms.bool( False ),
55  ),
56  cms.PSet(label = cms.string('lowPtJet'),
57  andOr = cms.bool( False ), #True -> OR #Comment this line to turn OFF
58  dbLabel = cms.string("JetMETDQMTrigger"),
59  hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
60 # hltDBKey = cms.string( 'jetmet_lowptjet' ),#overrides hltPaths!
61  hltPaths = cms.vstring( 'HLT_PFJet80_v*' ),
62  andOrHlt = cms.bool( True ),
63  errorReplyHlt = cms.bool( True ),
64  ),
65  cms.PSet(label = cms.string('zeroBias'),
66  andOr = cms.bool( False ), #True -> OR #Comment this line to turn OFF
67  dbLabel = cms.string("JetMETDQMTrigger"),
68  hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
69  hltDBKey = cms.string( 'jetmet_minbias' ),#overrides hltPaths!
70  hltPaths = cms.vstring( 'HLT_ZeroBias_v*' ),
71  andOrHlt = cms.bool( True ),
72  errorReplyHlt = cms.bool( False ),
73  ),
74  cms.PSet(label = cms.string('highMET'),
75  andOr = cms.bool( False ), #True -> OR #Comment this line to turn OFF
76  dbLabel = cms.string("JetMETDQMTrigger"),
77  hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
78 # hltDBKey = cms.string( 'jetmet_highmet' ),#overrides hltPaths!
79  hltPaths = cms.vstring( 'HLT_MET400_v*' ),
80  andOrHlt = cms.bool( True ),
81  errorReplyHlt = cms.bool( False ),
82  ),
83  cms.PSet(label = cms.string('singleEle'),
84  andOr = cms.bool( False ), #True -> OR #Comment this line to turn OFF
85  dbLabel = cms.string("JetMETDQMTrigger"),
86  hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
87 # hltDBKey = cms.string( 'jetmet_ele' ),#overrides hltPaths!
88  hltPaths = cms.vstring('HLT_Ele27_WP80_v*' ),
89  andOrHlt = cms.bool( True ),
90  errorReplyHlt = cms.bool( False ),
91  ),
92  cms.PSet(label = cms.string('singleMu'),
93  andOr = cms.bool( False ), #True -> OR #Comment this line to turn OFF
94  dbLabel = cms.string("JetMETDQMTrigger"),
95  hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
96 # hltDBKey = cms.string( 'jetmet_muon' ),#overrides hltPaths!
97  hltPaths = cms.vstring( 'HLT_IsoMu24_eta2p1_v*', 'HLT_IsoMu24_v*'),
98  andOrHlt = cms.bool( True ),
99  errorReplyHlt = cms.bool( False ),
100  )
101  ),
102 
103  HcalNoiseRBXCollection = cms.InputTag("hcalnoise"),
104  HBHENoiseFilterResultLabel = cms.InputTag("HBHENoiseFilterResultProducer", "HBHENoiseFilterResult"),
105  BeamHaloSummaryLabel = cms.InputTag("BeamHaloSummary"),
106 
107 # HighPtJetThreshold = cms.double(60.),
108 # LowPtJetThreshold = cms.double(15.),
109 # HighMETThreshold = cms.double(110.),
110 
111  pVBin = cms.int32(100),
112  pVMax = cms.double(100.0),
113  pVMin = cms.double(0.0),
114 
115  verbose = cms.int32(0),
116 
117 # etThreshold = cms.double(2.),
118 
119  DCSFilter = cms.PSet(
120  DetectorTypes = cms.untracked.string("ecal:hbhe:hf"),
121  #DebugOn = cms.untracked.bool(True),
122  Filter = cms.untracked.bool(True)
123  ),
124 
125 
126  #Parameters set for METAnalyzer --> but only used for TCMET
127  InputBeamSpotLabel = cms.InputTag("offlineBeamSpot"),
128  InputTrackLabel = cms.InputTag("generalTracks"),
129  InputMuonLabel = cms.InputTag("muons"),
130  InputElectronLabel = cms.InputTag("gedGsfElectrons"),
131  InputTCMETValueMap = cms.InputTag("muonTCMETValueMapProducer","muCorrData"),#muonMETValueMapProducer -> calomet vs muonTCMETValueMapProducer
132 )
133 
134 #tcMetDQMAnalyzer = caloMetDQMAnalyzer.clone(
135 # METType=cms.untracked.string('tc'),
136 # METCollectionLabel = cms.InputTag("tcMet"),
137 # JetCollectionLabel = cms.InputTag("JetPlusTrackZSPCorJetAntiKt5"),
138 # JetCorrections = cms.string("newAk4JPTL1FastL2L3"),
139 # fillMetHighLevel = cms.bool(False),
140 # DCSFilter = cms.PSet(
141 # DetectorTypes = cms.untracked.string("ecal:hbhe:hf:pixel:sistrip:es:muon"),
142 # #DebugOn = cms.untracked.bool(True),
143 # Filter = cms.untracked.bool(True)
144 # ),
145 #)
146 
147 pfMetDQMAnalyzer = caloMetDQMAnalyzer.clone(
148  METType=cms.untracked.string('pf'),
149  METCollectionLabel = cms.InputTag("pfMet"),
150  JetCollectionLabel = cms.InputTag("ak4PFJets"),
151  JetCorrections = cms.string("newAk4PFL1FastL2L3"),
152  fillMetHighLevel = cms.bool(False),
153  DCSFilter = cms.PSet(
154  DetectorTypes = cms.untracked.string("ecal:hbhe:hf:pixel:sistrip:es:muon"),
155  #DebugOn = cms.untracked.bool(True),
156  Filter = cms.untracked.bool(True)
157  ),
158 )