I have a root file containing histograms that have a “+” at the end of the name. I am having trouble plotting these histograms using a macro. I have tried variations on:
Hopefully you’ll get a response on how to plot these. My suggestion in the future is don’t use any strange characters (e.g., ‘+’) in the name of histograms
You need to call ‘Get’ on the directory that contains the histograms. So use TFile f("signal.root");
f->GetDirectory("jPsi.DaughtersPlots").cd();
histo = (TH1D*)gDirectory->Get("pT_mu+");
histo->Draw();