10#include <boost/python/class.hpp>
18 PyErr_Warn(PyExc_DeprecationWarning,
"'DetectorGroup::isMasked' is deprecated, "
19 "use 'SpectrumInfo::isMasked' instead.");
22 for (
const auto &det : dets) {
23 const auto &detInfo = det->parameterMap().detectorInfo();
24 masked &= detInfo.isMasked(det->index());
30 PyErr_Warn(PyExc_DeprecationWarning,
"'DetectorGroup::isMonitor' is "
32 "'SpectrumInfo::isMonitor' instead.");
34 for (
const auto &det : dets) {
35 const auto &detInfo = det->parameterMap().detectorInfo();
36 if (!detInfo.isMonitor(det->index()))
44 class_<DetectorGroup, bases<IDetector>, boost::noncopyable>(
"DetectorGroup", no_init)
45 .def(
"isMasked", &isMaskedDeprecated, arg(
"self"),
46 "Returns the value of the masked flag. True means ignore this "
48 .def(
"isMonitor", &isMonitorDeprecated, arg(
"self"),
49 "Returns True if the detector is marked as a monitor in the IDF")
51 "Returns the list of detector IDs within this group")
53 "Returns separator for list of names of detectors");
void export_DetectorGroup()
Holds a collection of detectors.
std::string getNameSeparator() const
Return separator for list of names of detectors.
std::vector< detid_t > getDetectorIDs() const
What detectors are contained in the group?
std::vector< IDetector_const_sptr > getDetectors() const
What detectors are contained in the group?
Interface class for detector objects.