I am creating a TFile with several instances of TDirectory. Next, I am writing TGraphErrors into different TDirectory instances. A simplified example of the code I use can be found in the attached document:
I would like to write a program which can load the TGraphErrors from different TDirectory instances, however after several approaches I have not yet succeeded.
Can you copy & paste your code here, instead of using a screen shot? Then we can easily suggest a modified version, instead of having to type the whole thing off a screen shot…
auto f = TFile::Open("~/Desktop/FileSampleCode.root");
TGraphErrors *TGraphRawData;
f->GetObject("RawData/GraphRawData", TGraphRawData);
if (TGraphRawData) TGraphRawData->Draw();