hist. projection: type conversion problem

From: Boris Skorodumov <bskorodo_at_nd.edu>
Date: Wed, 16 Mar 2005 17:52:03 -0500


Hi all,

when i am making projection TH2F to the TH1F i am getting error: Error: Illegal initialization of pointer, wrong type TH1D* if i am changing definition of my 1d histogram to TH1D - everything ok !

...............

 TH2F *h44 = new TH2F("h44","",2048,0,2048,2048,0,2048);  TH1F *h4 = h44->ProjectionY("",0,2048,"cut"); not working

 TH1D *h4 = h44->ProjectionY("",0,2048,"cut"); working

.....................

Thank you,

Boris.

-- 
--------------------------------------

| Boris Skorodumov, Graduate Student |
| Physics Department |
| University of Notre Dame |
| Indiana 46556, USA |
| WWW: http://www.nd.edu/~bskorodo |
--------------------------------------
Received on Thu Mar 17 2005 - 00:02:19 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:06 MET