Skip to content

DPL Analysis: simple helper to create combinations#2861

Merged
ktf merged 1 commit into
AliceO2Group:devfrom
ktf:combinations
Jan 29, 2020
Merged

DPL Analysis: simple helper to create combinations#2861
ktf merged 1 commit into
AliceO2Group:devfrom
ktf:combinations

Conversation

@ktf
Copy link
Copy Markdown
Member

@ktf ktf commented Jan 29, 2020

This is not particularly (at all) optimized, as it creates in memory a table
with all the pairs, however we will be able to optimize it later
using C++20 coreroutines.

This is not particularly optimized, as it creates in memory a table
with all the pairs, however we will be able to optimize it later
using C++20 coreroutines.
@ktf
Copy link
Copy Markdown
Member Author

ktf commented Jan 29, 2020

@AliceO2Group/analysis-framework-developers @ginnocen this should simplify your double looping efforts. In particular you should be able to do:

for (auto [t1, t2] = o2::soa::combinations(tracks)) {

}

@ktf ktf merged commit bae1440 into AliceO2Group:dev Jan 29, 2020
@ktf ktf deleted the combinations branch January 29, 2020 20:41
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.

1 participant