TTree::Draw and TProfile

mayer@ik1.fzk.de
Mon, 13 Jul 1998 14:36:43 +0200


Dear rooters

I tried to fill a profile histogram via TTree::Draw, however the profile
histogram is being erased and replaced by an ordinary 2d histo. I tried

root [9] hprof = new TProfile("hprof","edtarr vs logSize",100,3.,7.,0.8,4.5);
root [10] h3.Draw("log10(edtarr):log10(Size)>>hprof",cStd+crad90);
Warning in <TTree::Draw>: Deleting old histogram with different dimensions
root [11] delete hprof;
root [12] hprof = new TProfile("hprof","edtarr vs logSize",100,3.,7.,0.8,4.5);
root [13] h3.Draw("log10(edtarr):log10(Size)>>+hprof",cStd+crad90);
Warning in <TTree::Draw>: Deleting old histogram with different dimensions

but both did not work. What is wrong?
Regards
Hajo