Hi Volodja, Sorry for this late reply. What you do should work with the pro version 3.04/02. If you want to work with the old version, you should import your histograms from the ROOT file with, eg TH1 *h8a1_10 = f.Get("h8a1_10"); Rene Brun On Thu, 26 Dec 2002 babintsev@mx.ihep.su wrote: > > Hello > I have the following problem (root version 3.01) > > root [53] h8a1_10.Draw() - ok > root [54] h8a1_16.Draw() - ok > > root [61] h8a1_10.Add(h8a1_16,-c) > Error: No symbol h8a1_16 in current scope FILE:/tmp/fileX4fNGn_cint LINE:1 > *** Interpreter error recovered *** > root [62] h8a1_10.Add(&h8a1_16,-c) > Error: No symbol h8a1_16 in current scope FILE:/tmp/fileX4fNGn_cint LINE:1 > *** Interpreter error recovered *** > > root [78] TH1F* h1 = new TH1F > root [79] TH1F* h2 = new TH1F > root [80] h1 = h8a1_10 > (class TH1F*const)0x8b82920 > root [81] h2 = h8a1_16 > (const class TH1F*const)0x8b84770 > root [82] h1.Draw() > root [83] h1.Add(h2,-c) > root [84] h1.Draw() - ok > > why I cannot use the first names ? > > > > > Volodja Babintsev >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:08 MET