diff --git a/benchmarks/imaging_ecal/options/hybrid_cluster.py b/benchmarks/imaging_ecal/options/hybrid_cluster.py index 7912a3302e25dc3dedb135fe5e3dcaf887a8f2ec..707247aba045066d6050e404fb2f9a91a4e94e81 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 3c4e0df468ff0020f2c9527a8169c7bc197f4657..b62871dfd8a0f5c165f27f97c0b278244ad78f56 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()