File indexing completed on 2024-04-06 12:23:45
0001 import FWCore.ParameterSet.Config as cms
0002 import copy
0003
0004 from PhysicsTools.NanoAOD.nanoDQM_cfi import nanoDQM
0005 from PhysicsTools.NanoAOD.nanoDQM_tools_cff import *
0006 from PhysicsTools.NanoAOD.nano_eras_cff import *
0007
0008 _boostedTauPlotsV10 = cms.VPSet()
0009 for plot in nanoDQM.vplots.boostedTau.plots:
0010 _boostedTauPlotsV10.append(plot)
0011 _boostedTauPlotsV10.extend([
0012 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'),
0013 Plot1D('rawMVAoldDMdR032017v2', 'rawMVAoldDMdR032017v2', 20, -1, 1, 'byIsolationMVArun2017v2DBoldDMdR0p3wLT raw output discriminator (2017v2)')
0014 ])
0015
0016 (run2_nanoAOD_106Xv2).toModify(
0017 nanoDQM.vplots.boostedTau,
0018 plots = _boostedTauPlotsV10
0019 )
0020
0021
0022 _Electron_extra_plots = nanoDQM.vplots.Electron.plots.copy()
0023 _Electron_extra_plots.extend([
0024 Plot1D('r9Frac', 'r9Frac', 22, 0, 1.1, 'Fractional R9'),
0025 Plot1D('DeltaEtaInSC', 'DeltaEtaInSC', 20, -0.01, 0.01, 'DEta trk and SuperClus'),
0026 Plot1D('DeltaEtaInSeed', 'DeltaEtaInSeed', 20, -0.005, 0.005, 'DEta trk and SeedClus'),
0027 Plot1D('DeltaPhiInSC', 'DeltaPhiInSC', 20, -0.01, 0.01, 'DPhi trk and SuperClus'),
0028 Plot1D('DeltaPhiInSeed', 'DeltaPhiInSeed', 20, -0.01, 0.01, 'DPhi trk and SeedClus'),
0029 Plot1D('full5x5HoverE', 'full5x5HoverE', 20, 0, 0.2, 'full5x5 H/E'),
0030 Plot1D('eSCOverP', 'eSCOverP', 20, 0, 2.0, 'supercluster E/p'),
0031 Plot1D('eEleOverPout', 'eEleOverPout', 20, 0, 2.0, 'supercluster E/pout'),
0032 Plot1D('e1x5', 'e1x5', 20, 0, 20, 'E1x5'),
0033 Plot1D('e2x5max', 'e2x5max', 20, 0, 20, 'E2x5Max'),
0034 Plot1D('e5x5', 'e5x5', 20, 0, 20, 'E5x5'),
0035 Plot1D('closestKFchi2', 'closestKFchi2', 20, 0, 20, 'closest KF trk chi2'),
0036 Plot1D('closestKFNLayers', 'closestKFNLayers', 20, 0, 19, 'closest KF NLayers'),
0037 Plot1D('dr03HcalTowerSumEt', 'dr03HcalTowerSumEt', 20, 0, 40, 'Hcal isolation'),
0038 Plot1D('GSFchi2', 'GSFchi2', 20, 0, 20, 'GSF chi2'),
0039 Plot1D('superclusterEta', 'superclusterEta', 30, 3.0, 3.0, 'supercluster Eta'),
0040 Plot1D('ecalPFClusIso', 'ecalPFClusIso', 20, 0, 40, 'ecal PF Cluster Isolation'),
0041 Plot1D('hcalPFClusIso', 'hcalPFClusIso', 20, 0, 40, 'hcal PF Cluster Isolation'),
0042 Plot1D('nBrem', 'nBrem', 20, 0, 19, 'num of Brem'),
0043 Plot1D('pfPhotonIso', 'pfPhotonIso', 20, 0, 20, 'pf Photon Isolation'),
0044 Plot1D('pfChargedHadIso', 'pfChargedHadIso', 20, 0, 40, 'pf Charged Hadron Isolation'),
0045 Plot1D('pfNeutralHadIso', 'pfNeutralHadIso', 20, 0, 40, 'pfNeutralHadIso'),
0046 Plot1D('sigmaIphiIphiFull5x5', 'sigmaIphiIphiFull5x5', 20, 0, 0.1, 'sigmaIphiIphi Full5x5'),
0047 Plot1D('etaWidth', 'etaWidth', 20, 0, 0.05, 'eta Width'),
0048 Plot1D('phiWidth', 'phiWidth', 20, 0, 0.1, 'phi Width'),
0049 Plot1D('seedClusEnergy', 'seedClusEnergy', 20, 0, 40, 'seedClusEnergy'),
0050 Plot1D('hoeSingleTower', 'hoeSingleTower', 20, 0, 0.2, 'Single Tower H/E'),
0051 Plot1D('hoeFull5x5', 'hoeFull5x5', 20, 0, 0.2, 'Full5x5 H/E'),
0052 Plot1D('sigmaIetaIphiFull5x5', 'sigmaIetaIphiFull5x5', 20, 0, 0.2, 'full5x5 sigmaIetaIphi'),
0053 Plot1D('eMax', 'eMax', 20, 0, 40, 'eMax'),
0054 Plot1D('e2nd', 'e2nd', 20, 0, 40, 'e2nd'),
0055 Plot1D('eTop', 'eTop', 20, 0, 40, 'eTop'),
0056 Plot1D('eBottom', 'eBottom', 20, 0, 40, 'eBottom'),
0057 Plot1D('eLeft', 'eLeft', 20, 0, 40, 'eLeft'),
0058 Plot1D('eRight', 'eRight', 20, 0, 40, 'eRight'),
0059 Plot1D('e2x5Top', 'e2x5Top', 20, 0, 40, 'e2x5Top'),
0060 Plot1D('e2x5Bottom', 'e2x5Bottom', 20, 0, 40, 'e2x5Bottom'),
0061 Plot1D('e2x5Left', 'e2x5Left', 20, 0, 40, 'e2x5Left'),
0062 Plot1D('e2x5Right', 'e2x5Right', 20, 0, 40, 'e2x5Right'),
0063 Plot1D('nSaturatedXtals', 'nSaturatedXtals', 10, 0, 9, 'number of Saturated crystals'),
0064 Plot1D('numberOfClusters', 'numberOfClusters', 10, 0, 9, 'number of Clusters'),
0065 Plot1D('istrackerDriven', 'istrackerDriven', 2, 0, 1, 'istrackerDriven'),
0066 Plot1D('superclusterPhi', 'superclusterPhi', 32, -3.2, 3.2, 'supercluster Phi'),
0067 Plot1D('seedClusterEta', 'seedClusterEta', 30, -3.0, 3.0, 'seedCluster Eta'),
0068 Plot1D('seedClusterPhi', 'seedClusterPhi', 32, -3.2, 3.2, 'seedCluster Phi'),
0069 Plot1D('superclusterEnergy', 'superclusterEnergy', 80, 0, 80, 'supercluster Energy'),
0070 Plot1D('energy', 'energy', 20, 0, 80, 'energy'),
0071 Plot1D('trackMomentumError', 'trackMomentumError', 20, 0, 1.0, 'trackMomentumError'),
0072 Plot1D('trackMomentum', 'trackMomentum', 20, 0, 80, 'trackMomentum'),
0073 Plot1D('trkLayersWithMeas', 'trkLayersWithMeas', 20, 0, 19, 'trkLayersWithMeas'),
0074 Plot1D('nValidPixBarrelHits', 'nValidPixBarrelHits', 5, 0, 4, 'nValidPixBarrelHits'),
0075 Plot1D('nValidPixEndcapHits', 'nValidPixEndcapHits', 20, 0, 19, 'nValidPixEndcapHits'),
0076 Plot1D('superClusterFbrem', 'superClusterFbrem', 12, 0, 1.2, 'superClusterFbrem'),
0077 Plot1D('convVtxFitProb', 'convVtxFitProb', 12, 0, 1.2, 'convVtxFitProb'),
0078 Plot1D('clustersSize', 'clustersSize', 20, 0, 19, 'clustersSize'),
0079 Plot1D('iEtaMod5', 'iEtaMod5', 20, 0, 40, 'iEtaMod5'),
0080 Plot1D('iEtaMod20', 'iEtaMod20', 20, 0, 40, 'iEtaMod20'),
0081 Plot1D('iPhiMod2', 'iPhiMod2', 20, 0, 199, 'iPhiMod2'),
0082 Plot1D('iPhiMod20', 'iPhiMod20', 100, 0, 99, 'iPhiMod20')
0083 ])
0084
0085 _Photon_extra_plots = nanoDQM.vplots.Photon.plots.copy()
0086 _Photon_extra_plots.extend([
0087 Plot1D('r9Frac', 'r9Frac', 22, 0, 1.1, 'Fractional R9'),
0088 Plot1D('energy', 'energy', 20, 0, 80, 'energy'),
0089 Plot1D('rawPreshowerEnergy', 'rawPreshowerEnergy', 20, 0, 80, 'rawPreshowerEnergy'),
0090 Plot1D('seedClusEnergy', 'seedClusEnergy', 20, 0, 40, 'seedClusEnergy'),
0091 Plot1D('e5x5', 'e5x5', 20, 0, 20, 'E5x5'),
0092 Plot1D('dEtaSeedClusSuperClus', 'dEtaSeedClusSuperClus', 20, 0, 1.0, 'dEtaSeedClusSuperClus'),
0093 Plot1D('dPhiSeedClusSuperClus', 'dPhiSeedClusSuperClus', 20, 0, 1.0, 'dPhiSeedClusSuperClus'),
0094 Plot1D('sigmaIphiIphiFull5x5', 'sigmaIphiIphiFull5x5', 20, 0, 0.1, 'sigmaIphiIphi Full5x5'),
0095 Plot1D('eMax', 'eMax', 20, 0, 40, 'eMax'),
0096 Plot1D('e2nd', 'e2nd', 20, 0, 40, 'e2nd'),
0097 Plot1D('eTop', 'eTop', 20, 0, 40, 'eTop'),
0098 Plot1D('eBottom', 'eBottom', 20, 0, 40, 'eBottom'),
0099 Plot1D('eLeft', 'eLeft', 20, 0, 40, 'eLeft'),
0100 Plot1D('eRight', 'eRight', 20, 0, 40, 'eRight'),
0101 Plot1D('e2x5Top', 'e2x5Top', 20, 0, 40, 'e2x5Top'),
0102 Plot1D('e2x5Bottom', 'e2x5Bottom', 20, 0, 40, 'e2x5Bottom'),
0103 Plot1D('e2x5Left', 'e2x5Left', 20, 0, 40, 'e2x5Left'),
0104 Plot1D('e2x5Right', 'e2x5Right', 20, 0, 40, 'e2x5Right'),
0105 Plot1D('nSaturatedXtals', 'nSaturatedXtals', 10, 0, 9, 'number of Saturated crystals'),
0106 Plot1D('numberOfClusters', 'numberOfClusters', 10, 0, 9, 'number of Clusters'),
0107 Plot1D('hadTowOverEm', 'hadTowOverEm', 20, 0, 0.2, 'Single Tower H/E'),
0108 Plot1D('ecalRecHitIsolation', 'ecalRecHitIsolation', 20, 0, 40, 'ecal RecHit Isolation'),
0109 Plot1D('sigmaIetaIetaFrac', 'sigmaIetaIetaFrac', 20, 0, 0.08, 'sigmaIetaIetaFrac'),
0110 Plot1D('chargedHadronIso', 'chargedHadronIso', 20, 0, 40, 'chargedHadronIso'),
0111 Plot1D('iEtaMod5', 'iEtaMod5', 20, 0, 40, 'iEtaMod5'),
0112 Plot1D('iEtaMod20', 'iEtaMod20', 20, 0, 40, 'iEtaMod20'),
0113 Plot1D('iPhiMod2', 'iPhiMod2', 20, 0, 199, 'iPhiMod2'),
0114 Plot1D('iPhiMod20', 'iPhiMod20', 100, 0, 99, 'iPhiMod20')
0115 ])
0116
0117 _Electron_Run2_plots = cms.VPSet()
0118 for plot in nanoDQM.vplots.Electron.plots:
0119 if 'Fall17V2' not in plot.name.value():
0120 _Electron_Run2_plots.append(plot)
0121 _Electron_Run2_plots.extend([
0122 Plot1D('dEscaleUp', 'dEscaleUp', 100, -0.01, 0.01, '#Delta E scaleUp'),
0123 Plot1D('dEscaleDown', 'dEscaleDown', 100, -0.01, 0.01, '#Delta E scaleDown'),
0124 Plot1D('dEsigmaUp', 'dEsigmaUp', 100, -0.1, 0.1, '#Delta E sigmaUp'),
0125 Plot1D('dEsigmaDown', 'dEsigmaDown', 100, -0.1, 0.1, '#Delta E sigmaDown'),
0126 Plot1D('eCorr', 'eCorr', 20, 0.8, 1.2, 'ratio of the calibrated energy/miniaod energy'),
0127 ])
0128 run2_egamma.toModify(
0129 nanoDQM.vplots.Electron,
0130 plots = _Electron_Run2_plots
0131 )
0132
0133 _Photon_Run2_plots = cms.VPSet()
0134 def _match(name):
0135 if 'Fall17V2' in name: return True
0136 if '_quadratic' in name: return True
0137 if 'hoe_PUcorr' in name: return True
0138 return False
0139 for plot in nanoDQM.vplots.Photon.plots:
0140 if not _match(plot.name.value()):
0141 _Photon_Run2_plots.append(plot)
0142 _Photon_Run2_plots.extend([
0143 Plot1D('pfRelIso03_all', 'pfRelIso03_all', 20, 0, 2, 'PF relative isolation dR=0.3, total (with rho*EA PU Fall17V2 corrections)'),
0144 Plot1D('pfRelIso03_chg', 'pfRelIso03_chg', 20, 0, 2, 'PF relative isolation dR=0.3, charged component (with rho*EA PU Fall17V2 corrections)'),
0145 Plot1D('dEscaleUp', 'dEscaleUp', 100, -0.01, 0.01, '#Delta E scaleUp'),
0146 Plot1D('dEscaleDown', 'dEscaleDown', 100, -0.01, 0.01, '#Delta E scaleDown'),
0147 Plot1D('dEsigmaUp', 'dEsigmaUp', 100, -0.1, 0.1, '#Delta E sigmaUp'),
0148 Plot1D('dEsigmaDown', 'dEsigmaDown', 100, -0.1, 0.1, '#Delta E sigmaDown'),
0149 Plot1D('eCorr', 'eCorr', 20, 0.8, 1.2, 'ratio of the calibrated energy/miniaod energy'),
0150 ])
0151 run2_egamma.toModify(
0152 nanoDQM.vplots.Photon,
0153 plots = _Photon_Run2_plots
0154 )
0155
0156 _FatJet_Run2_plots = cms.VPSet()
0157 for plot in nanoDQM.vplots.FatJet.plots:
0158 if 'EF' not in plot.name.value():
0159 _FatJet_Run2_plots.append(plot)
0160 _FatJet_Run2_plots.extend([
0161 Plot1D('btagCSVV2', 'btagCSVV2', 20, -1, 1, ' pfCombinedInclusiveSecondaryVertexV2 b-tag discriminator (aka CSVV2)'),
0162 Plot1D('btagDeepB', 'btagDeepB', 20, -1, 1, 'Deep B+BB btag discriminator'),
0163 Plot1D('btagHbb', 'btagHbb', 20, -1, 1, 'Higgs to BB tagger discriminator'),
0164 Plot1D('btagCMVA', 'btagCMVA', 20, -1, 1, 'CMVA V2 btag discriminator'),
0165 Plot1D('btagDDBvLV2', 'btagDDBvLV2', 20, 0, 1, 'DeepDoubleX V2(mass-decorrelated) discriminator for H(Z)->bb vs QCD'),
0166 Plot1D('btagDDCvBV2', 'btagDDCvBV2', 20, 0, 1, 'DeepDoubleX V2 (mass-decorrelated) discriminator for H(Z)->cc vs H(Z)->bb'),
0167 Plot1D('btagDDCvLV2', 'btagDDCvLV2', 20, 0, 1, 'DeepDoubleX V2 (mass-decorrelated) discriminator for H(Z)->cc vs QCD'),
0168 Plot1D('deepTagMD_H4qvsQCD', 'deepTagMD_H4qvsQCD', 20, 0, 1, 'Mass-decorrelated DeepBoostedJet tagger H->4q vs QCD discriminator'),
0169 Plot1D('deepTagMD_HbbvsQCD', 'deepTagMD_HbbvsQCD', 20, 0, 1, 'Mass-decorrelated DeepBoostedJet tagger H->bb vs QCD discriminator'),
0170 Plot1D('deepTagMD_TvsQCD', 'deepTagMD_TvsQCD', 20, 0, 1, 'Mass-decorrelated DeepBoostedJet tagger top vs QCD discriminator'),
0171 Plot1D('deepTagMD_WvsQCD', 'deepTagMD_WvsQCD', 20, 0, 1, 'Mass-decorrelated DeepBoostedJet tagger W vs QCD discriminator'),
0172 Plot1D('deepTagMD_ZHbbvsQCD', 'deepTagMD_ZHbbvsQCD', 20, 0, 1, 'Mass-decorrelated DeepBoostedJet tagger Z/H->bb vs QCD discriminator'),
0173 Plot1D('deepTagMD_ZHccvsQCD', 'deepTagMD_ZHccvsQCD', 20, 0, 1, 'Mass-decorrelated DeepBoostedJet tagger Z/H->cc vs QCD discriminator'),
0174 Plot1D('deepTagMD_ZbbvsQCD', 'deepTagMD_ZbbvsQCD', 20, 0, 1, 'Mass-decorrelated DeepBoostedJet tagger Z->bb vs QCD discriminator'),
0175 Plot1D('deepTagMD_ZvsQCD', 'deepTagMD_ZvsQCD', 20, 0, 1, 'Mass-decorrelated DeepBoostedJet tagger Z vs QCD discriminator'),
0176 Plot1D('deepTagMD_bbvsLight', 'deepTagMD_bbvsLight', 20, 0, 1, 'Mass-decorrelated DeepBoostedJet tagger Z/H/gluon->bb vs light flavour discriminator'),
0177 Plot1D('deepTagMD_ccvsLight', 'deepTagMD_ccvsLight', 20, 0, 1, 'Mass-decorrelated DeepBoostedJet tagger Z/H/gluon->cc vs light flavour discriminator'),
0178 Plot1D('deepTag_H', 'deepTag_H', 20, 0, 1, 'DeepBoostedJet tagger H(bb,cc,4q) sum'),
0179 Plot1D('deepTag_QCD', 'deepTag_QCD', 20, 0, 1, 'DeepBoostedJet tagger QCD(bb,cc,b,c,others) sum'),
0180 Plot1D('deepTag_QCDothers', 'deepTag_QCDothers', 20, 0, 1, 'DeepBoostedJet tagger QCDothers value'),
0181 Plot1D('deepTag_TvsQCD', 'deepTag_TvsQCD', 20, 0, 1, 'DeepBoostedJet tagger top vs QCD discriminator'),
0182 Plot1D('deepTag_WvsQCD', 'deepTag_WvsQCD', 20, 0, 1, 'DeepBoostedJet tagger W vs QCD discriminator'),
0183 Plot1D('deepTag_ZvsQCD', 'deepTag_ZvsQCD', 20, 0, 1, 'DeepBoostedJet tagger Z vs QCD discriminator'),
0184 Plot1D('particleNetLegacy_mass', 'particleNetLegacy_mass', 25, 0, 250, 'ParticleNet Legacy Run-2 mass regression'),
0185 Plot1D('particleNetLegacy_Xbb', 'particleNetLegacy_Xbb', 20, 0, 1, 'ParticleNet Legacy Run-2 X->bb score'),
0186 Plot1D('particleNetLegacy_Xcc', 'particleNetLegacy_Xcc', 20, 0, 1, 'ParticleNet Legacy Run-2 X->cc score'),
0187 Plot1D('particleNetLegacy_Xqq', 'particleNetLegacy_Xqq', 20, 0, 1, 'ParticleNet Legacy Run-2 X->qq (uds) score'),
0188 Plot1D('particleNetLegacy_QCD', 'particleNetLegacy_QCD', 20, 0, 1, 'ParticleNet Legacy Run-2 QCD score'),
0189 ])
0190
0191 _FatJet_EarlyRun3_plots = cms.VPSet()
0192 for plot in _FatJet_Run2_plots:
0193 if 'particleNet_' not in plot.name.value() and 'btagCSVV2' not in plot.name.value() \
0194 and 'Multiplicity' not in plot.name.value() and 'EF' not in plot.name.value():
0195 _FatJet_EarlyRun3_plots.append(plot)
0196 _FatJet_EarlyRun3_plots.extend([
0197 Plot1D('btagDeepB', 'btagDeepB', 20, -1, 1, 'Deep B+BB btag discriminator'),
0198 Plot1D('btagHbb', 'btagHbb', 20, -1, 1, 'Higgs to BB tagger discriminator'),
0199 Plot1D('btagCMVA', 'btagCMVA', 20, -1, 1, 'CMVA V2 btag discriminator'),
0200 Plot1D('btagDDBvLV2', 'btagDDBvLV2', 20, 0, 1, 'DeepDoubleX V2(mass-decorrelated) discriminator for H(Z)->bb vs QCD'),
0201 Plot1D('btagDDCvBV2', 'btagDDCvBV2', 20, 0, 1, 'DeepDoubleX V2 (mass-decorrelated) discriminator for H(Z)->cc vs H(Z)->bb'),
0202 Plot1D('btagDDCvLV2', 'btagDDCvLV2', 20, 0, 1, 'DeepDoubleX V2 (mass-decorrelated) discriminator for H(Z)->cc vs QCD'),
0203 ])
0204
0205 _Jet_Run2_plots = cms.VPSet()
0206 for plot in nanoDQM.vplots.Jet.plots:
0207 _Jet_Run2_plots.append(plot)
0208 if 'Multiplicity' not in plot.name.value() and 'hfHEF' not in plot.name.value() and 'hfEmEF' not in plot.name.value():
0209 _Jet_Run2_plots.append(plot)
0210 _Jet_Run2_plots.extend([
0211 Plot1D('btagCSVV2', 'btagCSVV2', 20, -1, 1, ' pfCombinedInclusiveSecondaryVertexV2 b-tag discriminator (aka CSVV2)'),
0212 Plot1D('btagCMVA', 'btagCMVA', 20, -1, 1, 'CMVA V2 btag discriminator'),
0213 Plot1D('btagDeepB', 'btagDeepB', 20, -1, 1, 'Deep B+BB btag discriminator'),
0214 Plot1D('btagDeepC', 'btagDeepC', 20, 0, 1, 'DeepCSV charm btag discriminator'),
0215 Plot1D('btagDeepCvB', 'btagDeepCvB', 20, -1, 1, 'DeepCSV c vs b+bb discriminator'),
0216 Plot1D('btagDeepCvL', 'btagDeepCvL', 20, -1, 1, 'DeepCSV c vs udsg discriminator')
0217 ])
0218
0219 _Jet_EarlyRun3_plots = cms.VPSet()
0220 for plot in nanoDQM.vplots.Jet.plots:
0221 if 'PNet' not in plot.name.value() and 'Multiplicity' not in plot.name.value() \
0222 and 'hfHEF' not in plot.name.value() and 'hfEmEF' not in plot.name.value():
0223 _Jet_EarlyRun3_plots.append(plot)
0224
0225
0226 _SubJet_Run2_plots = cms.VPSet()
0227 for plot in nanoDQM.vplots.SubJet.plots:
0228 _SubJet_Run2_plots.append(plot)
0229 _SubJet_Run2_plots.extend([
0230 Plot1D('btagCSVV2', 'btagCSVV2', 20, -1, 1, ' pfCombinedInclusiveSecondaryVertexV2 b-tag discriminator (aka CSVV2)'),
0231 ])
0232 _SubJet_EarlyRun3_plots = cms.VPSet()
0233 for plot in nanoDQM.vplots.SubJet.plots:
0234 if 'area' not in plot.name.value():
0235 _SubJet_EarlyRun3_plots.append(plot)
0236
0237 run2_nanoAOD_ANY.toModify(
0238 nanoDQM.vplots.FatJet,
0239 plots = _FatJet_Run2_plots
0240 ).toModify(
0241 nanoDQM.vplots.Jet,
0242 plots = _Jet_Run2_plots
0243 ).toModify(
0244 nanoDQM.vplots.SubJet,
0245 plots = _SubJet_Run2_plots
0246 )
0247
0248 (run3_nanoAOD_122 | run3_nanoAOD_124).toModify(
0249 nanoDQM.vplots.FatJet,
0250 plots = _FatJet_EarlyRun3_plots
0251 ).toModify(
0252 nanoDQM.vplots.Jet,
0253 plots = _Jet_EarlyRun3_plots
0254 ).toModify(
0255 nanoDQM.vplots.SubJet,
0256 plots = _SubJet_EarlyRun3_plots
0257 )
0258
0259
0260 _Pileup_pre13X_plots = cms.VPSet()
0261 for plot in nanoDQM.vplots.Pileup.plots:
0262 if 'pthatmax' not in plot.name.value():
0263 _Pileup_pre13X_plots.append(plot)
0264
0265 (run2_nanoAOD_ANY | run3_nanoAOD_122 | run3_nanoAOD_124).toModify(
0266 nanoDQM.vplots.Pileup,
0267 plots = _Pileup_pre13X_plots
0268 )
0269
0270
0271 nanoDQMMC = nanoDQM.clone()
0272 nanoDQMMC.vplots.Electron.sels.Prompt = cms.string("genPartFlav == 1")
0273 nanoDQMMC.vplots.LowPtElectron.sels.Prompt = cms.string("genPartFlav == 1")
0274 nanoDQMMC.vplots.Muon.sels.Prompt = cms.string("genPartFlav == 1")
0275 nanoDQMMC.vplots.Photon.sels.Prompt = cms.string("genPartFlav == 1")
0276 nanoDQMMC.vplots.Tau.sels.Prompt = cms.string("genPartFlav == 5")
0277 nanoDQMMC.vplots.Jet.sels.Prompt = cms.string("genJetIdx != 1")
0278 nanoDQMMC.vplots.Jet.sels.PromptB = cms.string("genJetIdx != 1 && hadronFlavour == 5")
0279
0280 from DQMServices.Core.DQMQualityTester import DQMQualityTester
0281 nanoDQMQTester = DQMQualityTester(
0282 qtList = cms.untracked.FileInPath('PhysicsTools/NanoAOD/test/dqmQualityTests.xml'),
0283 prescaleFactor = cms.untracked.int32(1),
0284 testInEventloop = cms.untracked.bool(False),
0285 qtestOnEndLumi = cms.untracked.bool(False),
0286 verboseQT = cms.untracked.bool(True)
0287 )
0288
0289 nanoHarvest = cms.Sequence( nanoDQMQTester )