Re: [ROOT] FitSlicesZ and compiling on the flight

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Jul 12 2000 - 08:59:25 MEST


Hi Yves,
The histograms generated by TH3::FitSlices are in the current
directory. To access them, you should do, eg
 TH2D * HParticleRapidityPtPhi_0 = (TH2D*)file->Get("HParticleRapidityPtPhi_0");

I will make this point more precise in the documentation.

Rene Brun

;Yves SCHUTZ wrote:
> 
I have the following macro where I do a FitSlices
to a 3D histogram and I plot the fitting parameter
stored  in a 2D histogram.  The macro works fine
with the interpreter.

However when I compile (.L macro.C++), obviously I
get the error that  : `HParticleRapidityPtPhi_0'
undeclared (first use this function).

I then uncomment the line :TH2 *
HParticleRapidityPtPhi_0 ; Obviously again the
compilation works fine but at running time the
pointer HParticleRapidityPtPhi_0 remains = 0 !

What is the trick ?

Thanks ... Yves



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