Skip to content
Snippets Groups Projects
Commit ada4880d authored by Bhuvan Bezawada's avatar Bhuvan Bezawada
Browse files

Updated DetectorInfo.rst file

re #22885
parent b9b8dd00
No related branches found
No related tags found
No related merge requests found
......@@ -41,37 +41,37 @@ void export_DetectorInfo() {
// Export to Python
class_<DetectorInfo, boost::noncopyable>("DetectorInfo", no_init)
.def("__len__", &DetectorInfo::size, (arg("self")),
"Returns the size of the DetectorInfo, i.e., the number of "
"detectors in the instrument.")
.def("__len__", &DetectorInfo::size, (arg("self")),
"Returns the size of the DetectorInfo, i.e., the number of "
"detectors in the instrument.")
.def("size", &DetectorInfo::size, (arg("self")),
"Returns the size of the DetectorInfo, i.e., the number of "
"detectors in the instrument.")
.def("size", &DetectorInfo::size, (arg("self")),
"Returns the size of the DetectorInfo, i.e., the number of "
"detectors in the instrument.")
.def("isMonitor", isMonitor, (arg("self"), arg("index")),
"Returns True if the detector is a monitor.")
.def("isMonitor", isMonitor, (arg("self"), arg("index")),
"Returns True if the detector is a monitor.")
.def("isMasked", isMasked, (arg("self"), arg("index")),
"Returns True if the detector is masked.")
.def("isMasked", isMasked, (arg("self"), arg("index")),
"Returns True if the detector is masked.")
.def("isEquivalent", &DetectorInfo::isEquivalent,
(arg("self"), arg("other")),
"Returns true if the content of this is equivalent to the content "
"of other.")
.def("isEquivalent", &DetectorInfo::isEquivalent,
(arg("self"), arg("other")),
"Returns true if the content of this is equivalent to the content "
"of other.")
.def("twoTheta", twoTheta, (arg("self"), arg("index")),
"Returns 2 theta (scattering angle w.r.t beam direction).")
.def("twoTheta", twoTheta, (arg("self"), arg("index")),
"Returns 2 theta (scattering angle w.r.t beam direction).")
.def("position", position, (arg("self"), arg("index")),
"Returns the absolute position of the detector with given index.")
.def("position", position, (arg("self"), arg("index")),
"Returns the absolute position of the detector with given index.")
.def("rotation", rotation, (arg("self"), arg("index")),
"Returns the absolute rotation of the detector with given index.")
.def("rotation", rotation, (arg("self"), arg("index")),
"Returns the absolute rotation of the detector with given index.")
.def("setMasked", setMasked, (arg("self"), arg("index"), arg("masked")),
"Set the mask flag of the detector with given index.")
.def("setMasked", setMasked, (arg("self"), arg("index"), arg("masked")),
"Set the mask flag of the detector with given index.")
.def("clearMaskFlags", &DetectorInfo::clearMaskFlags, (arg("self")),
"Sets all mask flags to false (unmasked).");
.def("clearMaskFlags", &DetectorInfo::clearMaskFlags, (arg("self")),
"Sets all mask flags to false (unmasked).");
}
......@@ -4,6 +4,17 @@
This is a python binding to the C++ class Mantid::Geometry::DetectorInfo.
--------
Purpose
--------
The purpose of the DetectorInfo object is to allow the user to access information about the detector(s) being used in an experiment. The DetectorInfo object can be used to access information such as the number of detectors in the instrument, the absolute position of a detector as well as the absolute rotation of a detector. There are many other methods available as well.
Many users may need this extra information so that they can have a better understanding of the instrument they are using. This extra information is also easy and fast to access meaning the users can make improvements to their experimental design with ease.
DetectorInfo is one of three objects that the user can gain access to from a Workspace. The other two are:
* SpectrumInfo
* ComponentInfo
*bases:* :py:obj:`mantid.geometry.DetectorInfo`
.. module:`mantid.geometry`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment