11#include <boost/python/class.hpp>
12#include <boost/python/register_ptr_to_python.hpp>
24 register_ptr_to_python<std::shared_ptr<GridDetector>>();
26 class_<GridDetector, bases<CompAssembly, IObjComponent>, boost::noncopyable>(
"GridDetector", no_init)
27 .def(
"xpixels", &
GridDetector::xpixels, arg(
"self"),
"Returns the number of pixels in the X direction")
28 .def(
"ypixels", &
GridDetector::ypixels, arg(
"self"),
"Returns the number of pixels in the Y direction")
29 .def(
"zpixels", &
GridDetector::zpixels, arg(
"self"),
"Returns the number of pixels in the Z direction")
30 .def(
"xstep", &
GridDetector::xstep, arg(
"self"),
"Returns the step size in the X direction")
31 .def(
"ystep", &
GridDetector::ystep, arg(
"self"),
"Returns the step size in the Y direction")
32 .def(
"zstep", &
GridDetector::zstep, arg(
"self"),
"Returns the step size in the Z direction")
36 .def(
"xstart", &
GridDetector::xstart, arg(
"self"),
"Returns the start position in the X direction")
37 .def(
"ystart", &
GridDetector::ystart, arg(
"self"),
"Returns the start position in the Y direction")
38 .def(
"zstart", &
GridDetector::zstart, arg(
"self"),
"Returns the start position in the Z direction")
48 class_<GridDetectorPixel, bases<Detector>, boost::noncopyable>(
"GridDetectorPixel", no_init);
#define GET_POINTER_SPECIALIZATION(TYPE)
void export_GridDetector()
Enables boost.python to automatically "cast" an object up to the appropriate Detector leaf type.
void export_GridDetectorPixel()
GridDetector is a type of CompAssembly, an assembly of components.
detid_t maxDetectorID()
maximum detector id
double ystart() const
Returns the start position in the Y direction.
double ysize() const
Size in Y of the detector.
double xsize() const
Size in X of the detector.
int xpixels() const
Returns the number of pixels in the X direction.
std::string idFillOrder() const
Returns the id fill order.
int idstep() const
Returns the idstep.
int idstart() const
Returns the idstart.
double ystep() const
Returns the step size in the Y direction.
double xstep() const
Returns the step size in the X direction.
int ypixels() const
Returns the number of pixels in the Y direction.
double xstart() const
Returns the start position in the X direction.
int idstepbyrow() const
Returns the idstepbyrow.
double zstart() const
Returns the start position in the Z direction.
double zsize() const
Size in Z of the detector.
detid_t minDetectorID()
minimum detector id
int zpixels() const
Returns the number of pixels in the Z direction.
double zstep() const
Returns the step size in the Z direction.