23class InstrumentRayTracer;
26namespace DataObjects {
40 std::optional<double> detectorDistance = std::nullopt);
59#if defined(_MSC_VER) && _MSC_VER <= 1910
73 std::optional<double> detectorDistance = std::nullopt);
75 void setDetectorID(
int id);
76 int getDetectorID()
const override;
77 void addContributingDetID(
const int id);
78 void removeContributingDetector(
const int id);
79 const std::set<int> &getContributingDetIDs()
const;
84 std::shared_ptr<const Geometry::ReferenceFrame> getReferenceFrame()
const override;
86 int getCol()
const override;
89 int getRow()
const override;
92 const std::string &getBankName()
const;
93 void setBankName(std::string bankName);
104 std::optional<double> detectorDistance = std::nullopt)
override;
105 void setQLabFrame(
const Mantid::Kernel::V3D &qLab, std::optional<double> detectorDistance = std::nullopt)
final;
107 void setWavelength(
double wavelength)
override;
108 double getWavelength()
const override;
109 double getScattering()
const override;
110 double getAzimuthal()
const override;
111 double getDSpacing()
const override;
112 double getTOF()
const override;
115 double getInitialEnergy()
const override;
116 double getFinalEnergy()
const override;
117 double getEnergyTransfer()
const override;
118 void setInitialEnergy(
double m_initialEnergy)
override;
119 void setFinalEnergy(
double m_finalEnergy)
override;
122 double getL1()
const override;
123 double getL2()
const override;
134 double getValueByColName(std::string colName)
const override;
Structure describing a single-crystal peak.
Structure describing a single-crystal peak.
Structure describing a single-crystal peak.
Geometry::IDetector_const_sptr m_det
Detector pointed to.
int m_row
Cached row in the detector.
Peak(Peak &&) noexcept=default
static Mantid::Kernel::Logger g_log
Static logger.
std::set< int > m_detIDs
List of contributing detectors IDs.
std::string m_bankName
Name of the parent bank.
Mantid::Kernel::V3D detPos
Cached detector position.
double m_initialEnergy
Initial energy of neutrons at the peak.
Geometry::Instrument_const_sptr m_inst
Shared pointer to the instrument (for calculating some values )
Mantid::Kernel::V3D sourcePos
Cached source position.
int m_col
Cached column in the detector.
const Mantid::Kernel::V3D & getCachedDetectorPosition() const
Peak(const Peak &other)
Copy constructor.
double m_finalEnergy
Final energy of the neutrons at peak (normally same as m_InitialEnergy)
int m_detectorID
ID of the detector.
Structure describing a single-crystal peak.
This class is responsible for tracking rays and accumulating a list of objects that are intersected a...
The Logger class is in charge of the publishing messages from the framework through various channels.
std::unique_ptr< Peak > Peak_uptr
std::shared_ptr< const Mantid::Geometry::IDetector > IDetector_const_sptr
Shared pointer to IDetector (const version)
std::shared_ptr< const Instrument > Instrument_const_sptr
Shared pointer to an const instrument object.
Helper class which provides the Collimation Length for SANS instruments.