Re: Histogram with negative bin content

From: Marco Calviani <marco.calviani_at_gmail.com>
Date: Tue, 5 Sep 2006 18:25:20 +0200


Sorry,
  i've resolved with this simple code:

 for(int j=0; j<result->GetNbinsX() ; j++)  {

         if(result->GetBinContent(j)<0) result->SetBinContent(j,0); }

Regards,
Marco Calviani Received on Tue Sep 05 2006 - 18:25:27 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:00 MET