Class Amplifier::Builder

Nested Relationships

This class is a nested type of Class Amplifier.

Inheritance Relationships

Base Type

Class Documentation

class Builder : public lsst::afw::cameraGeom::Amplifier

A mutable Amplifier subclass class that can be used to incrementally construct or modify Amplifiers.

Public Functions

Builder()

Construct a Builder with default values for all fields.

Builder(Builder const&)

Standard copy constructor.

Builder(Builder&&)

Standard move constructor.

Builder(Amplifier const &other)

Construct a Builder with values initialized from the given Amplifier.

Builder &operator=(Builder const&)

Standard copy assignment.

Builder &operator=(Builder&&)

Standard move assignment.

Builder &operator=(Amplifier const &other)

Set the Builder’s fields to those of the given Amplifier.

~Builder()
std::shared_ptr<Amplifier const> finish() const

Construct an immutable Amplifier with the same values as the Builder.

The derived type of the return instance is unspecified, and should be considered an implementation detail.

void setName(std::string const &name)

Name of the amplifier.

void setBBox(lsst::geom::Box2I const &bbox)

Bounding box of amplifier pixels in the trimmed, assembled image.

void setGain(double gain)

Amplifier gain in e-/ADU.

void setReadNoise(double readNoise)

Amplifier read noise, in e-.

void setSaturation(double saturation)

Level in ADU above which pixels are considered saturated; use nan if no such level applies.

void setSuspectLevel(double suspectLevel)

Level in ADU above which pixels are considered suspicious, meaning they may be affected by unknown systematics; for example if non-linearity corrections above a certain level are unstable then that would be a useful value for suspectLevel. Use nan if no such level applies.

void setReadoutCorner(ReadoutCorner readoutCorner)

Readout corner in the trimmed, assembled image.

void setLinearityCoeffs(ndarray::Array<double const, 1, 1> const &coeffs)

Vector of linearity coefficients.

void setLinearityType(std::string const &type)

Name of linearity parameterization.

void setLinearityThreshold(double threshold)

Level in ADU above which linearity should be applied. This should be set to 0.0 if no other value is known.

void setLinearityMaximum(double maximum)

Level in ADU above which the linearity relation is poorly defined. Should be set to the saturation level if no other value is known.

void setLinearityUnits(std::string const &units)

Units for the input to the linearity relation (DN).

void setRawBBox(lsst::geom::Box2I const &bbox)

Bounding box of all amplifier pixels on untrimmed, assembled raw image.

void setRawDataBBox(lsst::geom::Box2I const &bbox)

Bounding box of amplifier image pixels on untrimmed, assembled raw image.

void setRawFlipX(bool rawFlipX)

Flip row order in transformation from untrimmed, assembled raw image to trimmed, assembled post-ISR image?

void setRawFlipY(bool rawFlipY)

Flip column order in transformation from untrimmed, assembled raw image to trimmed, assembled post-ISR image?

void setRawXYOffset(lsst::geom::Extent2I const &xy)

Offset in transformation from pre-raw, unassembled image to trimmed, assembled post-ISR image: final xy0 - pre-raw xy0.

void setRawHorizontalOverscanBBox(lsst::geom::Box2I const &bbox)

The bounding box of horizontal overscan pixels in the assembled, untrimmed raw image.

void setRawVerticalOverscanBBox(lsst::geom::Box2I const &bbox)

The bounding box of vertical overscan pixels in the assembled, untrimmed raw image.

void setRawPrescanBBox(lsst::geom::Box2I const &bbox)

The bounding box of (horizontal) prescan pixels in the assembled, untrimmed raw image.

Public Static Functions

static Builder fromRecord(table::BaseRecord const &record)

Construct a new Builder object from the fields in the given record.

Parameters
  • [in] record: Record to copy fields from.

Protected Functions

Fields const &getFields() const