f.Draw();

From: Steve Udriot (Steve.Udriot@cern.ch)
Date: Sat Feb 19 2000 - 19:30:44 MET


Hello,

I have a simple function generated by h2root from a ntuple. The
following histograms come out :

root [40] f.ls();
TFile**         pbsil2.root
 TFile*         pbsil2.root
  KEY: TTree    h1;1    PSIL
  KEY: TH1F     h11;1   DESTEP
  KEY: TH1F     h12;1   STEP
  KEY: TH1F     h51;1   XSHOW
  KEY: TH1F     h13;1   STEP
  KEY: TH1F     h14;1   DEDX
  KEY: TH1F     h27;1   ESILI

but when I try to Draw them it occurs:

root [42] f.Draw('h11');
Error: Can't call TFile::Draw('h11') in current scope
FILE:/tmp/fileR0xGij_cint LINE:1
Possible candidates are...
filename       line:size busy function type and name  (in TFile)
(compiled)        0:0    0 public: virtual void Draw(Option_t* option);
filename       line:size busy function type and name  (in TDirectory)
(compiled)        0:0    0 public: virtual void Draw(Option_t* option);
filename       line:size busy function type and name  (in TNamed)
filename       line:size busy function type and name  (in TObject)
(compiled)        0:0    0 public: virtual void Draw(Option_t* option);
*** Interpreter error recovered ***

How should I proceed ?

Salutations,

Steve




This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:19 MET