|
LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
|
#include <Detector.h>
Private Types | |
| typedef boost::unordered_map < std::string, table::AmpInfoCatalog::const_iterator > | _AmpInfoMap |
Private Member Functions | |
| void | _init () |
Private Attributes | |
| std::string | _name |
| name of detector's location in the camera More... | |
| int | _id |
| detector numeric ID More... | |
| DetectorType | _type |
| type of detectorsize_t More... | |
| std::string | _serial |
| serial "number" that identifies the physical detector More... | |
| geom::Box2I | _bbox |
| bounding box More... | |
| table::AmpInfoCatalog | _ampInfoCatalog |
| list of amplifier data More... | |
| _AmpInfoMap | _ampNameIterMap |
| map of amplifier name: catalog iterator More... | |
| Orientation | _orientation |
| position and orientation of detector in focal plane More... | |
| geom::Extent2D | _pixelSize |
| pixel size (mm) More... | |
| CameraTransformMap | _transformMap |
| registry of coordinate transforms More... | |
Information about a CCD or other imaging detector
Supports conversion of CameraPoint between FOCAL_PLANE and pixel-based coordinate systems. Also an iterator over amplifiers (in C++ use begin(), end(), in Python use "for amplifier in detector").
Definition at line 64 of file Detector.h.
|
private |
Definition at line 247 of file Detector.h.
|
explicit |
Make a Detector
| lsst::pex::exceptions::InvalidParameterError | if:
|
| name | name of detector's location in the camera |
| id | detector integer ID; used as keys in some tables |
| type | type of detector |
| serial | serial "number" that identifies the physical detector |
| bbox | bounding box |
| ampInfoCatalog | catalog of amplifier information |
| orientation | detector position and orientation in focal plane |
| pixelSize | pixel size (mm) |
| transforms | map of CameraSys: lsst::afw::geom::XYTransform, where each transform's "forwardTransform" method transforms from PIXELS to the specified camera system |
Definition at line 31 of file Detector.cc.
|
inline |
Definition at line 91 of file Detector.h.
|
private |
Finish constructing this object
Set _ampNameIterMap from _ampInfoCatalog Check detector name in the CoordSys in the transform registry
| lsst::pex::exceptions::InvalidParameterError | if:
|
Definition at line 101 of file Detector.cc.
|
inline |
Get iterator to beginning of amplifier list
Definition at line 132 of file Detector.h.
|
inline |
Get iterator to end of amplifier list
Definition at line 135 of file Detector.h.
|
inline |
Get the amplifier information catalog
Definition at line 120 of file Detector.h.
|
inline |
| CameraPoint lsst.afw.cameraGeom::Detector::getCenter | ( | CameraSys const & | cameraSys | ) | const |
Get the center of the detector in the specified coordinate system
Definition at line 65 of file Detector.cc.
| CameraPoint lsst.afw.cameraGeom::Detector::getCenter | ( | CameraSysPrefix const & | cameraSysPrefix | ) | const |
Get the center of the detector in the specified coordinate system prefix
Definition at line 70 of file Detector.cc.
| std::vector< geom::Point2D > lsst.afw.cameraGeom::Detector::getCorners | ( | CameraSys const & | cameraSys | ) | const |
Get the corners of the detector in the specified coordinate system
Definition at line 56 of file Detector.cc.
| std::vector< geom::Point2D > lsst.afw.cameraGeom::Detector::getCorners | ( | CameraSysPrefix const & | cameraSysPrefix | ) | const |
Get the corners of the detector in the specified coordinate system prefix
Definition at line 61 of file Detector.cc.
|
inline |
|
inline |
Get the detector name
Definition at line 94 of file Detector.h.
|
inline |
Get detector's orientation in the focal plane
Definition at line 123 of file Detector.h.
|
inline |
Get size of pixel along (mm)
Definition at line 126 of file Detector.h.
|
inline |
Get the detector serial "number"
Definition at line 102 of file Detector.h.
| boost::shared_ptr< afw::geom::XYTransform const > lsst.afw.cameraGeom::Detector::getTransform | ( | CameraSys const & | cameraSys | ) | const |
Get an XYTransform that transforms from cameraSys to the native system in the forward direction
| [in] | cameraSys | camera coordinate system |
| pexExcept::InvalidParameterError | if coordSys is unknown |
Definition at line 92 of file Detector.cc.
| boost::shared_ptr< afw::geom::XYTransform const > lsst.afw.cameraGeom::Detector::getTransform | ( | CameraSysPrefix const & | cameraSysPrefix | ) | const |
Get an XYTransform that transforms from cameraSysPrefix to the native system in the forward direction
| [in] | cameraSysPrefix | camera coordinate system prefix |
| pexExcept::InvalidParameterError | if coordSys is unknown |
Definition at line 96 of file Detector.cc.
|
inline |
Get the transform registry
Definition at line 129 of file Detector.h.
|
inline |
Definition at line 99 of file Detector.h.
| bool lsst.afw.cameraGeom::Detector::hasTransform | ( | CameraSys const & | cameraSys | ) | const |
Does the specified CameraSys exist in the transform registry
Definition at line 84 of file Detector.cc.
| bool lsst.afw.cameraGeom::Detector::hasTransform | ( | CameraSysPrefix const & | cameraSysPrefix | ) | const |
Does the specified CameraSysPrefix exist in the transform registry
Definition at line 88 of file Detector.cc.
|
inline |
Make a CameraPoint from a point and a camera system
| point | 2-d point |
| cameraSys | coordinate system |
Definition at line 187 of file Detector.h.
|
inline |
Make a CameraPoint from a point and a camera system prefix
| point | 2-d point |
| cameraSysPrefix | coordinate system prefix |
Definition at line 197 of file Detector.h.
|
inline |
Get a coordinate system from a coordinate system (return input unchanged and untested)
Definition at line 209 of file Detector.h.
|
inline |
Get a coordinate system from a detector system prefix (add detector name)
Definition at line 214 of file Detector.h.
|
inline |
Get the amplifier specified by index
| std::out_of_range) | if index is out of range |
Definition at line 142 of file Detector.h.
| const table::AmpInfoRecord & lsst.afw.cameraGeom::Detector::operator[] | ( | std::string const & | name | ) | const |
Get the amplifier specified by name
| lst::pex::exceptions::InvalidParameterError | if no such amplifier |
Definition at line 74 of file Detector.cc.
|
inline |
Get number of amplifiers. Renamed to len in Python.
Definition at line 154 of file Detector.h.
|
inline |
Convert a CameraPoint from one coordinate system to another
| pexExcept::InvalidParameterError | if from or to coordinate system is unknown |
| fromCameraPoint | camera point to transform |
| toSys | coordinate system to which to transform |
Definition at line 223 of file Detector.h.
|
inline |
Convert a CameraPoint from one coordinate system to a coordinate system prefix
The coordinate system prefix is filled in with this detector's name
| pexExcept::InvalidParameterError | if from or to coordinate system is unknown |
| fromCameraPoint | camera point to transform |
| toSys | coordinate system prefix to which to transform |
Definition at line 239 of file Detector.h.
|
private |
list of amplifier data
Definition at line 265 of file Detector.h.
|
private |
map of amplifier name: catalog iterator
Definition at line 266 of file Detector.h.
|
private |
bounding box
Definition at line 264 of file Detector.h.
|
private |
detector numeric ID
Definition at line 261 of file Detector.h.
|
private |
name of detector's location in the camera
Definition at line 260 of file Detector.h.
|
private |
position and orientation of detector in focal plane
Definition at line 267 of file Detector.h.
|
private |
pixel size (mm)
Definition at line 268 of file Detector.h.
|
private |
serial "number" that identifies the physical detector
Definition at line 263 of file Detector.h.
|
private |
registry of coordinate transforms
Definition at line 269 of file Detector.h.
|
private |
type of detectorsize_t
Definition at line 262 of file Detector.h.
1.8.5