Skip to content

Conversation

@mholtrop
Copy link
Collaborator

This code allows semi-correct () decoding for the "old" style data, were 40 helicity decoder banks show up in one event, and the correct type data where this bank is in each event.
(
) Semi-correct because it will only parse one of those 40 helicity decoder entries.

The code was tested on run 19400 file 40, which has helicity decoder data every event, and 19407 which has 40 in one event and no crash or error is observer.

Please double check the parsing of the timestamp information.

@baltzell
Copy link
Collaborator

Looks like I accidentally posted this on the corresponding issue instead of this PR ...

Running this on one of the few files I'd been using for testing (run 19349, file 40), looks to me like the bit sequences are now off in the HEL::decoder bank. For example:

Pair:      11011101110111011101110111011101
Pattern:   00000000000000000000000000000110
Helicity:  01010101010101010101010101010101
HelicityP: 10011010010110011001101001011010

Previously they were all consitent with good quartet patterns, assuming signal inversion (which has now been confirmed).

System.err.println("ERROR: HelicityDecoder data is corrupted. Not enough data words.");
return null;
}
int tsettle = DataUtils.getInteger(intData[i_data_offset+9], 0, 0) > 0 ? 1 : -1;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i_data_offset should be incremented by 1 before this line

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for catching that Raffaella. You are quite correct. An update was pushed.
I still need to do a detailed analysis of the helicity. I am not quite understanding what Nathan is referring to.

Copy link
Collaborator

@baltzell baltzell Jan 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm referring to the most critical data in the HEL::decoder bank, those "Array" variables that contain the helicity state sequences seen so far. Previously they were consistent with good sequences, and, in this PR prior to Raffaella's recent suggestion, were not.

@baltzell
Copy link
Collaborator

The resulting HEL::decoder bank looks good again regarding helicity bit sequences.

@baltzell baltzell merged commit 4169eb8 into development Jan 30, 2024
@baltzell baltzell deleted the issue_173_helicity_decoder branch January 30, 2024 01:22
@baltzell baltzell mentioned this pull request Jan 30, 2024
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

Successfully merging this pull request may close these issues.

4 participants