getDetections function

Extract Detections or Peaks from a detectionList Object