Weighted histograms

Hello… very stupid question.
When filling an histogram, I use a event-dependent weight, so: Hist->Fill(x, w).
After Hist is booked, I wonder if I can easily extract (from Hist) and plot the corresponding “unweighted histogram” (i.e. what I would obtain if I fill it without weights; just counts). So? How to do that?


This is not possible for a normal histogram, since the number of times you have called filled for each bin (i.e. the number of bin entries) is not stored. You would have to create two separate histogram for storing the bin counts.

Best Regards