Centering bins - Integer Histograms TH1I

From: Stephan Zimmer <zimmerst_at_gmail.com>
Date: Sun, 31 Jan 2010 22:47:03 +0100


Hi,
I would like to ask again for some support of the readers of this list. I've looked online quite some time but didn't find a clue to solve the following problem
I have a integer histogram:
TH1I*h1Algorithm4 = new TH1I("h1Algorithm4","Number of events applicable for reco, cone-size 0.4",6,0,6);

and I fill this later with
h1Algorithm4->Fill(3);
h1Algorithm4->Fill(2);
...
etc.

I would like to have the histogram drawn with centered bins, i.e. the bin boundaries would be e.g. from 0.5 to 1.5 for the value 1 and so forth. I didn't manage to accomplish this. Any ideas? Thanks in advance, Cheers,
Stephan Received on Sun Jan 31 2010 - 22:49:44 CET

This archive was generated by hypermail 2.2.0 : Sun Jan 31 2010 - 23:50:01 CET