Skip to content

Conversation

paulgessinger
Copy link
Member

--- END COMMIT MESSAGE ---

Any further description goes here, @-mentions are ok here!

  • Use a conventional commits prefix: quick summary
    • We mostly use feat, fix, refactor, docs, chore and build types.
  • A milestone will be assigned by one of the maintainers

@github-actions github-actions bot added the Component - Examples Affects the Examples module label Jul 18, 2025
@github-actions github-actions bot added this to the next milestone Jul 18, 2025
@andiwand
Copy link
Contributor

Alternatives would be to schedule multiple writers or merge the tracks before writing - what is the use case here?

Copy link
Contributor

📊: Physics performance monitoring for 94058eb

Full contents

physmon summary

@paulgessinger
Copy link
Member Author

@andiwand the use case is that for the summer student project I'd like to be able to have the same particles reconstructed under different hypothesis and produce a single TTree. Alternatives would be to add an algorithm that can merge track containers I guess.

Would you prefer that? In the end I don't think the changes are overly disruptive, but I can also keep them private for the summer student project.

@andiwand
Copy link
Contributor

My main concern is that we add more and more targeted features to the writers which tend to break over time and mix with other features. Especially dealing with N inputs and outputs seems like something that can be avoided and generalized to reduce them to their main function.

Maybe a silly suggestion but would multiple writers and hadd also do it?

If you think this has a broader use beyond the project I am happy to get this in.

@paulgessinger
Copy link
Member Author

My main concern is that we add more and more targeted features to the writers which tend to break over time and mix with other features. Especially dealing with N inputs and outputs seems like something that can be avoided and generalized to reduce them to their main function.

True. I guess the problem is we don't have a place to put these changes / features anywhere else. I think keeping them on private branches has the downside that some things are lost unintentionally. I don't really see a lot of harm in this case since the change is a generalization of the functionality we had before.

I think a separate algorithm for merging track containers could alleviate your concerns maybe?

Maybe a silly suggestion but would multiple writers and hadd also do it?

I think with hadd the tracks then end up in separate events, as the tree uses events as entries.

@andiwand
Copy link
Contributor

Ah true our TTrees are not easy to merge...

I agree with you. I believe a merging algorithm would be the most generic solution but we can also refactor this afterwards and go ahead with this one first.

@github-actions github-actions bot added the Stale label Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component - Examples Affects the Examples module Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants