[ROOT] Pointer from TObject to TObject

From: Elena Vataga (vataga@fnal.gov)
Date: Thu Mar 21 2002 - 16:18:35 MET


	Hello rooter!


Could somebody tell me what is wrong in what I am doing.

I have 2 blocks with TClonesObjects: one with track and another
one with Silicon hits on track. I was trying to include
in second object pointer to track to which those hits belong:


class TIslHit: public TObject {
....
  TTrk*       pTrk;     //-> this is never NULL !!

But I am getting this error during compilation:

<**compiling**> TIslHit_dict.cxx
"/cdf/home/vataga/WORK/ANA/allmod441/tmp/IRIX6-KCC_4_0/AnaMod/libAnaModDict-shared/TIslHit_dict.cxx",
line 48: error #349:
          no operator ">>" matches these operands
            operand types are: TBuffer >> TTrk *
        R__b >> pTrk;


Please, some hint what I am doing wrong?

	Thank you in advance,
				Elena



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:46 MET