Okay, I understand the difference in the entries. The second histogram is filled excluding zeros.
But, apart from entries - Why the two histograms are different when I am filling the data in both the cases?
Please can you help me understand what is happening.
The bin width is not a parameter you can set when you book an histogram. It is computed from the histogram limits and the number of bins: (xmax-xmin)/nbins
“brand creation” and “number of bins for the resulting histogram” are two unrelated things. You specify the number of bins at the histogram creation time. Let say:
auto h = new TH1F(nm,nm, 16384,0.,16384.);
t-Draw("x >> h");
I dragged SIG007 branch to x, and then clocked Draw current selection box.
With this, I still do not get the behaviour that I am expecting. Please see below