Closed aeoranday closed 3 months ago
Latest commit made the word choice changes to match what is used in detchannelmaps
. Configs and variables now refer to planes 0, 1, and 2 instead of induction 1, induction 2, and collection. Also prefixed with tpg_
.
This PR adds the implementation of TPG thresholding by plane. There are related PRs in daqconf, fddaqconf, and readoutlibs to include the configurables for these thresholds.
By default, the implementation makes use of the general
tpg_threshold
value unless a specific threshold is given forcollection_threshold
,induction2_threshold
, andinduction1_threshold
. These thresholds are then applied according to the plane identification from detchannelmaps.Testing was done with short runs where two of the three planes have a high threshold and the last plane has a low threshold. This was repeated for each of
SimpleThreshold
,AbsRS
, andStandardRS
. Then I checked that the TriggerPrimitives in the generated TPStream were only from the low threshold plane and above the required threshold. The following snippet is the exact check.Testing was consistent for each of the three planes.