Skip to content

Conversation

@Mingze129
Copy link
Contributor

@Mingze129 Mingze129 commented Jul 7, 2025

Incorrect use of iterator, lead to error when slice on candidates.

@github-actions github-actions bot added the pwghf PWG-HF label Jul 7, 2025
@github-actions
Copy link

github-actions bot commented Jul 7, 2025

O2 linter results: ❌ 0 errors, ⚠️ 0 warnings, 🔕 5 disabled

@github-actions github-actions bot changed the title Fix the slice bug [PWGHF] Fix the slice bug Jul 7, 2025
@Mingze129 Mingze129 marked this pull request as ready for review July 7, 2025 11:27
Comment on lines 1477 to 1478
template <typename CollsWithQVecs>
std::vector<float> getQVec(CollsWithQVecs const& collision)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't use an existing type as a template argument.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I use 'Coll' instead of 'CollsWithQVecs'.

@vkucera
Copy link
Collaborator

vkucera commented Jul 7, 2025

Incorrect use of iterator, lead to error when slice on candidates.

Why does the grouping not work directly with the iterator?

@vkucera
Copy link
Collaborator

vkucera commented Jul 7, 2025

Please make the PR title more informative by adding the scope of the changes.

@Mingze129
Copy link
Contributor Author

Incorrect use of iterator, lead to error when slice on candidates.

Why does the grouping not work directly with the iterator?

The grouping is working well with the iterator.
The issues is I slice the candidate again while the candidate already sliced (line 2351, 2321).

And we don't want to slice the tracks by the collision, so we have to abandon the iterator.

@Mingze129 Mingze129 changed the title [PWGHF] Fix the slice bug [PWGHF] Stop using the iterator at collisions for PbPb collision process Jul 7, 2025
@vkucera vkucera changed the title [PWGHF] Stop using the iterator at collisions for PbPb collision process [PWGHF] taskCharmPolarisation: Stop using the iterator at collisions for PbPb collision process Jul 7, 2025
@fgrosa fgrosa enabled auto-merge (squash) July 7, 2025 13:41
@fgrosa fgrosa merged commit 9a1890a into AliceO2Group:master Jul 7, 2025
18 of 19 checks passed
jpxrk pushed a commit to jpxrk/O2Physics that referenced this pull request Jul 16, 2025
prottayCMT pushed a commit to prottayCMT/O2Physics2024 that referenced this pull request Jul 18, 2025
JimunLee pushed a commit to JimunLee/O2Physics that referenced this pull request Jul 22, 2025
vojmach pushed a commit to vojmach/O2Physics that referenced this pull request Jul 23, 2025
jloemker pushed a commit to jloemker/O2Physics that referenced this pull request Nov 11, 2025
alibuild pushed a commit to alibuild/O2Physics that referenced this pull request Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pwghf PWG-HF

Development

Successfully merging this pull request may close these issues.

3 participants