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

Keep track of frames that have missing sectors #270

Open
cjh1 opened this issue Oct 24, 2022 · 1 comment
Open

Keep track of frames that have missing sectors #270

cjh1 opened this issue Oct 24, 2022 · 1 comment

Comments

@cjh1
Copy link
Member

cjh1 commented Oct 24, 2022

Keep track of frames that have missing sectors and write this information to HDF5 along with the counting data.

@ercius
Copy link
Collaborator

ercius commented Oct 3, 2023

I think it would be useful to keep track of not only which probe positions are missing data, but also which sectors are missing in a given frame. An example of where this might be useful is when the top part of the detector can be ignored in some experimental geometry.

One way to do this is to use binary operations. I think there are 2^4 (16) different combinations of the four sectors. We can use binary to define if a sector has/has-not and data: '1111', '0111', '1010' etc.

For each sector that exists you bit-wise include a one and or everything together to produce a "loss value":
(int('0001',2) | int('0010',2)| int('0100',2) | int('1000',2))

Thus, all probe positions with this value == 15 have all sectors. Each unique number can be used to determine which sectors are lost for any given probe position with a "loss value" less than fifteen.

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

2 participants