23 #if !defined(LSST_AFW_CAMERAGEOM_DETECTOR_H)
24 #define LSST_AFW_CAMERAGEOM_DETECTOR_H
28 #include <unordered_map>
29 #include "lsst/base.h"
38 namespace cameraGeom {
78 std::string
const &
name,
81 std::string
const &serial,
94 std::string
getName()
const {
return _name; }
97 int getId()
const {
return _id; }
163 std::shared_ptr<lsst::afw::table::AmpInfoRecord const>
_get(
int i)
const;
175 std::shared_ptr<lsst::afw::table::AmpInfoRecord const>
_get(std::string
const &name)
const;
180 size_t size()
const {
return _ampInfoCatalog.
size(); }
281 typedef std::unordered_map<std::string, table::AmpInfoCatalog::const_iterator> _AmpInfoMap;
300 _AmpInfoMap _ampNameIterMap;
Camera coordinate system; used as a key in in TransformMap.
Orientation const getOrientation() const
Get detector's orientation in the focal plane.
std::vector< geom::Point2D > getCorners(CameraSys const &cameraSys) const
Get the corners of the detector in the specified camera coordinate system.
lsst::afw::table::AmpInfoCatalog::const_iterator end() const
Get iterator to end of amplifier list.
CameraPoint makeCameraPoint(geom::Point2D const &point, CameraSysPrefix const &cameraSysPrefix) const
Make a CameraPoint from a point and a camera system prefix.
std::string getSerial() const
Get the detector serial "number".
Geometry and electronic information about raw amplifier images.
geom::Extent2D getPixelSize() const
Get size of pixel along (mm)
geom::Point2D getPoint() const
A custom container class for records, based on std::vector.
lsst::afw::table::AmpInfoRecord const & operator[](size_t i) const
Get the amplifier specified by index.
CameraPoint transform(CameraPoint const &fromCameraPoint, CameraSys const &toSys) const
Convert a CameraPoint from one coordinate system to another.
CameraPoint getCenter(CameraSys const &cameraSys) const
Get the center of the detector in the specified camera coordinate system.
size_t size() const
Get the number of amplifiers.
reference at(size_type i) const
Return the record at index i (throws std::out_of_range).
lsst::afw::geom::Box2I getBBox() const
Get the bounding box.
size_type size() const
Return the number of elements in the catalog.
CameraPoint transform(CameraPoint const &fromCameraPoint, CameraSysPrefix const &toSys) const
Convert a CameraPoint from one coordinate system to a coordinate system prefix.
An integer coordinate rectangle.
Describe a detector's orientation in the focal plane.
std::shared_ptr< afw::geom::XYTransform const > getTransform(CameraSys const &cameraSys) const
Get an XYTransform that transforms from cameraSys to the native system in the forward direction...
DetectorType getType() const
CameraTransformMap const getTransformMap() const
Get the transform registry.
iterator end()
Iterator access.
lsst::afw::table::AmpInfoCatalog::const_iterator begin() const
Get iterator to beginning of amplifier list.
CameraSys const makeCameraSys(CameraSys const &cameraSys) const
Get a coordinate system from a coordinate system (return input unchanged and untested) ...
Iterator class for CatalogT.
table::Key< std::string > name
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)
Make a Detector.
lsst::afw::table::AmpInfoCatalog const getAmpInfoCatalog() const
Get the amplifier information catalog.
CameraPoint makeCameraPoint(geom::Point2D const &point, CameraSys const &cameraSys) const
Make a CameraPoint from a point and a camera system.
bool hasTransform(CameraSys const &cameraSys) const
Does the specified camera coordinate system exist in the transform registry?
std::string getName() const
Get the detector name.
Camera coordinate system prefix.
CameraSys const makeCameraSys(CameraSysPrefix const &cameraSysPrefix) const
Get a coordinate system from a detector system prefix (add detector name)
CameraSys getCameraSys() const
Information about a CCD or other imaging detector.
A Point2D with associated camera coordinate system.
std::shared_ptr< lsst::afw::table::AmpInfoRecord const > _get(int i) const
Get the amplifier specified by index, returning a shared pointer to an AmpInfo record.
iterator begin()
Iterator access.
DetectorType
Type of imaging detector.
int getId() const
Get the detector ID.
std::string getSysName() const
Get coordinate system name.