You can see examples of derivation from TTree in Root classes like
TNtuple or TChain.
Note that it is certainly not a good idea to derive from TTree
to simply implement a new Print method ::)
Rene Brun
On Thu, 2 Oct 2003, Jose Caballero wrote:
> Hello:
>
> I would like to create a class named MyTTree
>
> class MyTTree : public TTree {
> ...
> }
>
> and I would like to override the Print() method.
> For example, if I have a object
>
> MyTTree *T
>
> I want, if I issue
>
> T->Print()
>
> show a text line in the screen ("Printing the Tree content...") followed
> by the standard output of the TTree::Print() method.
> How can I do it. Or... in which part of the User Guide I can read it?
>
> Thank you very much in advance for your help.
>
>
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET