Skip to content

Commit

Permalink
Remove disabled channels from light MC event builder
Browse files Browse the repository at this point in the history
  • Loading branch information
liviocali committed May 12, 2024
1 parent f7fe4bf commit 029784b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/proto_nd_flow/reco/light/mc_event_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ def next(self):
# remapped_wvfms[:, np.r_[range(self.n_adcs)], self.busy_channel, self.busy_delay:] = self.busy_ampl

# zero out disabled channels
remapped_wvfms[:, self.disabled_channels[...,0], self.disabled_channels[...,1]] = 0.
if self.disabled_channels:
remapped_wvfms[:, self.disabled_channels[...,0], self.disabled_channels[...,1]] = 0.

# clip to ensure within datatype bounds
remapped_wvfms = remapped_wvfms.clip(np.iinfo(self.wvfm_dtype['samples'].base).min, np.iinfo(self.wvfm_dtype['samples'].base).max)
Expand Down
4 changes: 0 additions & 4 deletions yamls/proto_nd_flow/reco/light/LightEventGeneratorMC.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,3 @@ params:
353, 352, 351, 350, 349, 348, 341, 340, 339, 338, 337, 336,
-1, -1, -1, -1,
377, 376, 375, 374, 373, 372, 365, 364, 363, 362, 361, 360]


disabled_channels:
- [-1,-1]

0 comments on commit 029784b

Please sign in to comment.