Before Divide add the 2 following lines importing the two operand histograms from disk to memory TH1F *hemADC = (TH1F*)gDirectory->Get(:hemADC"); TH1F *hGC_HA = (TH1F*)gDirectory->Get(:hGC_HA"); hemADC2->Divide(hemADC,hGC_HA,1,1); Rene Brun On Wed, 3 Nov 2004, Ahmet Sedat Ayan wrote: > > Hi, > I can not understand why I am getting the following error message. It is > obvious that I am missing a something: > > I see the histograms with ".ls" but when I try to do a Divide > I get errors. > > Can anyone point out what I am missing here? > > thanks much. > ahmet > > ---------------------------------------------------------------- > root [6] .ls > TROOT* Rint The ROOT of EVERYTHING > OBJ: TH1F hgain_EM normalized EM gains : 0 at: 0x8b66030 > OBJ: TH1F hgain_HA normalized HA gains : 0 at: 0x8b66450 > OBJ: TH1F hGC_EM EM Geometrical correction from MC : 0 at: > 0x8bb7ac0 > OBJ: TH1F hGC_HA HA Geometrical correction from MC : 0 at: > 0x8bb8370 > OBJ: TH1F hCC_EM EM Calibration correction : 0 at: 0x8bb87a0 > OBJ: TH1F hCC_HA HA Calibration correction : 0 at: 0x8bb8bb8 > OBJ: TH1F h200 : 0 at: 0x8bb8fd0 > OBJ: TH1F h201 : 0 at: 0x8bb93e8 > OBJ: TH1F h300 : 0 at: 0x8bb97d0 > OBJ: TH1F h301 : 0 at: 0x8bb9fa0 > OBJ: TH1F h400 Integral of bins 10-24 EM : 0 at: 0x8bba468 > OBJ: TH1F h401 Integral of bins 10-24 HA : 0 at: 0x8bba870 > OBJ: TH1F h500 Integral of bins 10-32 EM : 0 at: 0x8bbb150 > OBJ: TH1F h501 Integral of bins 10-32 HA : 0 at: 0x8bbb568 > OBJ: TH1F h2000 Calibration Coeff.mean of bins 10-24 EM : 0 at: > 0x8bbba80 > OBJ: TH1F h2001 Calibration Coeff.mean of bins 10-24 HA : 0 at: > 0x8bbbeb0 > OBJ: TH1F h3000 Calibration Coeff.mean of bins 10-32 EM : 0 at: > 0x8bbc2e0 > OBJ: TH1F h3001 Calibration Coeff.mean of bins 10-32 HA : 0 at: > 0x8bbc710 > OBJ: TH1F h4000 Calibration Coeff.Integral of bins 10-24 EM : 0 > at: 0x8bbcb40 > OBJ: TH1F h4001 Calibration Coeff.Integral of bins 10-24 HA : 0 > at: 0x8bbd350 > OBJ: TH1F h5000 Calibration Coeff.Integral of bins 10-32 EM : 0 > at: 0x8bbd778 > OBJ: TH1F h5001 Calibration Coeff.Integral of bins 10-32 HA : 0 > at: 0x8bbdba0 > OBJ: TH1F hhh400 : 0 at: 0x8bbdfc8 > OBJ: TH1F hhh401 : 0 at: 0x8bbe3a0 > OBJ: TH1F hhh500 : 0 at: 0x8bbe778 > OBJ: TH1F hhh501 : 0 at: 0x8bbeb50 > OBJ: TH1F hemADC : 0 at: 0x8bbef28 > OBJ: TH1F hhaADC : 0 at: 0x8bbf310 > OBJ: TH1F hemADC2 processed : 0 at: 0x8bbf6f8 > OBJ: TH1F hhaADC2 processed : 0 at: 0x8bbfef0 > root [7] hemADC2->Divide(hemADC,hGC_HA,1,1); > Error: Symbol hemADC is not defined in current scope FILE:(tmpfile) LINE:1 > Error: Symbol hGC_HA is not defined in current scope FILE:(tmpfile) LINE:1 > > > *************** > > Ahmet Sedat Ayan > > Physics & Astronomy Dept. > Van Allen Hall > University of Iowa > Iowa City, IA, 52242 > > Voice : (++ 1 319) 335-1941 (W) (GMT-6) > Occupation : Ph.D (But still dreamer!) > e-mail : ayan@cms.physics.uiowa.edu > web : http://jazz.physics.uiowa.edu/~ayan > >
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:10 MET