You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently, I was looking into implementing TMultiGraph writing; however, I got kind of stuck. When previously implementing TGraph writing, there was already an existing model class (for TGraphErrors and TGraphAsymmErrors too, although serialization for those still needs to be done). For TMultiGraph, I can't seem to find one.
I tried to read a TMultiGraph from an existing .root file. I ran this code to see available methods, fields, and members of f["myMultiGraph"]:
So it is possible to read a TMultiGraph from an existing .root file.
Then there is my question: what needs to be done to implement TMultiGraph writing? I would appreciate any guidance or tips on this topic, as well as any documentation regarding the .root data format and how serialization is handled.
For reference, I would like to be able to do the equivalent in Uproot:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Recently, I was looking into implementing
TMultiGraphwriting; however, I got kind of stuck. When previously implementingTGraphwriting, there was already an existing model class (forTGraphErrorsandTGraphAsymmErrorstoo, although serialization for those still needs to be done). ForTMultiGraph, I can't seem to find one.I tried to read a
TMultiGraphfrom an existing.rootfile. I ran this code to see available methods, fields, and members off["myMultiGraph"]:Output:
Then I tried to retrieve the
TGraphaxes and, interestingly enough, I got the expected output without errors:Output:
So it is possible to read a
TMultiGraphfrom an existing.rootfile.Then there is my question: what needs to be done to implement
TMultiGraphwriting? I would appreciate any guidance or tips on this topic, as well as any documentation regarding the.rootdata format and how serialization is handled.For reference, I would like to be able to do the equivalent in Uproot:
Beta Was this translation helpful? Give feedback.
All reactions