addDetectorBuilderFromConfig

lsst.afw.cameraGeom.addDetectorBuilderFromConfig(cameraBuilder, detectorConfig, amplifiers, focalPlaneToField)

Build a dictionary of Detector constructor keyword arguments.

The returned dictionary can be passed as keyword arguments to the Detector constructor, providing all required arguments. However, using these arguments directly constructs a Detector with knowledge of only the coordinate systems that are directly mapped to its own PIXELS coordinate system. To construct Detectors with a shared TransformMap for the full Camera, use makeCameraFromCatalogs or makeCameraFromPath instead of calling this function or makeDetector directly.

Parameters
cameraBuilderlsst.afw.cameraGeonm.Camera.Builder

Camera builder object to which the new Detector Builder should be added.

detectorConfiglsst.pex.config.Config

Configuration for this detector.

amplifierslist [Amplifier]

amplifier information for this detector

focalPlaneToFieldlsst.afw.geom.TransformPoint2ToPoint2

FOCAL_PLANE to FIELD_ANGLE Transform

Returns
detectorBuilderlsst.afw.cameraGeom.Detector.InCameraBuilder

A builder object for a detector corresponding to the given config, associated with the given camera builder object.