CMS 3D CMS Logo

miniAODDQM_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # jet
4 from DQMOffline.PFTau.PFJetDQMAnalyzer_cfi import pfJetDQMAnalyzer
5 
6 JetValidation1 = pfJetDQMAnalyzer.clone()
7 JetValidation1.BenchmarkLabel = cms.string('slimmedJetValidation/CompWithPFJets')
8 JetValidation1.InputCollection = cms.InputTag('slimmedJets')
9 JetValidation1.MatchCollection = cms.InputTag('ak4PFJetsCHS') # ak5PFJetsCHS # ak5PFJets
10 JetValidation1.ptMin = cms.double(10.0)
11 JetValidation1.CreatePFractionHistos = cms.bool(True)
12 #JetValidation1.InputCollection = cms.InputTag('ak5PFJets')
13 #JetValidation1.MatchCollection = cms.InputTag('slimmedJets')
14 
15 JetValidation2 = pfJetDQMAnalyzer.clone()
16 JetValidation2.BenchmarkLabel = cms.string('slimmedJetValidation/CompWithPFJetsEC')
17 #JetValidation2.InputCollection = JetValidation1.MatchCollection
18 #JetValidation2.MatchCollection = JetValidation1.InputCollection
19 JetValidation2.InputCollection = cms.InputTag('slimmedJets')
20 JetValidation2.MatchCollection = cms.InputTag('ak4PFJetsNewL1Fast23') # ak4PFJetsCHSEC # ak4PFJetsCHS
21 JetValidation2.ptMin = JetValidation1.ptMin
22 JetValidation2.CreatePFractionHistos = cms.bool(True)
23 
24 
25 # jetRes plots
26 from DQMOffline.PFTau.PFJetResDQMAnalyzer_cfi import pfJetResDQMAnalyzer
27 
28 JetResValidation1 = pfJetResDQMAnalyzer.clone()
29 JetResValidation1.InputCollection = JetValidation1.InputCollection
30 JetResValidation1.MatchCollection = JetValidation1.MatchCollection
31 JetResValidation1.ptMin = JetValidation1.ptMin
32 
33 JetResValidation2 = pfJetResDQMAnalyzer.clone()
34 JetResValidation2.InputCollection = JetValidation2.InputCollection
35 JetResValidation2.MatchCollection = JetValidation2.MatchCollection
36 JetResValidation2.ptMin = JetValidation2.ptMin
37 
38 
39 # MET
40 from DQMOffline.PFTau.PFMETDQMAnalyzer_cfi import pfMETDQMAnalyzer
41 
42 METValidation1 = pfMETDQMAnalyzer.clone()
43 METValidation1.BenchmarkLabel = cms.string('slimmedMETValidation/CompWithPFMET')
44 METValidation1.InputCollection = cms.InputTag('slimmedMETs')
45 METValidation1.MatchCollection = cms.InputTag('pfMet')
46 
47 METValidation2 = pfMETDQMAnalyzer.clone()
48 METValidation2.BenchmarkLabel = cms.string('slimmedMETValidation/CompWithPFMETT1')
49 METValidation2.InputCollection = cms.InputTag('slimmedMETs')
50 METValidation2.MatchCollection = cms.InputTag('pfMetT1')
51 
52 
53 # muons
54 from DQMOffline.PFTau.PFMuonDQMAnalyzer_cfi import pfMuonDQMAnalyzer
55 
56 slimmedMuonValidation1 = pfMuonDQMAnalyzer.clone()
57 slimmedMuonValidation1.BenchmarkLabel = cms.string('SlimmedMuonValidation/CompWithRecoMuons')
58 slimmedMuonValidation1.InputCollection = cms.InputTag('slimmedMuons')
59 slimmedMuonValidation1.MatchCollection = cms.InputTag('muons')
60 # official
61 #muonPFsequenceMC.inputTagMuonReco = cms.InputTag('slimmedMuons')
62 #muonPFsequenceMC.inputTagGenParticles = cms.InputTag('muons')
63 #muonPFsequenceMC.runOnMC = cms.bool(False)
64 # RefCore: A request to resolve a reference to a product of type 'std::vector<reco::Track>' with ProductID '3:1469' can not be satisfied because the product cannot be found.
65 # with the following:
66 #muonPFsequenceMC.inputTagMuonReco = cms.InputTag('muons')
67 #muonPFsequenceMC.inputTagGenParticles = cms.InputTag('slimmedMuons')
68 
69 
70 # electrons
71 from DQMOffline.PFTau.PFElectronDQMAnalyzer_cfi import pfElectronDQMAnalyzer
72 
73 ElectronValidation1 = pfElectronDQMAnalyzer.clone()
74 ElectronValidation1.BenchmarkLabel = cms.string('slimmedElectronValidation/CompWithGedGsfElectrons')
75 ElectronValidation1.InputCollection = cms.InputTag('slimmedElectrons')
76 ElectronValidation1.MatchCollection = cms.InputTag('gedGsfElectrons')
77 # use electrons plots for muons
78 #ElectronValidation2 = pfElectronDQMAnalyzer.clone()
79 #ElectronValidation2.BenchmarkLabel = slimmedMuonValidation1.BenchmarkLabel
80 #ElectronValidation2.InputCollection = slimmedMuonValidation1.InputCollection
81 #ElectronValidation2.MatchCollection = slimmedMuonValidation1.MatchCollection
82 
83 from JetMETCorrections.Type1MET.pfMETCorrectionType0_cfi import type0PFMEtCorrectionPFCandToVertexAssociationForValidationMiniAOD
84 
85 miniAODDQMSequence = cms.Sequence(
86  type0PFMEtCorrectionPFCandToVertexAssociationForValidationMiniAOD *
87  JetValidation1 * JetValidation2 *
88  JetResValidation1 * JetResValidation2 *
89  METValidation1 * METValidation2 *
90  slimmedMuonValidation1 *
91  ElectronValidation1
92  )