List of objects: pointer to TPavetext

Dear Rotters,

I am trying to get a pointer to TPavetext plotted on the histogram. I could do FindObject(“name”) but I don’t know the name of the object. So, my questions are:

  1. How do I get the list of name of the objects drown on the canvas or histogram?

  2. How to I get the pointer to the TPavetext on the histogram which is saved in root file.

Thanks.

I put “TPave” for TPavetext name and is working.

to find the stats in an histogram you can do:

TPaveStats ps = (TPaveStats)h->GetListOfFunctions()->FindObject(“stats”);