Thank you for the message, and TH1::Scale(factor) works.
I have the other but similar question.
How about TF1 *pionfit = new TF1(…);
I tried
…
pionfit->TH1::Scale(0.01);
…
but no error message and it does not change anything.
I know it is a “function” pointer, not a “histogram” pointer.
In this case, what should I do for the scaling?
Thank you!
and call pionfit->Scale(0.01) (no TH1:: prefix). And please read a book on C++, your problems are caused by extremely basic C++ mistakes. E.g. you need to understand pointers and calls of virtual functions.