Class DetectorBase

Nested Relationships

Inheritance Relationships

Derived Types

Class Documentation

class DetectorBase

An abstract base class that provides common accessors for Detector and Detector::Builder.

Subclassed by lsst::afw::cameraGeom::Detector, lsst::afw::cameraGeom::Detector::Builder

Unnamed Group

DetectorBase()

DetectorBase has no state, and is hence default-constructable, copyable, and movable.

DetectorBase(DetectorBase const&)
DetectorBase(DetectorBase&&)
DetectorBase &operator=(DetectorBase const&)
DetectorBase &operator=(DetectorBase&&)

Public Types

using CrosstalkMatrix = ndarray::Array<float const, 2>

Public Functions

virtual ~DetectorBase()
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.

This may mean different things for different cameras; possibilities include the manufacturer (“ITL” vs “E2V”) or fundamental technology (“CCD” vs “HgCdTe”).

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)

Return

cameraSys unchanged

Note

the CameraSysPrefix version needs the detector name, which is why this is not static.

Parameters
  • [in] cameraSys: Camera coordinate system

CameraSys makeCameraSys(CameraSysPrefix const &cameraSysPrefix) const

Get a coordinate system from a detector system prefix (add detector name)

Return

cameraSysPrefix with the detector name added

Parameters
  • [in] cameraSysPrefix: Camera coordinate system prefix

CameraSys getNativeCoordSys() const

The “native” coordinate system of this detector.

Protected Functions

virtual Fields const &getFields() const = 0

Return a reference to a Fields struct.

Must be implemented by all subclasses.

struct Fields

Public Members

std::string name = ""
int id = 0
DetectorType type = DetectorType::SCIENCE
std::string serial = ""
lsst::geom::Box2I bbox
Orientation orientation
lsst::geom::Extent2D pixelSize
CrosstalkMatrix crosstalk
std::string physicalType