Rev 264 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 264 | Rev 294 | ||
|---|---|---|---|
| Line 80... | Line 80... | ||
| 80 | //Printf("FillH2D_ error h2d is not initialized\n"); | 
            80 | //Printf("FillH2D_ error h2d is not initialized\n"); | 
          
| 81 | return -1;  | 
            81 | return -1;  | 
          
| 82 |   } | 
            82 |   } | 
          
| 83 | 83 | ||
| 84 | idx = x+y*h2[h2d]->nx;  | 
            84 | idx = x+y*h2[h2d]->nx;  | 
          
| 85 | h2[h2d]->data[idx]  | 
            85 | h2[h2d]->data[idx]=val;  | 
          
| 86 | //Printf("%d %d data %f %f\n",x,y,val, h2[h2d]->data[idx]); | 
            86 | //Printf("%d %d data %f %f\n",x,y,val, h2[h2d]->data[idx]); | 
          
| 87 | if (h2[h2d]->data[idx]>h2[h2d]->max) h2[h2d]->max= h2[h2d]->data[idx];  | 
            87 | if (h2[h2d]->data[idx]>h2[h2d]->max) h2[h2d]->max= h2[h2d]->data[idx];  | 
          
| 88 | if (h2[h2d]->data[idx]<h2[h2d]->min) h2[h2d]->min= h2[h2d]->data[idx];  | 
            88 | if (h2[h2d]->data[idx]<h2[h2d]->min) h2[h2d]->min= h2[h2d]->data[idx];  | 
          
| 89 | h2[h2d]->nentries++;  | 
            89 | h2[h2d]->nentries++;  | 
          
| 90 | return 0;  | 
            90 | return 0;  | 
          
| Line 285... | Line 285... | ||
| 285 |   } | 
            285 |   } | 
          
| 286 | 286 | ||
| 287 | 287 | ||
| 288 | if (*plothandle> 0 ) DeleteGraphPlot (panel, control, *plothandle, VAL_IMMEDIATE_DRAW);  | 
            288 | if (*plothandle> 0 ) DeleteGraphPlot (panel, control, *plothandle, VAL_IMMEDIATE_DRAW);  | 
          
| 289 | H2D_SetRangeColors(H2D_GetMin(histogram),H2D_GetMax(histogram));  | 
            289 | H2D_SetRangeColors(H2D_GetMin(histogram),H2D_GetMax(histogram));  | 
          
| - | 290 |         //printf("%f %f\n",H2D_GetMin(histogram),H2D_GetMax(histogram)) ; | 
          |
| 290 | *plothandle = PlotScaledIntensity (panel, control,  | 
            291 | *plothandle = PlotScaledIntensity (panel, control,  | 
          
| 291 | H2D_GetData(histogram),  | 
            292 | H2D_GetData(histogram),  | 
          
| 292 | H2D_GetNbinsX(histogram),  | 
            293 | H2D_GetNbinsX(histogram),  | 
          
| 293 | H2D_GetNbinsY(histogram),  | 
            294 | H2D_GetNbinsY(histogram),  | 
          
| 294 |                                        VAL_DOUBLE, | 
            295 |                                        VAL_DOUBLE, |