Feature #1183
open
Task #1168: Generalize Detector Decode methods
Task #1186: Update Detector classes
Move detector map initialization to THaDetectorBase
Added by Ole Hansen about 1 month ago.
Updated about 10 hours ago.
Description
Implement a virtual ReadDetectorMap method that can be used by all detectors and which can handle both v1 and v2 detector map formats.
- Parent task changed from #1168 to #1186
- Start date deleted (
02/09/2026)
- Status changed from New to Resolved
- Start date set to 03/22/2026
- % Done changed from 0 to 100
Implemented as virtual Int_t THaDetectorBase::ReadDetMap( FILE* file, TDatime& date, UInt_t flags = 0 ); Searches first for optional key "detector_map" followed by a string (v2 format). If not found, searches for required key "detmap" followed by the usual n-tuples of integers, where n is depends on the given flags (v1 format). The flags are ignored if the detector map has v2 format. If both v1 and v2 keys are present, the v1 definition is ignored (for efficiency).
This feature also comes with unit test in DetMap_t that uses a mock detector test fixture, Podd::Tests::DetMapFromDB and associated database files db_DM1.dat and db_DM2.dat.
Also available in: Atom
PDF