Mismatch between `configs/defaults/default_rd53a.json` and `configs/rd53a_test.json`
We have realized that the default configuration file for rd53a (configs/defaults/default_rd53a.json
) has significant differences with respect to rd53a_test.json
created under configs/
after running any scan for the first time.
We would like to be able to create the config files for a module before running any scan on it, and curently we cannot use the default config file for that. If we do, we get [critical][ scanConsole ]: Can't establish communication, aborting!
. Particularly, this is due to the discrepancy in the "Parameter" section of both configuration files.
configs/defaults/default_rd53a.json
contains just
"Parameter": {
"ChipId": 0,
"InjCap": 8.2,
"Name": "JohnDoe_0",
"VcalPar": [-1.0,0.215,0.0,0.0]
},
and configs/rd53a_test.json
has
"Parameter": {
"ADCcalPar": [10.529999732971192, 0.1932000070810318],
"ChipId": 0,
"InjCap": 8.199999809265137,
"Name": "JohnDoe_0",
"RadSen0Par": [-259.4608154296875, 4086.396728515625],
"RadSen1Par": [-273.251708984375, 4271.02734375],
"RadSen2Par": [-262.9910888671875, 4139.31884765625],
"RadSen3Par": [-271.0639953613281, 4212.3876953125],
"TempSen0Par": [-279.97381591796877, 3502.847412109375],
"TempSen1Par": [-270.3044738769531, 3414.701904296875],
"TempSen2Par": [-271.24407958984377, 3403.028564453125],
"TempSen3Par": [-267.3908386230469, 3363.140380859375],
"VcalPar": [-1.0, 0.2150000035762787, 0.0, 0.0]
},
The new values are hardcoded at the top of Rd53aCfg.cpp
. We are wondering if there is any specific reason to do it in this way, instead of putting them as defaults in the default config file. That would definitely be very convenient for us, and for anyone who wants to create the config files for a module before actually running any scan.
The steps to reproduce this are just cloning and installing Yarr and running any scan (so rd53a_test.json
is created). We are not encountering any errors when using the default config file with Rd53a's emulator.
Thanks a lot!