We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Getting a segfault for attempting to access TTree branch in "my usual" way:
$> python >>> from ROOT import TChain >>> ch=TChain("EDepSimEvents") >>> ch.AddFile("tako.root") >>> ch.GetEntries() 10 >>> ch.GetEntry(0) >>> ch.Trajectories <cppyy.gbl.std.vector<TG4Trajectory> object at 0x5b38630> >>> ch.Trajectories.size() 8737931403336129456 >>> ch.Trajectories.at(0) *** Break *** segmentation violation
Maybe there's an incomplete dictionary generated for this object? Is this not supported in edep-sim?
edep-sim
For a reference, data file is generated using inputs/example.gdml, also available here. Thanks for your help!
inputs/example.gdml
The text was updated successfully, but these errors were encountered:
Resolved: apparently Trajectories is a public attribute of TG4Event object. So the following access method works
Trajectories
TG4Event
>>> ch.Event.Trajectories.size() >>> ch.Event.Trajectories.at(0)
... which respects the scope.
Sorry, something went wrong.
No branches or pull requests
Getting a segfault for attempting to access TTree branch in "my usual" way:
Maybe there's an incomplete dictionary generated for this object?
Is this not supported in
edep-sim
?For a reference, data file is generated using
inputs/example.gdml
, also available here.Thanks for your help!
The text was updated successfully, but these errors were encountered: