Proof-of-concept for selective multiplet reads per ET station #202
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Needs:
This PR on top of #186 is a demonstration of how we can accomplish synchronized distribution of entire multiplets to specific ET analyzer stations. In this case we can demonstrate this with the mock data generator, but the idea is that the DAQ would 'somehow' inject the analogous control words.
This approach uses the six ET control words associated with each event and the corresponding station select words, where ints on position 0, 2, and 4 are tested for equality and ints in position 1, 3, 5 are AND'ed for selection.
Here we write in positions 0, 2, and 4 respectively the event number, multiplet number, and multiplet number mod 30. In position 5 we write a bit pattern with only activated bit at the multiplet number mod 30.
We can now select entire multiplets with a bit pattern in position 5 of the station select registers, e.g. a single station with 0x3fffffff will analyze all events. two stations with
0x15555555and0x2aaaaaaawill analyze alternating multiplets.Why mod 30? The select words for each station are ignored when they are -1, or
0xffffffff. That means that splitting multiplets over 32 bits and having a single station analyze all of them is impossible.