LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
LSST Data Management Base Package
|
A helper class that allows the properties of a detector to be modified in the course of modifying a full camera. More...
#include <Detector.h>
Public Types | |
using | CrosstalkMatrix = ndarray::Array<float const, 2> |
Public Member Functions | |
void | setOrientation (Orientation const &orientation) |
Set the orientation of the detector in the focal plane. | |
void | setPixelSize (lsst::geom::Extent2D const &pixelSize) |
Set the pixel size (in mm). | |
void | setTransformFromPixelsTo (CameraSysPrefix const &toSys, std::shared_ptr< afw::geom::TransformPoint2ToPoint2 const > transform) |
Set the transformation from PIXELS to the given coordinate system. | |
void | setTransformFromPixelsTo (CameraSys const &toSys, std::shared_ptr< afw::geom::TransformPoint2ToPoint2 const > transform) |
Set the transformation from PIXELS to the given coordinate system. | |
bool | discardTransformFromPixelsTo (CameraSysPrefix const &toSys) |
Remove any transformation from PIXELS to the given coordinate system. | |
bool | discardTransformFromPixelsTo (CameraSys const &toSys) |
Remove any transformation from PIXELS to the given coordinate system. | |
void | clearTransforms () |
Remove all coordinate transforms. | |
void | setBBox (lsst::geom::Box2I const &bbox) |
Set the bounding box. | |
void | setType (DetectorType type) |
Set the purpose of this detector. | |
void | setSerial (std::string const &serial) |
Set the detector serial "number". | |
void | setPhysicalType (std::string const &physicalType) |
Set the detector's physical type. | |
void | setCrosstalk (CrosstalkMatrix const &crosstalk) |
Set the crosstalk coefficients. | |
void | unsetCrosstalk () |
Remove the crosstalk coefficient matrix. | |
std::vector< std::shared_ptr< Amplifier::Builder > > const & | getAmplifiers () const |
Return the sequence of Amplifier::Builders directly. | |
auto | begin () |
An iterator range over amplifers. | |
auto | end () |
std::shared_ptr< Amplifier::Builder > | operator[] (size_t i) const |
Get the amplifier builder specified by index. | |
std::shared_ptr< Amplifier::Builder > | operator[] (std::string const &name) const |
Get a builder for the amplifier specified by name. | |
void | append (std::shared_ptr< Amplifier::Builder > builder) |
Append a new amplifier. | |
void | clear () |
Remove all amplifiers. | |
std::size_t | size () const |
Return the number of amplifiers (renamed to len in Python). | |
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. | |
Protected Member Functions | |
Fields const & | getFields () const override |
Return a reference to a Fields struct. | |
std::vector< std::shared_ptr< Amplifier const > > | finishAmplifiers () const |
Create a vector of Amplifiers from the Amplifier::Builder sequence. | |
Static Protected Member Functions | |
static std::vector< std::shared_ptr< Amplifier::Builder > > | rebuildAmplifiers (Detector const &detector) |
Create a vector of Amplifier::Builders from the Amplifiers in a Detector. | |
Friends | |
class | Camera |
A helper class that allows the properties of a detector to be modified in the course of modifying a full camera.
Detector::InCameraBuilder can only be constructed via Camera::Builder, and all Detector::InCameraBuilder instances should always be owned by or shared with a Camera::Builder.
Unlike Detector::PartialRebuilder, InCameraBuilder can be used to set the orientation, pixel size, and more general coordinate systems associated with the detector.
The transformation from FOCAL_PLANE to PIXELS that relates this detector's coordinate systems to those of the full camera and other detectors is created from the orientation and pixel size fields, and need not (and cannot) be set explicitly.
Definition at line 555 of file Detector.h.
|
inherited |
Definition at line 59 of file Detector.h.
|
inherited |
Append a new amplifier.
Definition at line 376 of file Detector.cc.
|
inlineinherited |
An iterator range over amplifers.
Iterators dereference to shared_ptr<Amplifier::Builder>
.
Definition at line 426 of file Detector.h.
|
inlineinherited |
|
inline |
Remove all coordinate transforms.
Definition at line 623 of file Detector.h.
bool lsst::afw::cameraGeom::Detector::InCameraBuilder::discardTransformFromPixelsTo | ( | CameraSys const & | toSys | ) |
Remove any transformation from PIXELS to the given coordinate system.
toSys | Coordinate system prefix this transform returns points in. Must be associated with this detector. |
pex::exceptions::InvalidParameterError | if toSys.getDetectorName() != this->getName() . |
Definition at line 470 of file Detector.cc.
bool lsst::afw::cameraGeom::Detector::InCameraBuilder::discardTransformFromPixelsTo | ( | CameraSysPrefix const & | toSys | ) |
Remove any transformation from PIXELS to the given coordinate system.
toSys | Coordinate system prefix this transform returns points in. |
Definition at line 466 of file Detector.cc.
|
inlineinherited |
Definition at line 427 of file Detector.h.
|
protectedinherited |
Create a vector of Amplifiers from the Amplifier::Builder sequence.
Definition at line 398 of file Detector.cc.
|
inlineinherited |
Return the sequence of Amplifier::Builders directly.
Definition at line 418 of file Detector.h.
|
inlineinherited |
Get the bounding box.
Definition at line 85 of file Detector.h.
|
inlineinherited |
Get the crosstalk coefficients.
Definition at line 100 of file Detector.h.
|
inlineoverrideprotectedvirtualinherited |
Return a reference to a Fields struct.
Must be implemented by all subclasses.
Implements lsst::afw::cameraGeom::DetectorBase.
Definition at line 476 of file Detector.h.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Get detector's orientation in the focal plane.
Definition at line 88 of file Detector.h.
|
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.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Get a coordinate system from a coordinate system (return input unchanged and untested)
[in] | cameraSys | Camera coordinate system |
cameraSys
unchangedDefinition 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 |
cameraSysPrefix
with the detector name added Definition at line 118 of file Detector.h.
|
inlineinherited |
Get the amplifier builder specified by index.
std::out_of_range | if index is out of range. |
Definition at line 435 of file Detector.h.
|
inherited |
Get a builder for the amplifier specified by name.
lsst::pex::exceptions::InvalidParameterError | if no such amplifier. |
Definition at line 372 of file Detector.cc.
|
staticprotectedinherited |
Create a vector of Amplifier::Builders from the Amplifiers in a Detector.
Definition at line 380 of file Detector.cc.
|
inlineinherited |
|
inlineinherited |
Set the crosstalk coefficients.
The shape of the crosstalk matrix must be consistent with the set of amplifiers, but is not checked until a Detector instance is actually constructed.
Setting with a zero-size matrix is equivalent to calling unsetCrosstalk()
.
Definition at line 400 of file Detector.h.
|
inline |
Set the orientation of the detector in the focal plane.
Definition at line 561 of file Detector.h.
|
inlineinherited |
Set 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 388 of file Detector.h.
|
inline |
Set the pixel size (in mm).
Definition at line 566 of file Detector.h.
|
inlineinherited |
void lsst::afw::cameraGeom::Detector::InCameraBuilder::setTransformFromPixelsTo | ( | CameraSys const & | toSys, |
std::shared_ptr< afw::geom::TransformPoint2ToPoint2 const > | transform ) |
Set the transformation from PIXELS to the given coordinate system.
toSys | Coordinate system prefix this transform returns points in. Must be associated with this detector. |
transform | Transform from PIXELS to toSys . |
If a transform already exists from PIXELS to toSys
, it is overwritten.
pex::exceptions::InvalidParameterError | if toSys.getDetectorName() != this->getName() . |
Definition at line 445 of file Detector.cc.
void lsst::afw::cameraGeom::Detector::InCameraBuilder::setTransformFromPixelsTo | ( | CameraSysPrefix const & | toSys, |
std::shared_ptr< afw::geom::TransformPoint2ToPoint2 const > | transform ) |
Set the transformation from PIXELS to the given coordinate system.
toSys | Coordinate system prefix this transform returns points in. |
transform | Transform from PIXELS to toSys . |
If a transform already exists from PIXELS to toSys
, it is overwritten.
Definition at line 438 of file Detector.cc.
|
inlineinherited |
|
inlineinherited |
Return the number of amplifiers (renamed to len in Python).
Definition at line 451 of file Detector.h.
|
inlineinherited |
Remove the crosstalk coefficient matrix.
Definition at line 403 of file Detector.h.
|
friend |
Definition at line 630 of file Detector.h.