Mantid
Loading...
Searching...
No Matches
Framework
PythonInterface
mantid
geometry
src
Exports
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 +
7
#include "
MantidGeometry/Instrument/DetectorInfoItem.h
"
8
#include "
MantidGeometry/Instrument/DetectorInfo.h
"
9
#include "
MantidKernel/Quat.h
"
10
#include "
MantidKernel/V3D.h
"
11
12
#include <boost/python/class.hpp>
13
#include <boost/python/module.hpp>
14
15
using
Mantid::Geometry::DetectorInfo
;
16
using
Mantid::Geometry::DetectorInfoItem
;
17
using
Mantid::Kernel::V3D
;
18
using namespace
boost::python
;
19
20
// Export DetectorInfoItem
21
void
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
}
export_DetectorInfoItem
void export_DetectorInfoItem()
Definition:
DetectorInfoItem.cpp:21
DetectorInfoItem.h
DetectorInfo.h
Quat.h
V3D.h
Mantid::Geometry::DetectorInfoItem
DetectorInfoItem.
Definition:
DetectorInfoItem.h:32
Mantid::Geometry::DetectorInfo
Geometry::DetectorInfo is an intermediate step towards a DetectorInfo that is part of Instrument-2....
Definition:
DetectorInfo.h:49
Mantid::Kernel::V3D
Class for 3D vectors.
Definition:
V3D.h:34
boost::python
Definition:
NDArray.h:50
Generated on Tue Jan 3 2023 11:57:59 for Mantid by
1.9.5