This shows you the differences between two versions of the page.
| root:binsorder [2011/03/18 12:32] – created decianm | 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(" | ||
| + | </ | ||