Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 250 → Rev 251

/cvi/RedPitaya/soccli/H1Dload.cxx
28,7 → 28,7
int nb = fread(h->data,1, size,fp);
printf("hdr nb=%d : sizeof(HDR)=%d +datasize=%d == len=%d\t",nb1,sizeof(H1D), h->size, h->len);
printf("data nb=%d size=%d\n",nb,size);
 
fclose(fp);
TH1D *h1d = new TH1D(h->name, h->title,
h->nx, h->minx-0.5*h->stepx,h->minx+(h->nx-0.5)*h->stepx );
h1d->SetTitle(h->title);
58,5 → 58,6
sprintf(hname,"%s.pdf",fname);
gPad->SaveAs(hname);
h1d->FitPanel();
gPad->SaveAs(fname);
return 0;
}