Is it a bug or a feature?

Marek Kowalski (kowalski@hpion-1.ifj.edu.pl)
Mon, 18 Jan 1999 08:52:31 +0100 (MET)


Dear Rooters,

I have found the following problem. I work with several histograms and to be
able to keep them for a while on the display I use the fake reading of a single
character.

Below is a part of the function I call.

void r_macro(Float_t gain, Int_t row, Int_t zero, Float_t noise)
{
char *s = new char[1];
gSystem->Load("resolution/resolution.sl");
resolution(gain,row,zero,noise);
TH1F *h1 = (TH1F*)gROOT->FindObject("resy");
TH1F *h2 = (TH1F*)gROOT->FindObject("resz");
TH1F *h3 = (TH1F*)gROOT->FindObject("cluy");
TH1F *h4 = (TH1F*)gROOT->FindObject("cluz");


h1->Draw();
h1->Fit("gaus");


gets(s);

h2->Draw();
h2->Fit("gaus");

gets(s);