[ROOT] problem with histograms adding

From: babintsev@mx.ihep.su
Date: Thu Dec 26 2002 - 05:15:42 MET


 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 : Sat Jan 04 2003 - 23:51:24 MET