Mantid
Loading...
Searching...
No Matches
DetectorInfoItem.cpp
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
9#include "MantidKernel/Quat.h"
10#include "MantidKernel/V3D.h"
11
12#include <boost/python/class.hpp>
13#include <boost/python/module.hpp>
14
18using namespace boost::python;
19
20// Export DetectorInfoItem
22
23 // Export to Python
24 class_<DetectorInfoItem<DetectorInfo>>("DetectorInfoItem", no_init)
25 .add_property("isMonitor", &DetectorInfoItem<DetectorInfo>::isMonitor)
26 .add_property("isMasked", &DetectorInfoItem<DetectorInfo>::isMasked)
27 .add_property("twoTheta", &DetectorInfoItem<DetectorInfo>::twoTheta)
28 .add_property("position", &DetectorInfoItem<DetectorInfo>::position)
29 .add_property("rotation", &DetectorInfoItem<DetectorInfo>::rotation)
30 .add_property("l2", &DetectorInfoItem<DetectorInfo>::l2)
31 .add_property("index", &DetectorInfoItem<DetectorInfo>::index)
32 .def("setMasked", &DetectorInfoItem<DetectorInfo>::setMasked, (arg("self"), arg("masked")),
33 "Set the mask flag for the detector");
34}
void export_DetectorInfoItem()
Geometry::DetectorInfo is an intermediate step towards a DetectorInfo that is part of Instrument-2....
Definition: DetectorInfo.h:49
Class for 3D vectors.
Definition: V3D.h:34