Project

General

Profile

Actions

Feature #1170

open

Task #1168: Generalize Detector Decode methods

Task #1184: v1.8 updates to THaDetMap

Eliminate hardcoded model list in THaDetMap

Added by Ole Hansen about 1 month ago. Updated 6 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
03/04/2026
Due date:
% Done:

100%

Estimated time:
8.00 h
Spent time:
Responsible:
Ole Hansen

Description

THaDetMap has a lookup table for assigning frontend model numbers to module types (ADC, TDC, etc.) This has always been a terrible hack. This information, and a lot more, should be stored with the Decode::Module subclass implementation of each module.

Since every decoder module registers itself in a global std::set, fgModuleTypes, we can just use that set to replace the questionable lookup table.

Actions

Also available in: Atom PDF