TABLE detStackedImfile, detRun
TITLE detStackedImfile Failures
FILE  detStackedImfile_failure.php
MENU  ipp.detrend.dat

WHERE fault > 0
WHERE detStackedImfile.det_id = detRun.det_id

ARGS  ARG1 detStackedImfile.det_id    =$detStackedImfile.det_id
ARGS  ARG1 detStackedImfile.iteration =$detStackedImfile.iteration
ARGS  ARG1 detStackedImfile.class_id  =$detStackedImfile.class_id
ARGS  ARG1 camera=$detRun.camera
ARGS  ARG1 basename=$detStackedImfile.path_base
ARGS  ARG1 class=$detStackedImfile.class_id

# XXX : detStackedImfile has uri only, not path_base : fix!

#     field         size  format  name       show   link to     extras
FIELD detStackedImfile.det_id,         7,  %s,    det_id
FIELD detStackedImfile.iteration,      5,  %s,    iteration
FIELD detStackedImfile.class_id,       8,  %s,    class_id
FIELD detStackedImfile.class_id,       8,  %s,    Chip ID,    value, detStackedImfile_failure.php, ARG1
FIELD detStackedImfile.fault,          5,  %d,    fault
FIELD detStackedImfile.bg,             8,  %f,    backgnd
FIELD detStackedImfile.bg_stdev,       8,  %f,    stdev
FIELD detStackedImfile.bg_mean_stdev,  8,  %f,    [stdev]
FIELD detStackedImfile.uri,           20,  %s,    uri
# FIELD recipe, 20,   recipe

# TD_CLASS list_off $fault > 0

TAIL PHP insert_log ('LOG.IMFILE');
