From f136552467617abde4b8120795026231f64a4a12 Mon Sep 17 00:00:00 2001 From: prasant Date: Mon, 6 Nov 2023 11:47:16 +0100 Subject: [PATCH] Add superclusterEta of photon in NanoAoD --- PhysicsTools/NanoAOD/python/nanoDQM_cfi.py | 1 + PhysicsTools/NanoAOD/python/photons_cff.py | 1 + 2 files changed, 2 insertions(+) diff --git a/PhysicsTools/NanoAOD/python/nanoDQM_cfi.py b/PhysicsTools/NanoAOD/python/nanoDQM_cfi.py index fd450d6b1ea78..659160e7cb6d7 100644 --- a/PhysicsTools/NanoAOD/python/nanoDQM_cfi.py +++ b/PhysicsTools/NanoAOD/python/nanoDQM_cfi.py @@ -627,6 +627,7 @@ Plot1D('electronVeto', 'electronVeto', 2, -0.5, 1.5, 'pass electron veto'), Plot1D('energyErr', 'energyErr', 20, 0, 300, 'energy error of the cluster from regression'), Plot1D('energyRaw', 'energyRaw', 100, 0, 300, 'raw energy of photon supercluster'), + Plot1D('superclusterEta', 'superclusterEta', 20, -3, 3, 'supercluster eta'), Plot1D('eta', 'eta', 20, -3, 3, 'eta'), Plot1D('genPartFlav', 'genPartFlav', 14, -0.5, 13.5, 'Flavour of genParticle for MC matching to status==1 photons or electrons: 1 = prompt photon, 13 = prompt electron, 0 = unknown or unmatched'), NoPlot('genPartIdx'), diff --git a/PhysicsTools/NanoAOD/python/photons_cff.py b/PhysicsTools/NanoAOD/python/photons_cff.py index 68c0dfb463072..5fb06e292767c 100644 --- a/PhysicsTools/NanoAOD/python/photons_cff.py +++ b/PhysicsTools/NanoAOD/python/photons_cff.py @@ -193,6 +193,7 @@ def make_bitmapVID_docstring(id_modules_working_points_pset): electronIdx = Var("?hasUserCand('electron')?userCand('electron').key():-1", "int16", doc="index of the associated electron (-1 if none)"), energyErr = Var("getCorrectedEnergyError('regression2')",float,doc="energy error of the cluster from regression",precision=6), energyRaw = Var("superCluster().rawEnergy()",float,doc="raw energy of photon supercluster", precision=10), + superclusterEta = Var("superCluster().eta()",float,doc="supercluster eta",precision=10), r9 = Var("full5x5_r9()",float,doc="R9 of the supercluster, calculated with full 5x5 region",precision=8), sieie = Var("full5x5_sigmaIetaIeta()",float,doc="sigma_IetaIeta of the supercluster, calculated with full 5x5 region",precision=8), sipip = Var("showerShapeVariables().sigmaIphiIphi", float, doc="sigmaIphiIphi of the supercluster", precision=8),