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.
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.
- Assignee set to Ole Hansen
- Target version set to 1.8
- Estimated time set to 8.00 h
- Responsible set to Ole Hansen
- Parent task changed from #1168 to #1184
- Start date deleted (
02/09/2026)
- Start date set to 03/04/2026
- % Done changed from 0 to 20
- Status changed from New to In Progress
- % Done changed from 20 to 30
- Status changed from In Progress to Resolved
- % Done changed from 30 to 100
THaDetMap now obtains the module information from the central module registry, Decoder::Module::fgModuleTypes(), which is populated at static initialization time. This change is fully transparent to the user code.
Also available in: Atom
PDF