Skip to content

Conversation

@ChSonnabend
Copy link
Collaborator

No description provided.

@ChSonnabend ChSonnabend requested a review from davidrohr as a code owner March 5, 2025 19:48
@github-actions
Copy link
Contributor

github-actions bot commented Mar 5, 2025

REQUEST FOR PRODUCTION RELEASES:
To request your PR to be included in production software, please add the corresponding labels called "async-" to your PR. Add the labels directly (if you have the permissions) or add a comment of the form (note that labels are separated by a ",")

+async-label <label1>, <label2>, !<label3> ...

This will add <label1> and <label2> and removes <label3>.

The following labels are available
async-2023-pbpb-apass4
async-2023-pp-apass4
async-2024-pp-apass1
async-2022-pp-apass7
async-2024-pp-cpass0
async-2024-PbPb-apass1
async-2024-ppRef-apass1
async-2024-PbPb-apass2
async-2023-PbPb-apass5

@ChSonnabend
Copy link
Collaborator Author

Ping @davidrohr

Please consider the following formatting changes to AliceO2Group#14020
bool correct = (leftEdge) ? (pad < mPadMean) : (pad > mPadMean);
if (leftEdge && pad == 1) { // only check charge at boundary if maximum is at least one pad away from boundary
correct = correct && (padBoundaryCharges[0] > 0); // Only correct if cluster is asymmetric with charge > 0 towards sector boundary, otherwise all charge is found
} else if (!leftEdge && pad == (geo.NPads(pos.row()) - 1)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should't this be

} else if (!leftEdge && pad == (geo.NPads(pos.row()) - 2)) {
      correct = correct && (padBoundaryCharges[geo.NPads(pos.row()) - 1] > 0);

?

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK, I misunderstood the definition of padBoundatyCharges...
In any case, I think it should be pad == (geo.NPads(pos.row()) - 2 and not -1.
For the padBoundaryCharge, ok, that looks correct, but did you double-check it access the correct value, just to be sure?

ChargePos pos = filteredPeakPositions[CAMath::Min(idx, clusternum - 1)];
Charge charge = chargeMap[pos].unpack();

Charge padBoundaryCharges[2] = {chargeMap[pos.delta({-1, 0})].unpack(), chargeMap[pos.delta({1, 0})].unpack()};
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can't you define this further down, where it is actually used?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Where excatly? Directly above pc.finalize?

bool correct = (leftEdge) ? (pad < mPadMean) : (pad > mPadMean);
if (leftEdge && pad == 1) { // only check charge at boundary if maximum is at least one pad away from boundary
correct = correct && (padBoundaryCharges[0] > 0); // Only correct if cluster is asymmetric with charge > 0 towards sector boundary, otherwise all charge is found
} else if (!leftEdge && pad == (geo.NPads(pos.row()) - 1)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

OK, I misunderstood the definition of padBoundatyCharges...
In any case, I think it should be pad == (geo.NPads(pos.row()) - 2 and not -1.
For the padBoundaryCharge, ok, that looks correct, but did you double-check it access the correct value, just to be sure?

@ChSonnabend
Copy link
Collaborator Author

No I didn't check it further. I'll compile and run it and let you know

@davidrohr davidrohr changed the title Fixing handling of edge clusters Fixing handling of edge clusters - DON'T MERGE Mar 8, 2025
@davidrohr davidrohr closed this Mar 12, 2025
@ChSonnabend ChSonnabend deleted the gpucf_fix_edgecluster branch July 19, 2025 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants