Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Threshold By Plane Configurables #35

Merged
merged 4 commits into from
May 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions schema/fddaqconf/readoutgen.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,15 @@ local cs = {
s.field( "latency_buffer_size", types.count, default=499968, doc="Size of the latency buffers (in number of elements)"),
s.field( "fragment_send_timeout_ms", types.count, default=10, doc="The send timeout that will be used in the readout modules when sending fragments downstream (i.e. to the TRB)."),
s.field( "enable_tpg", types.flag, default=false, doc="Enable TPG"),
s.field( "tpg_threshold", types.count, default=120, doc="Select TPG threshold"),
s.field( "tpg_threshold_default", types.count, default=120, doc="Select the default TPG threshold."),
s.field( "tpg_threshold_plane0", types.count, default=0, doc="Select TPG threshold for plane 0. Defaults to tpg_threshold_default value if empty."),
s.field( "tpg_threshold_plane1", types.count, default=0, doc="Select TPG threshold for plane 1. Defaults to tpg_threshold_default value if empty."),
s.field( "tpg_threshold_plane2", types.count, default=0, doc="Select TPG threshold for plane 2. Defaults to tpg_threshold_default value if empty."),
s.field( "tpg_rs_memory_factor", types.float4, default=0.8, doc="Memory factor (R) for the TPG running sum algorithms"),
s.field( "tpg_rs_scale_factor", types.count, default=2, doc="Scale factor for the TPG running sum algorithms"),
s.field( "tpg_frugal_streaming_accumulator_limit", types.count, default=10, doc="Accumulator limit for the frugal streaming method"),
s.field( "tpg_algorithm", types.string, default="SimpleThreshold", doc="Select TPG algorithm (SimpleThreshold, AbsRS)"),
s.field( "enable_simple_threshold_on_collection", types.flag, default=false, doc="Enable SimpleThreshold TPG algorithm only on collection planes when a Running Sum algorithm is enabled"),
s.field( "enable_simple_threshold_on_plane2", types.flag, default=false, doc="Enable SimpleThreshold TPG algorithm only on plane 2 when a Running Sum algorithm is enabled."),
s.field( "tpg_channel_mask", self.id_list, default=[], doc="List of offline channels to be masked out from the TPHandler"),
s.field( "tpset_min_latency_ticks", types.uint8, 3125000, doc="Latency introduced to allow for TPs to arrive and be reordered, default is 50 ms"),
s.field( "tardy_tp_quiet_time_at_start_sec", types.int4, 10, doc="Amount of time that warning messages about tardy TPs will be suppressed at the start of a run, default is 10s"),
Expand Down