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

Feature module1 reflow #124

Merged
merged 34 commits into from
May 31, 2024
Merged

Feature module1 reflow #124

merged 34 commits into from
May 31, 2024

Conversation

diaza
Copy link
Member

@diaza diaza commented May 2, 2024

Module1 reflow, and makes proto_nd_flow scripts work on data.

@diaza diaza requested a review from krwood May 2, 2024 21:57
if resources['RunData'].is_mc:
has_mc_truth = packet_seg_bt is not None
else:
has_mc_truth = False
Copy link
Member

Choose a reason for hiding this comment

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

At this point has_mc_truth is redundant with resources['RunData'].is_mc

Copy link
Member Author

Choose a reason for hiding this comment

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

Is there no weird situation where it's MC but without backtracking packets?

Copy link
Member

Choose a reason for hiding this comment

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

I would defer this to @liviocali

Copy link
Member

Choose a reason for hiding this comment

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

We need to test this with 2x2 larndsim inputs.

Copy link
Member Author

Choose a reason for hiding this comment

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

MC doesn't go through this part of the if-else statement. I changed this line to accommodate the change that had been made in the tai_ns shape, from (adc, sipm) to (adc)

Copy link
Collaborator

Choose a reason for hiding this comment

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

dumb question, what's the reason for this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

At some point the shape of tai_ns shaped from (n_adcs, n_channels) to (n_adcs), and this change accommodates for that. The change in dimensions had probably only been tested on mc, and this line of code is for data.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sorry that I didn't understand the details. Why it cannot be merged with adc64_event_generator.py?

Copy link
Member Author

Choose a reason for hiding this comment

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

My understanding from @liviocali is that the file format for the 2x2 is different than that used for the single modules

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm also curious why it is set to 10 while the simulation version set it to 200. I'd imagine this parameter should be set the same?

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you mean here for the simulation version?

@diaza diaza merged commit f58217e into develop May 31, 2024
2 checks passed
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.

5 participants