Skip to content
Snippets Groups Projects
Commit fcdb861a authored by Chao Peng's avatar Chao Peng
Browse files

fix a typo

parent d111afee
No related branches found
No related tags found
1 merge request!128add benchmark for pion0
This commit is part of merge request !128. Comments created here will be created in the context of that merge request.
...@@ -125,7 +125,7 @@ scfi_barrel_cl = IslandCluster("scfi_barrel_cl", ...@@ -125,7 +125,7 @@ scfi_barrel_cl = IslandCluster("scfi_barrel_cl",
outputHitCollection="EcalBarrelScFiClusterHits", outputHitCollection="EcalBarrelScFiClusterHits",
splitCluster=False, splitCluster=False,
minClusterCenterEdep=10.*MeV, minClusterCenterEdep=10.*MeV,
localDistXZ=[30*mm, 30*mm] localDistXZ=[30*mm, 30*mm],
sectorDist=5.*cm) sectorDist=5.*cm)
scfi_barrel_clreco = RecoCoG("scfi_barrel_clreco", scfi_barrel_clreco = RecoCoG("scfi_barrel_clreco",
......
...@@ -29,6 +29,9 @@ class AthenaDecoder: ...@@ -29,6 +29,9 @@ class AthenaDecoder:
vals = np.bitwise_and(np.right_shift(idvals, start), (1 << width) - 1) 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) 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 @staticmethod
def getReadouts(path): def getReadouts(path):
res = dict() res = dict()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment