Histogram containing dots in name

Hi everyone, I have troubles with pointing to the histogram object that is named as h_a0.999774_b0.000957. I have root files with many histograms named similary and can`t change names. This is what I got when I Draw():

KEY: TH1F h_a0.999774_b0.000957;1
root [2] h_a0.999774_b0.000957->Draw()
ROOT_prompt_2:1:5: error: expected ‘;’ after expression
h_a0.999774_b0.000957->Draw()
^
;
ROOT_prompt_2:1:12: error: no matching literal operator for call to ‘operator""_b0.000957’ with argument of type ‘long double’ or ‘const char *’, and no matching literal operator template

I have root file with many histograms named similary to


Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


TH1F *h; gDirectory->GetObject("h_a0.999774_b0.000957", h);
h->Draw();

Thanks a lot Coyote … Your answer was fast as Road Runner

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