1 import FWCore.ParameterSet.Config
as cms
4 from PhysicsTools.NanoAOD.nanoDQM_cfi
import nanoDQM
8 _boostedTauPlotsV10 = cms.VPSet()
9 for plot
in nanoDQM.vplots.boostedTau.plots:
10 _boostedTauPlotsV10.append(plot)
11 _boostedTauPlotsV10.extend([
12 Plot1D(
'idMVAoldDMdR032017v2',
'idMVAoldDMdR032017v2', 11, -0.5, 10.5,
'IsolationMVArun2017v2DBoldDMdR0p3wLT ID working point (2017v2): int 1 = VVLoose, 2 = VLoose, 3 = Loose, 4 = Medium, 5 = Tight, 6 = VTight, 7 = VVTight'),
13 Plot1D(
'rawMVAoldDMdR032017v2',
'rawMVAoldDMdR032017v2', 20, -1, 1,
'byIsolationMVArun2017v2DBoldDMdR0p3wLT raw output discriminator (2017v2)')
16 (run2_nanoAOD_106Xv2).toModify(
17 nanoDQM.vplots.boostedTau,
18 plots = _boostedTauPlotsV10
21 _Electron_Run2_plots = cms.VPSet()
22 for plot
in nanoDQM.vplots.Electron.plots:
23 if 'Fall17V2' not in plot.name.value():
24 _Electron_Run2_plots.append(plot)
25 _Electron_Run2_plots.extend([
26 Plot1D(
'dEscaleUp',
'dEscaleUp', 100, -0.01, 0.01,
'#Delta E scaleUp'),
27 Plot1D(
'dEscaleDown',
'dEscaleDown', 100, -0.01, 0.01,
'#Delta E scaleDown'),
28 Plot1D(
'dEsigmaUp',
'dEsigmaUp', 100, -0.1, 0.1,
'#Delta E sigmaUp'),
29 Plot1D(
'dEsigmaDown',
'dEsigmaDown', 100, -0.1, 0.1,
'#Delta E sigmaDown'),
30 Plot1D(
'eCorr',
'eCorr', 20, 0.8, 1.2,
'ratio of the calibrated energy/miniaod energy'),
33 nanoDQM.vplots.Electron,
34 plots = _Electron_Run2_plots
37 _Photon_Run2_plots = cms.VPSet()
39 if 'Fall17V2' in name:
return True 40 if '_quadratic' in name:
return True 41 if 'hoe_PUcorr' in name:
return True 43 for plot
in nanoDQM.vplots.Photon.plots:
44 if not _match(plot.name.value()):
45 _Photon_Run2_plots.append(plot)
46 _Photon_Run2_plots.extend([
47 Plot1D(
'pfRelIso03_all',
'pfRelIso03_all', 20, 0, 2,
'PF relative isolation dR=0.3, total (with rho*EA PU Fall17V2 corrections)'),
48 Plot1D(
'pfRelIso03_chg',
'pfRelIso03_chg', 20, 0, 2,
'PF relative isolation dR=0.3, charged component (with rho*EA PU Fall17V2 corrections)'),
49 Plot1D(
'dEscaleUp',
'dEscaleUp', 100, -0.01, 0.01,
'#Delta E scaleUp'),
50 Plot1D(
'dEscaleDown',
'dEscaleDown', 100, -0.01, 0.01,
'#Delta E scaleDown'),
51 Plot1D(
'dEsigmaUp',
'dEsigmaUp', 100, -0.1, 0.1,
'#Delta E sigmaUp'),
52 Plot1D(
'dEsigmaDown',
'dEsigmaDown', 100, -0.1, 0.1,
'#Delta E sigmaDown'),
53 Plot1D(
'eCorr',
'eCorr', 20, 0.8, 1.2,
'ratio of the calibrated energy/miniaod energy'),
56 nanoDQM.vplots.Photon,
57 plots = _Photon_Run2_plots
60 _FatJet_Run2_plots = cms.VPSet()
61 for plot
in nanoDQM.vplots.FatJet.plots:
62 _FatJet_Run2_plots.append(plot)
63 _FatJet_Run2_plots.extend([
64 Plot1D(
'btagCSVV2',
'btagCSVV2', 20, -1, 1,
' pfCombinedInclusiveSecondaryVertexV2 b-tag discriminator (aka CSVV2)'),
67 _Jet_Run2_plots = cms.VPSet()
68 for plot
in nanoDQM.vplots.Jet.plots:
69 _Jet_Run2_plots.append(plot)
70 _Jet_Run2_plots.extend([
71 Plot1D(
'btagCSVV2',
'btagCSVV2', 20, -1, 1,
' pfCombinedInclusiveSecondaryVertexV2 b-tag discriminator (aka CSVV2)'),
74 _SubJet_Run2_plots = cms.VPSet()
75 for plot
in nanoDQM.vplots.SubJet.plots:
76 _SubJet_Run2_plots.append(plot)
77 _SubJet_Run2_plots.extend([
78 Plot1D(
'btagCSVV2',
'btagCSVV2', 20, -1, 1,
' pfCombinedInclusiveSecondaryVertexV2 b-tag discriminator (aka CSVV2)'),
81 run2_nanoAOD_ANY.toModify(
82 nanoDQM.vplots.FatJet,
83 plots = _FatJet_Run2_plots
86 plots = _Jet_Run2_plots
88 nanoDQM.vplots.SubJet,
89 plots = _SubJet_Run2_plots
93 nanoDQMMC = nanoDQM.clone()
94 nanoDQMMC.vplots.Electron.sels.Prompt = cms.string(
"genPartFlav == 1")
95 nanoDQMMC.vplots.LowPtElectron.sels.Prompt = cms.string(
"genPartFlav == 1")
96 nanoDQMMC.vplots.Muon.sels.Prompt = cms.string(
"genPartFlav == 1")
97 nanoDQMMC.vplots.Photon.sels.Prompt = cms.string(
"genPartFlav == 1")
98 nanoDQMMC.vplots.Tau.sels.Prompt = cms.string(
"genPartFlav == 5")
99 nanoDQMMC.vplots.Jet.sels.Prompt = cms.string(
"genJetIdx != 1")
100 nanoDQMMC.vplots.Jet.sels.PromptB = cms.string(
"genJetIdx != 1 && hadronFlavour == 5")
102 from DQMServices.Core.DQMQualityTester
import DQMQualityTester
104 qtList = cms.untracked.FileInPath(
'PhysicsTools/NanoAOD/test/dqmQualityTests.xml'),
105 prescaleFactor = cms.untracked.int32(1),
106 testInEventloop = cms.untracked.bool(
False),
107 qtestOnEndLumi = cms.untracked.bool(
False),
108 verboseQT = cms.untracked.bool(
True)
111 nanoHarvest = cms.Sequence( nanoDQMQTester )