def byDet(specs, det):
    """byDet(specs, det)
    Returns the subset of spectra in specs collected on detector det."""
    res = []
    for spec in specs:
        if spec.getProperties().getDetector() == det:
            res.append(spec)
    return tuple(res)