Cant list/debug pointer to a class (CINT)

From: Otto Schaile (Otto.Schaile@Physik.uni-muenchen.de)
Date: Tue May 20 1997 - 15:16:18 MEST


Dear roots,
seems on cant see pointers to class with CINT.
Suppose the following simple (working)  macro:

class TH1F;
class XX {
public:
  XX();
  void Drawhist();
  TH1F *h1;
};

XX::XX(){
 h1 = new TH1F("h1","xx",10,0.,10.);
 for (int i=0; i < 10 ; i++){ 
   h1->Fill(i,i);
 }
}

XX::Drawhist(){
 h1->Draw();
} 

now I do:
.L XX.C
.b XX::Drawhist
XX *x=new XX()
b->Drawhist
.l (or .g) h1
Variable h1 not found

(I have off course a more complicated one which doesnt work)

Cheers,
----------------------------------------------------------------------------
Otto Schaile                    Sektion Physik der LMU Muenchen
Phone: (+49 89)289 14070        Am Coulombwall 1, D-85748 Garching, Germany
FAX:   (+49 89)289 14072        EMail: Otto.Schaile@Physik.Uni-Muenchen.DE



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:18 MET