From c31707319cab81cdfc2c653b70feec6613dc4921 Mon Sep 17 00:00:00 2001 From: Massimiliano Galli Date: Tue, 16 Nov 2021 13:48:05 +0100 Subject: [PATCH] Add rho and beamspot variables to DQM --- PhysicsTools/NanoAOD/python/globals_cff.py | 1 + PhysicsTools/NanoAOD/python/nanoDQM_cfi.py | 35 +++++++++++++++------- 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/PhysicsTools/NanoAOD/python/globals_cff.py b/PhysicsTools/NanoAOD/python/globals_cff.py index 4b711c5cc041e..1fa6dce476586 100644 --- a/PhysicsTools/NanoAOD/python/globals_cff.py +++ b/PhysicsTools/NanoAOD/python/globals_cff.py @@ -17,6 +17,7 @@ ) rhoTable = cms.EDProducer("GlobalVariablesTableProducer", + name = cms.string("Rho"), variables = cms.PSet( fixedGridRhoAll = ExtVar( cms.InputTag("fixedGridRhoAll"), "double", doc = "rho from all PF Candidates, no foreground removal (for isolation of prompt photons)" ), fixedGridRhoFastjetAll = ExtVar( cms.InputTag("fixedGridRhoFastjetAll"), "double", doc = "rho from all PF Candidates, used e.g. for JECs" ), diff --git a/PhysicsTools/NanoAOD/python/nanoDQM_cfi.py b/PhysicsTools/NanoAOD/python/nanoDQM_cfi.py index 9a2c7572ce5f1..85e17b26b78fb 100644 --- a/PhysicsTools/NanoAOD/python/nanoDQM_cfi.py +++ b/PhysicsTools/NanoAOD/python/nanoDQM_cfi.py @@ -855,16 +855,31 @@ Plot1D('rawMVAoldDMdR032017v2', 'rawMVAoldDMdR032017v2', 20, -1, 1, 'byIsolationMVArun2017v2DBoldDMdR0p3wLT raw output discriminator (2017v2)'), ) ), - L1PreFiringWeight = cms.PSet( - sels = cms.PSet(), - plots = cms.VPSet( - Plot1D('Nom', 'Nom', 21, 0.8, 1.01, 'L1 prefiring weight nominal'), - Plot1D('Up', 'Up', 21, 0.8, 1.01, 'L1 prefiring weight uncertainy up'), - Plot1D('Dn', 'Dn', 21, 0.8, 1.01, 'L1 prefiring weight uncertainty down'), - Plot1D('ECAL_Nom', 'ECAL_Nom', 21, 0.8, 1.01, 'L1 prefiring weight for ECAL objects nominal'), - Plot1D('Muon_Nom', 'Muon_Nom', 21, 0.8, 1.01, 'L1 prefiring weight for muons nominal'), - ) + L1PreFiringWeight = cms.PSet( + sels = cms.PSet(), + plots = cms.VPSet( + Plot1D('Nom', 'Nom', 21, 0.8, 1.01, 'L1 prefiring weight nominal'), + Plot1D('Up', 'Up', 21, 0.8, 1.01, 'L1 prefiring weight uncertainy up'), + Plot1D('Dn', 'Dn', 21, 0.8, 1.01, 'L1 prefiring weight uncertainty down'), + Plot1D('ECAL_Nom', 'ECAL_Nom', 21, 0.8, 1.01, 'L1 prefiring weight for ECAL objects nominal'), + Plot1D('Muon_Nom', 'Muon_Nom', 21, 0.8, 1.01, 'L1 prefiring weight for muons nominal'), + ) - ), + ), + BeamSpot = cms.PSet( + sels = cms.PSet(), + plots = cms.VPSet( + Plot1D('z', 'z', 20, 0.5, 1.5, 'BeamSpot center, z coordinate (cm)'), + Plot1D('zError', 'zError', 20, 0., 0.01, 'Error on BeamSpot center, z coordinate (cm)'), + Plot1D('sigmaZ', 'sigmaZ', 20, 0., 10, 'Width of BeamSpot in z (cm)'), + Plot1D('sigmaZError', 'sigmaZError', 20, 0., 0.01, 'Error on width of BeamSpot in z (cm)'), + ) + ), + Rho = cms.PSet( + sels = cms.PSet(), + plots = cms.VPSet( + Plot1D('fixedGridRhoAll', 'fixedGridRhoAll', 100, 0, 80, 'rho from all PF Candidates, no foreground removal (for isolation of prompt photons)'), + ) + ), ) )