From Christophe Delaere I changed the indexing so that (NbinsX+2) bins are used for each histogram. When I loop on histograms, I then go from 0 to and including (NbinsX+1).
From Christophe Delaere
I changed the indexing so that (NbinsX+2) bins are used for each histogram.
When I loop on histograms, I then go from 0 to and including (NbinsX+1).

I also removed the unused nbins variable.

The old version was only partially wrong: the overflow bin was not used,
but the memory corruption problem arrised only in some rare cases were
maxbins was wrongly computed because of a missing "+1" at line 127.


git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@10219 27541ba8-7e3a-0410-8455-c3a389f83636

bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT