12#include <boost/python/class.hpp>
13#include <boost/python/copy_const_reference.hpp>
14#include <boost/python/register_ptr_to_python.hpp>
15#include <boost/python/return_value_policy.hpp>
28 register_ptr_to_python<std::shared_ptr<GridDetector>>();
29 register_ptr_to_python<GridDetector_const_sptr>();
33 class_<GridDetector, bases<CompAssembly, IObjComponent>, boost::noncopyable>(
"GridDetector", no_init)
35 "Returns the number of pixels in the X direction")
37 "Returns the number of pixels in the Y direction")
39 "Returns the number of pixels in the Z direction")
40 .def(
"xstep", &
GridDetector::xstep, arg(
"self"),
"Returns the step size in the X direction")
41 .def(
"ystep", &
GridDetector::ystep, arg(
"self"),
"Returns the step size in the Y direction")
42 .def(
"zstep", &
GridDetector::zstep, arg(
"self"),
"Returns the step size in the Z direction")
46 .def(
"xstart", &
GridDetector::xstart, arg(
"self"),
"Returns the start position in the X direction")
47 .def(
"ystart", &
GridDetector::ystart, arg(
"self"),
"Returns the start position in the Y direction")
48 .def(
"zstart", &
GridDetector::zstart, arg(
"self"),
"Returns the start position in the Z direction")
50 "Returns the idstart")
52 "Returns the idFillOrder")
54 "Returns the idstepbyrow")
58 "Returns the minimum detector id")
60 "Returns the maximum detector id");
64 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.
double ystart() const
Returns the start position in the Y direction.
std::array< char, 3UL > const & idFillOrder() const
returns dimensions of filling in order
double ysize() const
Size in Y of the detector.
detid_t const & minDetectorID() const
minimum detector id
int const & ypixels() const
Returns the number of pixels in the Y direction.
double xsize() const
Size in X of the detector.
double ystep() const
Returns the step size in the Y direction.
double xstep() const
Returns the step size in the X direction.
int const & xpixels() const
Returns the number of pixels in the X direction.
int const & idstepbyrow() const
Returns the idstepbyrow.
int const & zpixels() const
Returns the number of pixels in the Z direction.
double xstart() const
Returns the start position in the X direction.
detid_t const & maxDetectorID() const
maximum detector id
double zstart() const
Returns the start position in the Z direction.
double zsize() const
Size in Z of the detector.
int const & idstart() const
Returns the idstart.
double zstep() const
Returns the step size in the Z direction.
int const & idstep() const
Returns the idstep.
std::shared_ptr< const GridDetector > GridDetector_const_sptr
A struct to help export std::vector types.