Problem with accessing histogram from canvas

If your histogram resides in any sub-pad, it will NOT be found by “canvas->GetPrimitive(…)”.
For some solutions see here (the “MCA” resides in the “pad1”): [url]Error fitting Histo from a Canvas