User Tools

Site Tools


root:binsorder

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

root:binsorder [2011/03/18 12:32]
decianm created
root:binsorder [2011/03/18 12:33] (current)
decianm
Line 2: Line 2:
 It can mean, that: It can mean, that:
   * Your (self set) bins are really not in increasing order, or:   * Your (self set) bins are really not in increasing order, or:
-  * The number of bins does not correspond to the array you give the histogram to set the bins.+  * The number of bins does not correspond to the array you give the histogram to set the bins, for example, you have to set: 
 +<code C> 
 +double bins[5] = { 1,2,3,4,5 }; 
 +double nBins = 4; 
 +TH1D* histo = new TH1D("​histo","​a histogram",​4,​bins);​ 
 +</​code>​
  
root/binsorder.txt · Last modified: 2011/03/18 12:33 by decianm