How to get histogram from multiple folders?

I wanna read a histogram stored in a root file with multiple folders. The root file is shown as below. How can I read the histogram"MVA_BDT_S".
image

Try:

auto f = TFile::Open("tth_output.root");
auto h = f->Get("dataset/Method_BDT/BDT/MVA_BDT_S");
h->Draw();

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.