Subversion Repositories f9daq

Rev

Rev 221 | Rev 264 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 221 Rev 234
Line 67... Line 67...
67
  if (!h2[h2d]) return -1;
67
  if (!h2[h2d]) return -1;
68
  ix = H2D_CalculateBin(h2d,0,x);
68
  ix = H2D_CalculateBin(h2d,0,x);
69
  if (ix<0) return ix;
69
  if (ix<0) return ix;
70
  iy = H2D_CalculateBin(h2d,1,y);
70
  iy = H2D_CalculateBin(h2d,1,y);
71
  if (iy<0) return iy;
71
  if (iy<0) return iy;
-
 
72
  double val0 = H2D_GetBinContent(h2d,ix, iy);
72
  return H2D_SetBinContent(h2d,ix, iy, val);
73
  return H2D_SetBinContent(h2d,ix, iy, val+val0);
73
}
74
}
74
 
75
 
75
int _VI_FUNC  H2D_SetBinContent(int h2d,int x, int y, double val) {
76
int _VI_FUNC  H2D_SetBinContent(int h2d,int x, int y, double val) {
76
 
77
 
77
  int idx;
78
  int idx;