|
lsst.afw gba399f52f3+9b61cfce8e
|
A representation of a detector in a mosaic camera. More...
#include <Detector.h>
Classes | |
| class | Builder |
| A helper class for Detector that allows amplifiers and most fields to be modified. More... | |
| class | PartialRebuilder |
| A helper class that allows the properties of a single detector to be modified in isolation. More... | |
| class | InCameraBuilder |
| A helper class that allows the properties of a detector to be modified in the course of modifying a full camera. More... | |
| class | Factory |
Public Types | |
| using | CrosstalkMatrix = ndarray::Array<float const, 2> |
Public Member Functions | |
| std::shared_ptr< PartialRebuilder > | rebuild () const |
| Return a Builder object initialized with the state of this Detector. | |
| std::vector< lsst::geom::Point2D > | getCorners (CameraSys const &cameraSys) const |
| Get the corners of the detector in the specified camera coordinate system. | |
| std::vector< lsst::geom::Point2D > | getCorners (CameraSysPrefix const &cameraSysPrefix) const |
| Get the corners of the detector in the specified camera coordinate system prefix. | |
| lsst::geom::Point2D | getCenter (CameraSys const &cameraSys) const |
| Get the center of the detector in the specified camera coordinate system. | |
| lsst::geom::Point2D | getCenter (CameraSysPrefix const &cameraSysPrefix) const |
| Get the center of the detector in the specified camera coordinate system prefix. | |
| bool | hasTransform (CameraSys const &cameraSys) const |
| Can this object convert between PIXELS and the specified camera coordinate system? | |
| bool | hasTransform (CameraSysPrefix const &cameraSysPrefix) const |
| Can this object convert between PIXELS and the specified camera coordinate system prefix? | |
| template<typename FromSysT, typename ToSysT> | |
| std::shared_ptr< afw::geom::TransformPoint2ToPoint2 > | getTransform (FromSysT const &fromSys, ToSysT const &toSys) const |
| Get a Transform from one camera coordinate system, or camera coordinate system prefix, to another. | |
| template<typename FromSysT, typename ToSysT> | |
| lsst::geom::Point2D | transform (lsst::geom::Point2D const &point, FromSysT const &fromSys, ToSysT const &toSys) const |
| Transform a point from one camera system to another. | |
| template<typename FromSysT, typename ToSysT> | |
| std::vector< lsst::geom::Point2D > | transform (std::vector< lsst::geom::Point2D > const &points, FromSysT const &fromSys, ToSysT const &toSys) const |
| Transform a vector of points from one camera system to another. | |
| std::shared_ptr< TransformMap const > | getTransformMap () const |
| Get the transform registry. | |
| std::vector< std::shared_ptr< Amplifier const > > const & | getAmplifiers () const |
| Return the sequence of Amplifiers directly. | |
| auto | begin () const |
| An iterator range over amplifers. | |
| auto | end () const |
| std::shared_ptr< Amplifier const > | operator[] (size_t i) const |
| Get the amplifier specified by index. | |
| std::shared_ptr< Amplifier const > | operator[] (std::string const &name) const |
| Get the amplifier specified by name. | |
| std::size_t | size () const |
| Get the number of amplifiers. | |
| bool | isPersistable () const noexcept override |
| Detector is always persistable. | |
| template<typename FromSysT, typename ToSysT> | |
| std::shared_ptr< geom::TransformPoint2ToPoint2 > | getTransform (FromSysT const &fromSys, ToSysT const &toSys) const |
| std::string | getName () const |
| Get the detector name. | |
| int | getId () const |
| Get the detector ID. | |
| DetectorType | getType () const |
| Return the purpose of this detector. | |
| std::string | getSerial () const |
| Get the detector serial "number". | |
| std::string | getPhysicalType () const |
| Get the detector's physical type. | |
| lsst::geom::Box2I | getBBox () const |
| Get the bounding box. | |
| Orientation | getOrientation () const |
| Get detector's orientation in the focal plane. | |
| lsst::geom::Extent2D | getPixelSize () const |
| Get size of pixel along (mm). | |
| bool | hasCrosstalk () const |
| Have we got crosstalk coefficients? | |
| CrosstalkMatrix | getCrosstalk () const |
| Get the crosstalk coefficients. | |
| CameraSys | makeCameraSys (CameraSys const &cameraSys) const |
| Get a coordinate system from a coordinate system (return input unchanged and untested). | |
| CameraSys | makeCameraSys (CameraSysPrefix const &cameraSysPrefix) const |
| Get a coordinate system from a detector system prefix (add detector name). | |
| CameraSys | getNativeCoordSys () const |
| The "native" coordinate system of this detector. | |
Static Public Member Functions | |
| static std::shared_ptr< Detector > | readFits (fits::Fits &fitsfile) |
| Read an object from an already open FITS object. | |
| static std::shared_ptr< Detector > | dynamicCast (std::shared_ptr< Persistable > const &ptr) |
| Dynamically cast a shared_ptr. | |
Protected Member Functions | |
| Fields const & | getFields () const override |
| Return a reference to a Fields struct. | |
Private Member Functions | |
| std::string | getPersistenceName () const override |
| std::string | getPythonModule () const override |
| void | write (OutputArchiveHandle &handle) const override |
A representation of a detector in a mosaic camera.
Detector holds both simple data fields (see DetectorBase) and a set of related coordinate systems and transforms, and acts as a container of Amplifier objects.
Detector is immutable, but copies can be modified via one of its Builder classes. A Detector must be created initially as part of a Camera (see Camera::Builder::add), but can then be modified either individually (see Detector::rebuild and Detector::PartialRebuilder) or as part of modifying the full Camera (see Detector::InCameraBuilder).
The coordinate systems and transforms known to a Detector are shared with its parent Camera and all other Detectors in that Camera.
Definition at line 181 of file Detector.h.
|
inherited |
Definition at line 59 of file Detector.h.
|
inline |
An iterator range over amplifers.
Iterators dereference to shared_ptr<Amplifier const>.
Definition at line 277 of file Detector.h.
|
staticinherited |
Dynamically cast a shared_ptr.
Dynamically cast a shared pointer and raise on failure.
You must provide an explicit template instantiation in the .cc file for each class that inherits from PersistableFacade. Designed to work around RTTI issues on macOS with hidden symbols;
| lsst::pex::exceptions::LogicError | if the cast fails |
param[in] ptr The pointer to be cast.
| lsst::pex::exceptions::TypeError | If the dynamic cast fails. |
Definition at line 218 of file Persistable.cc.
|
inline |
Definition at line 278 of file Detector.h.
|
inline |
Return the sequence of Amplifiers directly.
Definition at line 269 of file Detector.h.
|
inlineinherited |
Get the bounding box.
Definition at line 85 of file Detector.h.
| lsst::geom::Point2D lsst::afw::cameraGeom::Detector::getCenter | ( | CameraSys const & | cameraSys | ) | const |
Get the center of the detector in the specified camera coordinate system.
Definition at line 72 of file Detector.cc.
| lsst::geom::Point2D lsst::afw::cameraGeom::Detector::getCenter | ( | CameraSysPrefix const & | cameraSysPrefix | ) | const |
Get the center of the detector in the specified camera coordinate system prefix.
Definition at line 78 of file Detector.cc.
| std::vector< lsst::geom::Point2D > lsst::afw::cameraGeom::Detector::getCorners | ( | CameraSys const & | cameraSys | ) | const |
Get the corners of the detector in the specified camera coordinate system.
Definition at line 62 of file Detector.cc.
| std::vector< lsst::geom::Point2D > lsst::afw::cameraGeom::Detector::getCorners | ( | CameraSysPrefix const & | cameraSysPrefix | ) | const |
Get the corners of the detector in the specified camera coordinate system prefix.
Definition at line 68 of file Detector.cc.
|
inlineinherited |
Get the crosstalk coefficients.
Definition at line 100 of file Detector.h.
|
inlineoverrideprotectedvirtual |
Return a reference to a Fields struct.
Must be implemented by all subclasses.
Implements lsst::afw::cameraGeom::DetectorBase.
Definition at line 305 of file Detector.h.
|
inlineinherited |
Get the detector ID.
Definition at line 67 of file Detector.h.
|
inlineinherited |
Get the detector name.
Definition at line 64 of file Detector.h.
|
inlineinherited |
The "native" coordinate system of this detector.
Definition at line 123 of file Detector.h.
|
inlineinherited |
Get detector's orientation in the focal plane.
Definition at line 88 of file Detector.h.
|
overrideprivate |
Definition at line 319 of file Detector.cc.
|
inlineinherited |
Get the detector's physical type.
This may mean different things for different cameras; possibilities include the manufacturer ("ITL" vs "E2V") or fundamental technology ("CCD" vs "HgCdTe").
Definition at line 82 of file Detector.h.
|
inlineinherited |
Get size of pixel along (mm).
Definition at line 91 of file Detector.h.
|
overrideprivate |
Definition at line 325 of file Detector.cc.
|
inlineinherited |
Get the detector serial "number".
Definition at line 73 of file Detector.h.
| std::shared_ptr< afw::geom::TransformPoint2ToPoint2 > lsst::afw::cameraGeom::Detector::getTransform | ( | FromSysT const & | fromSys, |
| ToSysT const & | toSys ) const |
Get a Transform from one camera coordinate system, or camera coordinate system prefix, to another.
| FromSysT,ToSysT | Type of fromSys, toSys: one of CameraSys or CameraSysPrefix |
| fromSys,toSys | camera coordinate systems or prefixes between which to transform |
| lsst::pex::exceptions::InvalidParameterError | Thrown if either fromSys or toSys is not supported. |
| std::shared_ptr< geom::TransformPoint2ToPoint2 > lsst::afw::cameraGeom::Detector::getTransform | ( | FromSysT const & | fromSys, |
| ToSysT const & | toSys ) const |
Definition at line 89 of file Detector.cc.
|
inline |
Get the transform registry.
Definition at line 266 of file Detector.h.
|
inlineinherited |
Return the purpose of this detector.
Definition at line 70 of file Detector.h.
|
inlineinherited |
Have we got crosstalk coefficients?
Definition at line 94 of file Detector.h.
| bool lsst::afw::cameraGeom::Detector::hasTransform | ( | CameraSys const & | cameraSys | ) | const |
Can this object convert between PIXELS and the specified camera coordinate system?
Definition at line 82 of file Detector.cc.
| bool lsst::afw::cameraGeom::Detector::hasTransform | ( | CameraSysPrefix const & | cameraSysPrefix | ) | const |
Can this object convert between PIXELS and the specified camera coordinate system prefix?
Definition at line 84 of file Detector.cc.
|
inlineoverridenoexcept |
Detector is always persistable.
Definition at line 301 of file Detector.h.
|
inlineinherited |
Get a coordinate system from a coordinate system (return input unchanged and untested).
| [in] | cameraSys | Camera coordinate system |
Definition at line 110 of file Detector.h.
|
inlineinherited |
Get a coordinate system from a detector system prefix (add detector name).
| [in] | cameraSysPrefix | Camera coordinate system prefix |
Definition at line 118 of file Detector.h.
|
inline |
Get the amplifier specified by index.
| std::out_of_range | if index is out of range. |
Definition at line 286 of file Detector.h.
| std::shared_ptr< Amplifier const > lsst::afw::cameraGeom::Detector::operator[] | ( | std::string const & | name | ) | const |
Get the amplifier specified by name.
| lsst::pex::exceptions::InvalidParameterError | if no such amplifier. |
Definition at line 106 of file Detector.cc.
|
inlinestaticinherited |
Read an object from an already open FITS object.
| [in] | fitsfile | FITS object to read from, already positioned at the desired HDU. |
Definition at line 183 of file Persistable.h.
| std::shared_ptr< Detector::PartialRebuilder > lsst::afw::cameraGeom::Detector::rebuild | ( | ) | const |
Return a Builder object initialized with the state of this Detector.
This is simply a shortcut for Detector::PartialRebuilder(*this).
Definition at line 58 of file Detector.cc.
|
inline |
Get the number of amplifiers.
Renamed to __len__ in Python.
Definition at line 298 of file Detector.h.
| lsst::geom::Point2D lsst::afw::cameraGeom::Detector::transform | ( | lsst::geom::Point2D const & | point, |
| FromSysT const & | fromSys, | ||
| ToSysT const & | toSys ) const |
Transform a point from one camera system to another.
| FromSysT | Class of fromSys: one of CameraSys or CameraSysPrefix |
| ToSysT | Class of toSys: one of CameraSys or CameraSysPrefix |
| [in] | point | Camera point to transform |
| [in] | fromSys | Camera coordinate system of point |
| [in] | toSys | Camera coordinate system of returned point |
| pex::exceptions::InvalidParameterError | if fromSys or toSys is unknown |
Definition at line 95 of file Detector.cc.
| std::vector< lsst::geom::Point2D > lsst::afw::cameraGeom::Detector::transform | ( | std::vector< lsst::geom::Point2D > const & | points, |
| FromSysT const & | fromSys, | ||
| ToSysT const & | toSys ) const |
Transform a vector of points from one camera system to another.
| FromSysT | Class of fromSys: one of CameraSys or CameraSysPrefix |
| ToSysT | Class of toSys: one of CameraSys or CameraSysPrefix |
| [in] | points | Camera points to transform |
| [in] | fromSys | Camera coordinate system of points |
| [in] | toSys | Camera coordinate system of returned points |
| pex::exceptions::InvalidParameterError | if fromSys or toSys is unknown |
Definition at line 101 of file Detector.cc.
|
overrideprivate |
Definition at line 329 of file Detector.cc.