Skip to content
Snippets Groups Projects
Commit d886b8a5 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

One off

parent a285db86
No related branches found
No related tags found
No related merge requests found
......@@ -98,14 +98,14 @@ class TriggerMap(Module):
for dom_id in event_hits.dom_id:
du, floor, _ = self.det.doms[dom_id]
du_idx = self.dus.index(du)
hits[(du_idx - 1) * 18 + floor - 1] += 1
hits[du_idx * 18 + floor - 1] += 1
self.hits.append(hits)
triggered_hits = np.zeros(self.n_rows)
for dom_id in event_hits.dom_id[event_hits.triggered.astype(
'bool')]:
du, floor, _ = self.det.doms[dom_id]
du_idx = self.dus.index(du)
triggered_hits[(du_idx - 1) * 18 + floor - 1] += 1
triggered_hits[du_idx * 18 + floor - 1] += 1
self.triggered_hits.append(triggered_hits)
return blob
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment