g_log.error()<<"The detector for spectrum number "<<mon0Spec<<" was either not found or is a group, grouped monitors are not supported by this algorithm"<<std::endl;
throwstd::bad_cast("Error retrieving data for the first monitor");
g_log.error()<<"The detector for spectrum number "<<mon1Spec<<" was either not found or is a group, grouped monitors are not supported by this algorithm"<<std::endl;
throwstd::bad_cast("Error retrieving data for the second monitor");
}
det=WS->getInstrument()->getDetector(dets[0]);
monitor1Dist=det->getDistance(*(source.get()));
}
/** Converts detector IDs to spectra indexes
* @param WS the workspace on which the calculations are being performed