Question about Browse method

Hello, all ROOTers
I have following problem:
I have class that contain two histograms numerator and denominator. In my class I have method that return new histogram with is result of dividing numerator over denominator. I would like to draw all those three objects. However I don’t know how delete all subpads and my divided histogram when TBrowser “jump” to next object.
Anybody have Idea how to do this?


I’m not sure I understand what you mean by “jump” to next object, but in your Browse() method, you can simply call (for example):

gPad->GetCanvas()->Clear(); gPad->GetCanvas()->Divide(2,2);
Or did I misunderstand your question?

Cheers, Bertrand.

It something what I want to do. But in other classes like TH1D there is no such cleaning method. It’s mean that I can’t clean stuff after browsing MyClass when I look at TH1D.