29 namespace cameraGeom {
32 std::string
const &
name,
35 std::string
const &serial,
47 _ampInfoCatalog(ampInfoCatalog),
49 _orientation(orientation),
50 _pixelSize(pixelSize),
77 std::ostringstream os;
78 os <<
"Unknown amplifier \"" << name <<
"\"";
79 throw LSST_EXCEPT(pexExcept::InvalidParameterError, os.str());
81 return *(ampIter->second);
93 return _transformMap[cameraSys];
97 return getTransform(makeCameraSys(cameraSysPrefix));
108 throw LSST_EXCEPT(pexExcept::InvalidParameterError,
109 "Invalid ampInfoCatalog: not all amplifier names are unique");
115 if (trIter->first.hasDetectorName() && trIter->first.getDetectorName() !=
_name) {
116 std::ostringstream os;
117 os <<
"Invalid transformMap: " << trIter->first <<
" detector name != \"" <<
_name <<
"\"";
118 throw LSST_EXCEPT(pexExcept::InvalidParameterError, os.str());
table::AmpInfoCatalog _ampInfoCatalog
list of amplifier data
table::Key< std::string > name
Geometry and electronic information about raw amplifier images.
geom::Box2I _bbox
bounding box
std::string const & _name
A custom container class for records, based on std::vector.
CameraSysPrefix const PIXELS
An integer coordinate rectangle.
CameraSys const makeCameraSys(CameraSys const &cameraSys) const
CameraPoint makeCameraPoint(geom::Point2D point, CameraSys cameraSys) const
CameraTransformMap _transformMap
registry of coordinate transforms
std::string _name
name of detector's location in the camera
geom::Box2I const & _bbox
Iterator class for CatalogT.
CameraPoint transform(CameraPoint const &fromCameraPoint, CameraSys const &toSys) const
#define LSST_EXCEPT(type,...)
std::vector< geom::Point2D > getCorners(CameraSys const &cameraSys) const
std::vector< Point2D > getCorners() const
bool hasTransform(CameraSys const &cameraSys) const
_AmpInfoMap _ampNameIterMap
map of amplifier name: catalog iterator
CameraPoint getCenter(CameraSys const &cameraSys) const
Detector(std::string const &name, int id, DetectorType type, std::string const &serial, geom::Box2I const &bbox, lsst::afw::table::AmpInfoCatalog const &InfoCatalog, Orientation const &orientation, geom::Extent2D const &pixelSize, CameraTransformMap::Transforms const &transforms)
A floating-point coordinate rectangle geometry.
size_type size() const
Return the number of elements in the catalog.
lsst::afw::table::AmpInfoRecord const & operator[](size_t i) const