SetBinContent

Hi!
I don’t know how SetBinContent: i’ve this code (part of it):

[code]while(fin>>yy ){
if(yy>=max){
max=yy;canale_max=n;

       } 
       vect[n]=yy; 
       h->SetBinContent(n,yy); 
       n++;

 }[/code]

I see that this works… but i don’t understand why. What does SetBinContent do? I’m trying to replicate that in c++. I have to figure out the number of bins and the number of data that everyone contain. Thanks.

ROOT User’s Guide -> Histograms
ROOT » HIST » HIST
ROOT Tutorials: Histograms