Looping over all bins with a TH1*

From: Philip Rodrigues <p.rodrigues1_at_physics.ox.ac.uk>
Date: Sat, 23 Aug 2008 14:52:37 +0100


Hi roottalk,
Given a pointer to a TH1 (which may point to a 1D or 2D histogram), how can I loop over all the bins? It looks like I want a function that returns fNCells, which I could use along with the 1D version of GetBinContent(), but I can't see one.

Thanks,
Philip Received on Sat Aug 23 2008 - 15:52:47 CEST

This archive was generated by hypermail 2.2.0 : Mon Aug 25 2008 - 11:50:02 CEST