/** * Used to determine if a given detector ID is for a monitor. * * @param inst Pointer to the instrument * @param detID Detector ID to check * @return True if a monitor, false otherwise */ bool LoadCalFile::idIsMonitor(Instrument_const_sptr inst, int detID) { auto monitorList = inst->getMonitors(); auto it = std::find(monitorList.begin(), monitorList.end(), detID); return (it != monitorList.end()); }