-
Notifications
You must be signed in to change notification settings - Fork 218
feat: RootTrackSummaryWriter can write multiple track collections #4453
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
base: main
Are you sure you want to change the base?
feat: RootTrackSummaryWriter can write multiple track collections #4453
Conversation
Alternatives would be to schedule multiple writers or merge the tracks before writing - what is the use case here? |
@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. |
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 If you think this has a broader use beyond the project I am happy to get this in. |
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?
I think with hadd the tracks then end up in separate events, as the tree uses events as entries. |
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. |
--- END COMMIT MESSAGE ---
Any further description goes here, @-mentions are ok here!
feat
,fix
,refactor
,docs
,chore
andbuild
types.