FACT++  1.0
static void DrsCalibrate::GetPixelMax ( float *  max,
const float *  data,
uint16_t  roi,
int32_t  first,
int32_t  last 
)
inlinestatic

Definition at line 905 of file DrsCalib.h.

References end, first, and i.

906  {
907  if (roi==0 || first<0 || last<0 || first>=roi || last>=roi || last<first)
908  return;
909 
910  for (int i=0; i<1440; i++)
911  {
912  const float *beg = data+i*roi+first;
913  const float *end = data+i*roi+last;
914 
915  const float *pmax = beg;
916 
917  for (const float *ptr=beg+1; ptr<=end; ptr++)
918  if (*ptr>*pmax)
919  pmax = ptr;
920 
921  max[i] = *pmax;
922  }
923  }
int i
Definition: db_dim_client.c:21
int64_t first
Size of this column in the tile.
Definition: zofits.h:26
double end
float data[4 *1440]