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

get field response with function #324

Merged
merged 2 commits into from
Aug 9, 2024
Merged

Conversation

wenqiang-gu
Copy link
Member

This PR is for ProtoDUNE HD and is discussed in issue #322

This is a non-breaking change, other experiment should not feel any change.

@wenqiang-gu wenqiang-gu requested a review from brettviren August 7, 2024 14:24
@@ -790,7 +790,7 @@ void OmnibusSigProc::init_overall_response(IFrame::pointer frame)

// Convert each average FR to a 2D array
for (int iplane = 0; iplane < 3; ++iplane) {
auto arr = Response::as_array(fravg.planes[iplane], fine_nwires, fine_nticks);
auto arr = Response::as_array(*(fravg.plane(iplane)), fine_nwires, fine_nticks);
Copy link
Member

Choose a reason for hiding this comment

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

This is a problem I only appreciate after seeing it as a code change. See my comment in #322.

@brettviren
Copy link
Member

Fixes #322

@wenqiang-gu
Copy link
Member Author

Aligned with a new proposal in #322, I would like to withdraw the previous solution. Now the following code will be removed in OmnibusSigProc:

Array::array_xxf arr;
if (m_load_fr_with_plane_ident) {
    arr = Response::as_array(*(fravg.plane(iplane)), fine_nwires, fine_nticks);
 }
 else {
    arr = Response::as_array(fravg.planes[iplane], fine_nwires, fine_nticks);
 }

A new PR is submitted here: #325

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.

2 participants