Skip to content

Commit

Permalink
Merge pull request #156 from DUNE/feature_billy_variable_window
Browse files Browse the repository at this point in the history
Feature billy variable window
  • Loading branch information
MadivB authored Jan 22, 2025
2 parents a7489fc + e96058c commit 587566c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/proto_nd_flow/reco/charge/raw_event_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ class ExtTrigRawEventBuilder(RawEventBuilder):
'''
default_window = 1820 * 1.1
default_rollover_ticks = 1E7
default_shifted_event_dt = 70 #This is for accounting the fact that the trigger packet can potentially arrive 7 microseconds later than the beam spill
default_shifted_event_dt = -70 #This is for accounting the fact that the trigger packet can potentially arrive 7 microseconds later than the beam spill
default_trig_io_grp = 1 # -1 -> all io groups

default_build_off_beam_events=False
Expand Down Expand Up @@ -487,7 +487,7 @@ def build_events(self, packets, unix_ts, mc_assn=None):
# Only used if off-beam events are built later with unused packets
used_mask = np.zeros( len(unix_ts) ) < -1
for i, start_idx in enumerate(beam_trigger_idxs):
this_trig_time = ts[start_idx]-self.shifted_event_dt
this_trig_time = ts[start_idx]+self.shifted_event_dt
this_trig_time += self.rollover_ticks if this_trig_time < 0 else 0 # Considered Roll-Over Issue
start_times.append(this_trig_time)
# FIXME & (ts % 1E7 != 0) is a hot fix for PPS signal
Expand Down
2 changes: 1 addition & 1 deletion yamls/proto_nd_flow/reco/charge/RawEventGeneratorData.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ params:
rollover_ticks: 10000000 # PPS = 1e7 ticks
build_off_beam_events : True
VALIDATE_HACK : False
shifted_event_dt : 70
shifted_event_dt : -70

0 comments on commit 587566c

Please sign in to comment.