I would appreciate a feedback on the following problem
I have a canvas c_FAD, which has a tmultigraph mg_FAD. Only one tgraph is added to this tmultigraph, with name gr_FAD. I can extract the canvas from the root file as
TCanvas cfr = (TCanvas)fr.Get(“c_FAD”);
now how shall I proceed to extract the tgraph gr_FAD ?
You request a list of primitives from this canvas object.
If you know the name of your tmultigraph, you:
3. Obtain this multigraph from the list of primitives you got on step 2.
or
4. You iterate over this list of primitives, searching for a TMultiGraph object
(you can ask object, if it has the right type: obj->InheritsFrom(“TMultiGraph”))
Thanks. I managed to get my plot done. All thanks to you.
A major source of confusion was that TMultigraph had no name, so I used “”. By the way if you feel inclined can you also suggest how to extract all the Tgraph from TMultiGraphs, Getgraphlist only tells the graph name…