Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEC default hardware settings defined differently in at least 3 different places #527

Open
tannerbk opened this issue Mar 5, 2019 · 0 comments

Comments

@tannerbk
Copy link

tannerbk commented Mar 5, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant