GetBinContent

Perrot Luc (perrot@isnpw1.in2p3.fr)
Tue, 13 Apr 1999 16:08:48 +0200


I want write in a ASCII file, here is my very simple MACRO:


tree->Draw("fAmplitude>>h1","fChannel==1");
h1->SetBins(4000,1,4001);
tree->Draw("fAmplitude>>h1","fChannel==1");
Int_t nbins = h1->GetNbinsX();
Int_t j;
{for(j=0;jGetBinContent(j));};

In output, i have this:

bin[1] = contenu[0]
Error: printf parameter mismatch param[0] C i
FILE:/hyb4/perrot/MANIP/run006/./test.C LINE:38
*** Interpreter error recovered ***

If i write this:
for(Int_t i=0;iPrint("all");
the maximum of nbins write on screen is 4001.

Can you help me, please. Thamk you.

Luc Perrot