Hi all,
I would like to make a histogram together with the errorbar, but I am stuck at this point.
Here is my code:
FILE *fp=fopen("data.dat","r+");
TH1F *hist_1 = new TH1F("histogram","osszefonodas eloszlas - 2qubit",100,0,1);
hist_1->Sumw2();
Double_t j=0.0;
while((fscanf(fp,"%lf",&j)!=EOF)){printf("the value read is %lf\n",j);hist_1->Fill(j);hist_1->Draw();}
This should work, but I get only errorbar and the histogram is gone.
Please, help!
Cheers,
bgy