Feature #1171
openFeature #1168: Generalize Detector Decode methods
Task #1187: v1.8 Decoder improvements
Support global configuration strings in crate map
0%
Description
Decoder modules (Decoder::Module subclasses) do not have databases, but there is support for configuring them via "configuration strings" in the crate map. To avoid having to repeat the same string over and over for identical modules (say, 50 FADC250 modules), THaCrateMap should support global (default) configuration strings per module. For example, at the beginning of the crate map, one might have
config 250 fw=3
to pass the configuration string "fw=3" to ALL modules of type 250. Individual modules then only need an explicit configuration string to override or append to the default string, e.g.
==== Crate 10 type vme- slot model bank
3 250 250
4 250 250 cfg:fw=2
5 250 250 cfg:+debug
The module in slot 3 is configured with "fw=3", while the one in slot 4 receives "fw=2" and the one in slot 5, "fw=3,debug". A per-module configuration string starting with "+" is appended to the default.