115,7 → 115,7 |
buffer = (unsigned char *)malloc(buffer_size); |
} |
|
time_t t,told, tstart; |
time_t t=0,told=0, tstart=0; |
|
if (!DRSInit()){ |
time(&tstart); |
142,8 → 142,8 |
float *t=DRSGetTime(k); |
float *x=DRSGetWave(k); |
|
const int col[4]={VAL_BLACK,VAL_RED,VAL_GREEN,VAL_BLUE}; |
if (plothandle[k]) DeleteGraphPlot (ph, PANEL_GRAPH, plothandle[k], VAL_DELAYED_DRAW); |
const int col[4]={VAL_WHITE,VAL_RED,VAL_GREEN,VAL_BLUE}; |
if (plothandle[k]) DeleteGraphPlot (ph, PANEL_GRAPH, plothandle[k], VAL_IMMEDIATE_DRAW); |
plothandle[k] = PlotXY (ph, PANEL_GRAPH, t, x, 1024, VAL_FLOAT, VAL_FLOAT, VAL_THIN_LINE, VAL_NO_POINT, VAL_SOLID, 1, col[k]); |
|
for (int i=0 ; i<1024 ; i++) { |
151,9 → 151,11 |
//h[k]->Fill( t[i], x[i]*1e-3); |
} |
} |
|
|
} |
time(&t); |
printf("%d events in %2.2f min (%d s) %s",i+1, (double)(t-tstart)/60.,t-tstart, ctime(&t)); |
} |
DRSEnd(); |
} |
|