Skip to content

Split vector<MCRelationship> branches for uproot - #387

Open
AndrewEdmonds11 wants to merge 1 commit into
Mu2e:mainfrom
AndrewEdmonds11:mcrel-split
Open

Split vector<MCRelationship> branches for uproot#387
AndrewEdmonds11 wants to merge 1 commit into
Mu2e:mainfrom
AndrewEdmonds11:mcrel-split

Conversation

@AndrewEdmonds11

@AndrewEdmonds11 AndrewEdmonds11 commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

This PR splits leaves that are vector<MCRelationship> since uproot cannot read the branches that contain them

@sophiemiddleton sophiemiddleton left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good. Should we do something about this too:

https://github.com/Mu2e/EventNtuple/blob/main/inc/SimInfo.hh#L30

More generally MCRelationship doesnt interface well with python. We could make a new issue for this if necessary

@AndrewEdmonds11

Copy link
Copy Markdown
Collaborator Author

So the crash we were seeing was because of vector<MCRelationship> leaves. I don't see the same crash when I try to read the trkmcsim branch. Do you have a code snippet that shows the issue you see?

@sophiemiddleton

Copy link
Copy Markdown
Collaborator

For me there is no crash in this case. I'm just thinking in terms of consistency. It is not an urgent issue

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