Re: [ROOT] TH2 Profile to TH1 Histogram

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Jul 31 2000 - 17:15:19 MEST


Hi Roland,
you can do directly:

 TProfile *tpf = test->ProfileX("",0,100);
 TH1D *h1 = test->ProjectionX();

Rene Brun


On Mon, 31 Jul 2000, Roland Bramm wrote:

> Hi Rooters,
> 
> I have a TH2F Hisrogram, and additionally the Projection via
> ProjectionX(). My Problem is, that i eant to create a new Histogram, which
> gets the contetn of the Projected TH2 Histogram. 
> 
> test = new TH2F("test","",100,0,10,100,0,10);
> test2 = new TH1D(test.ProfileX("",0,100));
> 
> But this is not running.
> 
> Is there another way ?
> 
> Greetings
> Roland
> 
> 



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