| LSSTApplications
    20.0.0
    LSSTDataManagementBasePackage | 
 
 
 
Go to the documentation of this file.
   25 #include <pybind11/pybind11.h> 
   33 using namespace py::literals;
 
   37 namespace cameraGeom {
 
   46 template <
typename CppClass, 
typename PyClass>
 
   49     cls.def(
"__eq__", [](CppClass 
const &
self, CppClass 
const &
other) { 
return self == 
other; },
 
   51     cls.def(
"__ne__", [](CppClass 
const &
self, CppClass 
const &
other) { 
return self != 
other; },
 
   58     cls.def(
"getSysName", &CppClass::getSysName);
 
   64     py::class_<CameraSysPrefix> clsCameraSysPrefix(mod, 
"CameraSysPrefix");
 
   65     py::class_<CameraSys> clsCameraSys(mod, 
"CameraSys");
 
   71     mod.attr(
"PIXELS") = py::cast(
PIXELS);
 
   76     declareCommonSysMethods<CameraSysPrefix>(clsCameraSysPrefix);
 
   77     declareCommonSysMethods<CameraSys>(clsCameraSys);
 
   80     clsCameraSysPrefix.def(py::init<std::string const &>(), 
"sysName"_a);
 
   81     clsCameraSys.def(py::init<std::string const &, std::string const &>(), 
"sysName"_a,
 
   82                      "detectorName"_a = 
"");
 
   83     clsCameraSys.def(py::init<CameraSysPrefix const &, std::string const &>(), 
"sysPrefix"_a,
 
   84                      "detectorName"_a = 
"");
 
   89     clsCameraSys.def(
"getDetectorName", &CameraSys::getDetectorName);
 
   90     clsCameraSys.def(
"hasDetectorName", &CameraSys::hasDetectorName);
 
  
void addOutputOp(PyClass &cls, std::string const &method)
Add __str__ or __repr__ method implemented by operator<<.
void addHash(PyClass &cls)
Add __hash__ method implemented by std::hash.
CameraSysPrefix const TAN_PIXELS
Tangent-plane pixels on the detector (x, y unbinned pixels)
CameraSysPrefix const ACTUAL_PIXELS
The actual pixels where the photon lands and electrons are generated (x,y unbinned) This takes into a...
ItemVariant const  * other
py::class_< ProductBoundedField, std::shared_ptr< ProductBoundedField >, BoundedField > PyClass
A base class for image defects.
CameraSys const FOCAL_PLANE
Focal plane coordinates: Position on a 2-d planar approximation to the focal plane (x,...
PYBIND11_MODULE(cameraSys, mod)
CameraSys const FIELD_ANGLE
Field angle coordinates: Angle of a principal ray relative to the optical axis (x,...
CameraSysPrefix const PIXELS
Pixel coordinates: Nominal position on the entry surface of a given detector (x, y unbinned pixels).