Hi,
How do you generally work at the prompt with histograms that have one or more spaces in the name?
For example,
root [3] the\ hist\ name->Draw()
doesn’t work. What to do instead?
Hi,
How do you generally work at the prompt with histograms that have one or more spaces in the name?
For example,
root [3] the\ hist\ name->Draw()
doesn’t work. What to do instead?
In C++ you can not have variable/pointer identifiers with blanks.
Simplify your problem and remove the blanks.
Rene
Hi,
If you really need the white space in the histogram names, then you will need to retrieve the histogram explicitly:TH1 *myhist;
gDirectory->GetObject("the hist name",myhist);
Cheers,
Philippe.