9#include <boost/python/class.hpp>
10#include <boost/python/copy_const_reference.hpp>
11#include <boost/python/register_ptr_to_python.hpp>
20 register_ptr_to_python<ISpectrum *>();
22 class_<ISpectrum, boost::noncopyable>(
"ISpectrum", no_init)
24 "Returns True if the spectrum contain the given spectrum number")
27 return_value_policy<copy_const_reference>(),
"Returns a list of detector IDs for this spectrum")
29 "Add a detector ID to this spectrum")
33 "Set the spectrum number for this spectrum")
35 "Returns True if the spectrum uses the "
36 "DX (X Error) array, else False.");
#define GET_POINTER_SPECIALIZATION(TYPE)
A "spectrum" is an object that holds the data for a particular spectrum, in particular:
specnum_t getSpectrumNo() const
bool hasDetectorID(const detid_t detID) const
Return true if the given detector ID is in the list for this ISpectrum.
void clearDetectorIDs()
Clear the detector IDs set.
void addDetectorID(const detid_t detID)
Add a detector ID to the set of detector IDs.
bool hasDx() const
Gets the value of the use flag.
void setDetectorID(const detid_t detID)
Clear the list of detector IDs, then add one.
const std::set< detid_t > & getDetectorIDs() const
Get a const reference to the detector IDs set.
void setSpectrumNo(specnum_t num)
Sets the the spectrum number of this spectrum.
int32_t detid_t
Typedef for a detector ID.