Active Volume (active_volume)

Determines which edep-sim track segments fall within the active TPC volume and applies fiducial cuts.

larndsim.active_volume.select_active_volume(track_seg, tpc_borders, i_module=-1)[source][source]

Extracts track segments that are within the described TPC borders

Parameters:
  • track_seg (numpy.ndarray) – edep-sim track segment array

  • tpc_borders (numpy.ndarray) – bounding box of each tpc, shape (ntpc, 3, 2)

  • i_module (int) – module id, default value i_module = -1. When i_module < 0, select track in all active TPC volumes. When i_module > 0, it indicates a specific LAr module. The first module has i_module = 1. Then the selected tracks (segments) will be in this module.

Returns:

indices of track segments that are at least partially contained