Draw ves Project

From: Jean-Eric Campagne <campagne_at_lal.in2p3.fr>
Date: Wed, 08 Jun 2005 11:27:05 +0200


Dear developpers

I have done the following
1) open a ROOT file with a TTree which contains "zp" and "pdg" as variables 2) do the tree drawing
tree->Draw("zp","pdg==211")
Then just to show for student an other possibility 3) create a TH1D* h1 with ("h1","z prod of pi+",100,0,100) 4) project the tree on h1 as followed
tree->Project(h1->GetName(),"zp","pdg==211") 5) draw the result
h1->Draw("SAME")

To my great surprise the 2 plots does not fit each other (see pb.ps attached), and this is not just bin to bin fluctuation Have you an idea?
Regards
Jean-Eric

...........................................................................
.LAL - IN2P3 - CNRS
.LAL - B.P 34 - 91898 Orsay Cedex - France
.Piece 108
.Tel +33 (0)1 64 46 84 29
.Fax +33 (0)1 64 46 83 97
...........................................................................

Received on Wed Jun 08 2005 - 11:27:12 MEST

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