dodal.devices.oav.beam_centre.centroid_from_epics.CentroidFromEpics#
- class dodal.devices.oav.beam_centre.centroid_from_epics.CentroidFromEpics[source]#
Device to set up the CAM -> CC -> STAT plugin chain and get the centroid.
The CC plugin is used to set the colour mode (Mono for black and white). The STAT plugin is used to calculate the centroid and threshold needs to be set to eliminate noise. Note that the STAT plugin may be disabled on some beamlines so it needs to be switched on.
- Parameters:
Methods
prepare(value)Prepare the camera to read the centroid by setting up the plugin chain.
stage()Once the device is prepared, switch on the stats plugin.
unstage()Switch the stats plugin back off once done.
Attributes
- prepare(value: CentroidSettings)[source]#
Prepare the camera to read the centroid by setting up the plugin chain.
- Parameters:
value (
CentroidSettings)
- stage()[source]#
Once the device is prepared, switch on the stats plugin.
This is done by enabling the callback and setting the ComputeCentroid and ComputeStatistics PVs to YES. (Note that Histogram and Profiles may be needed as well, needs testing.)
This step may be needed as keeping this plugin always running uses a lot of CPU, thus the beamline may have switched it off.