Skip to content
Snippets Groups Projects
DetectorInfo.cpp 406 B
Newer Older
#include "MantidAPI/DetectorInfo.h"
#include "MantidGeometry/Instrument.h"

namespace Mantid {
namespace API {

DetectorInfo::DetectorInfo(const Geometry::Instrument &instrument)
    : m_detectorIDs(
          instrument.getDetectorIDs(false /* do not skip monitors */)) {}

const std::vector<detid_t> DetectorInfo::detectorIDs() const {
  return m_detectorIDs;
}

} // namespace API
} // namespace Mantid