Continuously filling/updating root histogram

Hello,

Say I got a continuous stream of data coming in. Is it possible to fill a root histogram in real time? So that I can display the histogram while it is beeing filled and looking at the entries coming in?

So far I know how to fill histograms when having a static array of data. I am wondering because you have to specify the number of bins in advance. Is there some updating functionality which could help when trying to do it in real time?

Thank you!

No problem, you can take a look at the tutorials, like for example hsimple.C or hist/hsum.C