From fcdb861a5a1ee1942c566489ca4c437ecf29e7e2 Mon Sep 17 00:00:00 2001
From: Chao Peng <cpeng@anl.gov>
Date: Mon, 19 Jul 2021 20:30:25 -0500
Subject: [PATCH] fix a typo

---
 benchmarks/imaging_ecal/options/hybrid_cluster.py | 2 +-
 benchmarks/imaging_ecal/scripts/get_layerids.py   | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/benchmarks/imaging_ecal/options/hybrid_cluster.py b/benchmarks/imaging_ecal/options/hybrid_cluster.py
index 7912a330..707247ab 100644
--- a/benchmarks/imaging_ecal/options/hybrid_cluster.py
+++ b/benchmarks/imaging_ecal/options/hybrid_cluster.py
@@ -125,7 +125,7 @@ scfi_barrel_cl = IslandCluster("scfi_barrel_cl",
         outputHitCollection="EcalBarrelScFiClusterHits",
         splitCluster=False,
         minClusterCenterEdep=10.*MeV,
-        localDistXZ=[30*mm, 30*mm]
+        localDistXZ=[30*mm, 30*mm],
         sectorDist=5.*cm)
 
 scfi_barrel_clreco = RecoCoG("scfi_barrel_clreco",
diff --git a/benchmarks/imaging_ecal/scripts/get_layerids.py b/benchmarks/imaging_ecal/scripts/get_layerids.py
index 3c4e0df4..b62871df 100644
--- a/benchmarks/imaging_ecal/scripts/get_layerids.py
+++ b/benchmarks/imaging_ecal/scripts/get_layerids.py
@@ -29,6 +29,9 @@ class AthenaDecoder:
             vals = np.bitwise_and(np.right_shift(idvals, start), (1 << width) - 1)
             return np.where(np.bitwise_and(np.right_shift(idvals, start + width), 1), vals - (1 << width), vals)
 
+    def decode(self, idvals):
+        return {field: self.get(idvals, field) for field, _ in self.fieldsmap.items()}
+
     @staticmethod
     def getReadouts(path):
         res = dict()
-- 
GitLab