Brief summary of issue
While preparing the ULB setups with VFAT3 hybrid V2, retrieving and writing the proper IREF values and ADC and CAL_DAC calibration values revealed to be a long and error-prone task.
Since the Reed-Muller encoding is not implemented in hybrids V2 the getCalInfoFromDB.py is unfortunately useless.
This feature request aims at providing an option to manually override the chip IDs read through the VFAT3 slow controls. Therefore getting the nominal IREF values and ADC and CAL_DAC calibration values would be as simple as filling a list of chip IDs.
Types of issue
Expected Behavior
The user should have the possibility to manually override some chip IDs when using VFAT3s for which the Reed-Muller encoding is not used (or not working).
I propose to add a new option to getCalInfoFromDB.py which would point to a file containing the VFAT positions and chip IDs which must be overridden :
If the option is set but the filename not provided then data are retrieved from a well-know location. For example a file named chipIDOverride.txt next to calFile_ADC0_${DET_NAME}.txt in the $DATA_PATH.
Current Behavior
Chip IDs are only read from the VFAT through slow controls and decoded from the Reed-Muller encoding.
Context (for feature requests)
VFAT3 hybrids v2 are used in test stands inside and outside of CERN. Standard tools should be usable.
Alternative proposal
The chip ID override file could be written somewhere on the CTP7. Whenever a chip ID is requested the CTP7 module would read the overrides from there. Since this alternative proposal requires to edit files on the CTP7 and that the file do not "follow" the detector I would prefer the first solution.
Your Environment