again profiles

From: Wolfgang Korsch (wkorsch@server1.pa.uky.edu)
Date: Tue Apr 08 1997 - 04:22:05 MEST


  Hi,
   I did ask this question a few times, but I don't seem to get 
   profile-plots to work properly.
   My question is:
   
   How can I generate a profile plot where I determine the binning
   and range and not ROOT?
   
   I use the following commands: (the x-range of the histogram is
   from -200 to 200 and I would like to have a profile plot from
   -100 to 100)
   
   root [1] h1p = new TProfile("h1p","test",100,-100,100,0,1);
   root [2] ntuple->Draw("pol:npos>>h1p","","prof");         
Warning in <TNtuple::Draw>: Deleting old histogram with different dimensions

   THIS WARNING TELLS ME THAT MY DEFINITION OF "h1p" IS OVERWRITTEN !!!
   
   The displayed plot ranges from -200 to 200 in x.
   
   and the command

   root [3] h1p->Draw();                                     
   
   shows also a range from -200 to 200.
   
   I am sure I do something wrong, but I'd like to know what?
   Can somebody help me?
      
   Wolfgang
   



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:18 MET