You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before the ECAL settings are loaded, the FEC should be initialized with a set of reasonable hardware values. The problem is, those hardware values appear to be defined differently in at least 3 different places (as far as I can tell).
It then appears Orca, when doing crate init, has its own set of default values it tries to use, defined here: https://github.com/snoplus/orca/blob/master/Source/Objects/Custom%20Hardware/SNO%2B/XL3/ORXL3Model.m#L1399
which are not all the same as the ones in the ml403 code. Also, as far as I could test today, this doesn't even seem to work. When I did a crate init + load hardware (without loading ECAL docs), some of the settings seemed to have default values (eg, vthr was 255), others appeared to be 0 (isetm and tacref for example), and the ones with different defaults between Orca and the fullm403 code appeared to have the defaults from the fullml403 code (rmp for example).
Finally, the settings we use for the detector actually come from the FEC docs (which contains all hardware settings) which get their default values for the hardware (that we don't set during the ECAL) from a couch db document, which I won't link since anyone can edit it.
Currently this is only an issue when running from the teststand, where often the ECAL docs don't exist, so one has to manually set things like the ISETM DACs values in order to get things to work.
The text was updated successfully, but these errors were encountered:
Before the ECAL settings are loaded, the FEC should be initialized with a set of reasonable hardware values. The problem is, those hardware values appear to be defined differently in at least 3 different places (as far as I can tell).
First, it appears the fullml403 code has a set of default values:
https://github.com/snoplus/fullml403/blob/master/src/XL3Utils.c#L536
that doesn't even include all of the hardware values (for example, I don't see
vint
anywhere).It then appears Orca, when doing crate init, has its own set of default values it tries to use, defined here:
https://github.com/snoplus/orca/blob/master/Source/Objects/Custom%20Hardware/SNO%2B/XL3/ORXL3Model.m#L1399
which are not all the same as the ones in the ml403 code. Also, as far as I could test today, this doesn't even seem to work. When I did a crate init + load hardware (without loading ECAL docs), some of the settings seemed to have default values (eg, vthr was 255), others appeared to be 0 (isetm and tacref for example), and the ones with different defaults between Orca and the fullm403 code appeared to have the defaults from the fullml403 code (rmp for example).
Finally, the settings we use for the detector actually come from the FEC docs (which contains all hardware settings) which get their default values for the hardware (that we don't set during the ECAL) from a couch db document, which I won't link since anyone can edit it.
Currently this is only an issue when running from the teststand, where often the ECAL docs don't exist, so one has to manually set things like the ISETM DACs values in order to get things to work.
The text was updated successfully, but these errors were encountered: