Skip to content

Add configuration option to output clones from subdivided and collected collections #1861

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

simonge
Copy link
Contributor

@simonge simonge commented May 9, 2025

Briefly, what does this PR introduce?

Adds the output_copies configuration to tell the CollectionCollector and SubDivideCollection algorithms to copy the data into the output rather than produce a subset collection.

This will allow, for instance, the merging of particles from the central detector and far detectors into a final collection, with the final collection being directly readable in a root tree. Or wanting to examine the contents of the collection in a root tree for debugging.

e.g. -Pbeam:BeamParticles:outputCopies=true

What kind of change does this PR introduce?

  • Bug fix (issue #__)
  • New feature (issue #__)
  • Documentation update
  • Other: __

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators

Does this PR introduce breaking changes? What changes might users need to make to their code?

No

Does this PR change default behavior?

No, but perhaps an example collection should be chosen

@simonge
Copy link
Contributor Author

simonge commented May 9, 2025

I suppose this could be dangerous/cause confusion if used on some intermediate collections and mess up all of the associations.

@wdconinc
Copy link
Contributor

I don't know if I like this. There are suitable interfaces to podio for all analysis languages (or, if not, they can be developed). This duplicates storage needs for convenience reasons only.

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