I’m retrieving some histograms (TH1F) from a root file (hist-scale.root) by simply doing:
hist-scale.root.Get(“histo_name”)
The problem is that some of the histos have special characters and white space in the name, so for example if the name of the histo is “cut_flow_central” it works while if it is “cut_flow_name=‘nominal’ combine=‘none’ nominal id=‘0’” it doesn’t work.
I know that it’s not the best thing to have such names but I was wondering wheter it is possible to retrieve them avoiding to change by hand the names (histograms are the output of a previous program so it is a bit more complicated).