53 DetectorInfo(std::unique_ptr<Beamline::DetectorInfo> detectorInfo,
54 std::shared_ptr<const Geometry::Instrument> instrument,
55 std::shared_ptr<
const std::vector<detid_t>> detectorIds,
56 std::shared_ptr<
const std::unordered_map<detid_t, size_t>> detIdToIndexMap,
57 std::shared_ptr<ParameterInfo> parameterInfo, std::shared_ptr<ReferenceFrame const> referenceFrame);
66 size_t getMemorySize()
const;
67 bool isScanning()
const;
69 bool isMonitor(
const size_t index)
const;
70 bool isMonitor(
const std::pair<size_t, size_t> &
index)
const;
71 bool isMasked(
const size_t index)
const;
72 bool isMasked(
const std::pair<size_t, size_t> &
index)
const;
73 bool hasMaskedDetectors()
const;
74 double l2(
const size_t index)
const;
75 double l2(
const std::pair<size_t, size_t> &
index)
const;
77 double twoTheta(
const std::pair<size_t, size_t> &
index)
const;
78 double signedTwoTheta(
const size_t index)
const;
79 double signedTwoTheta(
const std::pair<size_t, size_t> &
index)
const;
80 double azimuthal(
const size_t index)
const;
81 double azimuthal(
const std::pair<size_t, size_t> &
index)
const;
87 double signedTwoTheta(
const std::pair<size_t, size_t> &
index,
const Kernel::V3D &observer,
91 double phi(
const size_t index)
const;
92 double phi(
const std::pair<size_t, size_t> &
index)
const;
93 double phiOffset(
const size_t index,
const double offset)
const;
94 double phiOffset(
const std::pair<size_t, size_t> &
index,
const double offset)
const;
95 std::tuple<double, double, double> diffractometerConstants(
const size_t index, std::vector<detid_t> &calibratedDets,
96 std::vector<detid_t> &uncalibratedDets)
const;
97 double difcUncalibrated(
const size_t index)
const;
102 std::vector<Kernel::V3D> allPositions()
const;
105 std::vector<Kernel::Quat> allRotations()
const;
106 std::vector<Kernel::V3D> allScaleFactors()
const;
108 void setMasked(
const size_t index,
bool masked);
109 void setMasked(
const std::pair<size_t, size_t> &
index,
bool masked);
110 void clearMaskFlags();
116 [[deprecated(
"DetectorInfo::detector has been deprecated in Mantid 7.1."
117 "See the 'Instrument Access via SpectrumInfo, DetectorInfo, ComponentInfo' concept page, "
118 "located at: https://docs.mantidproject.org/nightly/concepts/InstrumentAccessLayers.html")]]
127 const std::vector<detid_t> &detectorIDs()
const;
130 size_t indexOf(
const detid_t id)
const;
133 size_t scanCount()
const;
134 const std::vector<std::pair<Types::Core::DateAndTime, Types::Core::DateAndTime>> scanIntervals()
const;
145 [[deprecated(
"DetectorInfo::getDetector has been deprecated in Mantid 7.1."
146 "See the 'Instrument Access via SpectrumInfo, DetectorInfo, ComponentInfo' concept page, "
147 "located at: https://docs.mantidproject.org/nightly/concepts/InstrumentAccessLayers.html")]]
149 [[deprecated(
"DetectorInfo::getDetectorPtr has been deprecated in Mantid 7.1."
150 "See the 'Instrument Access via SpectrumInfo, DetectorInfo, ComponentInfo' concept page, "
151 "located at: https://docs.mantidproject.org/nightly/concepts/InstrumentAccessLayers.html")]]
152 std::shared_ptr<const Geometry::IDetector> getDetectorPtr(
const size_t index)
const;
153 void clearPositionDependentParameters(
const size_t index);