CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 slimmedJetValidation1 = pfJetDQMAnalyzer.clone(
7  BenchmarkLabel = 'slimmedJetValidation/CompWithPFJets',
8  InputCollection = 'slimmedJets',
9  MatchCollection = 'ak4PFJetsCHS', # ak5PFJetsCHS # ak5PFJets
10  ptMin = 10.0,
11  CreatePFractionHistos = True
12  #InputCollection = 'ak5PFJets'
13  #MatchCollection = 'slimmedJets'
14 )
15 
16 slimmedJetValidation2 = pfJetDQMAnalyzer.clone(
17  BenchmarkLabel = 'slimmedJetValidation/CompWithPFJetsEC',
18  #InputCollection = JetValidation1.MatchCollection
19  #MatchCollection = JetValidation1.InputCollection
20  InputCollection = 'slimmedJets',
21  MatchCollection = 'ak4PFJetsNewL1Fast23', # ak4PFJetsCHSEC # ak4PFJetsCHS
22  ptMin = slimmedJetValidation1.ptMin,
23  CreatePFractionHistos = True
24 )
25 
26 
27 # jetRes plots
28 from DQMOffline.PFTau.PFJetResDQMAnalyzer_cfi import pfJetResDQMAnalyzer
29 
30 slimmedJetResValidation1 = pfJetResDQMAnalyzer.clone(
31  InputCollection = slimmedJetValidation1.InputCollection,
32  MatchCollection = slimmedJetValidation1.MatchCollection,
33  ptMin = slimmedJetValidation1.ptMin
34 )
35 
36 slimmedJetResValidation2 = pfJetResDQMAnalyzer.clone(
37  InputCollection = slimmedJetValidation2.InputCollection,
38  MatchCollection = slimmedJetValidation2.MatchCollection,
39  ptMin = slimmedJetValidation2.ptMin
40 )
41 
42 
43 # MET
44 from DQMOffline.PFTau.PFMETDQMAnalyzer_cfi import pfMETDQMAnalyzer
45 
46 slimmedMETValidation1 = pfMETDQMAnalyzer.clone(
47  BenchmarkLabel = 'slimmedMETValidation/CompWithPFMET',
48  InputCollection = 'slimmedMETs',
49  MatchCollection = 'pfMet'
50 )
51 
52 slimmedMETValidation2 = pfMETDQMAnalyzer.clone(
53  BenchmarkLabel = 'slimmedMETValidation/CompWithPFMETT1',
54  InputCollection = 'slimmedMETs',
55  MatchCollection = 'pfMetT1'
56 )
57 
58 
59 # muons
60 from DQMOffline.PFTau.PFMuonDQMAnalyzer_cfi import pfMuonDQMAnalyzer
61 
62 slimmedMuonValidation1 = pfMuonDQMAnalyzer.clone(
63  BenchmarkLabel = 'slimmedMuonValidation/CompWithRecoMuons',
64  InputCollection = 'slimmedMuons',
65  MatchCollection = 'muons'
66 )
67 
68 
69 # electrons
70 from DQMOffline.PFTau.PFElectronDQMAnalyzer_cfi import pfElectronDQMAnalyzer
71 
72 slimmedElectronValidation1 = pfElectronDQMAnalyzer.clone(
73  BenchmarkLabel = 'slimmedElectronValidation/CompWithGedGsfElectrons',
74  InputCollection = 'slimmedElectrons',
75  MatchCollection = 'gedGsfElectrons'
76 )
77 
78 
79 from JetMETCorrections.Type1MET.pfMETCorrectionType0_cfi import type0PFMEtCorrectionPFCandToVertexAssociationForValidationMiniAOD
80 
81 miniAODDQMSequence = cms.Sequence(
82  type0PFMEtCorrectionPFCandToVertexAssociationForValidationMiniAOD *
83  slimmedJetValidation1 * slimmedJetValidation2 *
84  slimmedJetResValidation1 * slimmedJetResValidation2 *
85  slimmedMETValidation1 * slimmedMETValidation2 *
86  slimmedMuonValidation1 *
87  slimmedElectronValidation1
88 )