12#include <boost/python/class.hpp>
13#include <boost/python/register_ptr_to_python.hpp>
26 register_ptr_to_python<std::shared_ptr<GridDetector>>();
27 register_ptr_to_python<GridDetector_const_sptr>();
31 class_<GridDetector, bases<CompAssembly, IObjComponent>, boost::noncopyable>(
"GridDetector", no_init)
32 .def(
"xpixels", &
GridDetector::xpixels, arg(
"self"),
"Returns the number of pixels in the X direction")
33 .def(
"ypixels", &
GridDetector::ypixels, arg(
"self"),
"Returns the number of pixels in the Y direction")
34 .def(
"zpixels", &
GridDetector::zpixels, arg(
"self"),
"Returns the number of pixels in the Z direction")
35 .def(
"xstep", &
GridDetector::xstep, arg(
"self"),
"Returns the step size in the X direction")
36 .def(
"ystep", &
GridDetector::ystep, arg(
"self"),
"Returns the step size in the Y direction")
37 .def(
"zstep", &
GridDetector::zstep, arg(
"self"),
"Returns the step size in the Z direction")
41 .def(
"xstart", &
GridDetector::xstart, arg(
"self"),
"Returns the start position in the X direction")
42 .def(
"ystart", &
GridDetector::ystart, arg(
"self"),
"Returns the start position in the Y direction")
43 .def(
"zstart", &
GridDetector::zstart, arg(
"self"),
"Returns the start position in the Z direction")
53 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.
std::shared_ptr< const GridDetector > GridDetector_const_sptr
A struct to help export std::vector types.