| /cvi/instr/HISTO/H1D.c |
|---|
| 39,7 → 39,8 |
| int _VI_FUNC H1D_GetBin(int h, double value) { |
| int nx,xmin,dx; |
| int nx; |
| double xmin,dx; |
| int bin; |
| nx = H1D_GetNbinsX(h); |
| /cvi/instr/HISTO/H1D.h |
|---|
| 29,7 → 29,7 |
| char title[100]; |
| char titlex[40]; |
| char titley[40]; |
| char x[4]; // correct alignment on the 64 bit windows |
| double *data; |
| } H1D; |
| #pragma pack() |
| /cvi/instr/HISTO/H2D.c |
|---|
| 69,7 → 69,8 |
| if (ix<0) return ix; |
| iy = H2D_CalculateBin(h2d,1,y); |
| if (iy<0) return iy; |
| return H2D_SetBinContent(h2d,ix, iy, val); |
| double val0 = H2D_GetBinContent(h2d,ix, iy); |
| return H2D_SetBinContent(h2d,ix, iy, val+val0); |
| } |
| int _VI_FUNC H2D_SetBinContent(int h2d,int x, int y, double val) { |