id4_common.devices.vortex_xmap#

Vortex with DXP

Module Contents#

id4_common.devices.vortex_xmap.MAX_ROIS = 32#
class id4_common.devices.vortex_xmap.MyDXP#

Bases: ophyd.mca.SaturnDXP

SaturnDXP subclass that removes unused live_time_output and trigger_output components.

live_time_output = None#
trigger_output = None#
class id4_common.devices.vortex_xmap.MyMCA#

Bases: ophyd.mca.EpicsMCARecord

EpicsMCARecord subclass that adds a check_acquiring signal for polling acquisition state.

check_acquiring#
class id4_common.devices.vortex_xmap.SingleTrigger(*args, **kwargs)#

Bases: ophyd.Device

This trigger mixin class takes one acquisition per trigger. .. rubric:: Examples

>>> class SimDetector(SingleTrigger):
...     pass
>>> det = SimDetector('..pv..')
# optionally, customize name of image
>>> det = SimDetector('..pv..', image_name='fast_detector_image')
stage()#

Subscribe the status-signal callback and delegate to parent stage.

unstage()#

Unsubscribe the status-signal callback and delegate to parent unstage.

trigger()#

Trigger one acquisition.

class id4_common.devices.vortex_xmap.TotalCorrectedSignal(prefix, roi_index=0, **kwargs)#

Bases: ophyd.SignalRO

Signal that returns the deadtime corrected total counts

roi_index = 0#
get(**kwargs)#

Return the sum of deadtime-corrected ROI counts across all XMAP channels.

class id4_common.devices.vortex_xmap.VortexXMAP(*args, **kwargs)#

Bases: SingleTrigger, id4_common.devices.counters_mixin.ROICountersMixin

Four-element Vortex detector driven by an XIA XMAP DXP controller.

start#
stop_#
erase_start#
erase#
status#
collection_mode#
preset_mode#
instant_deadtime#
average_deadtime#
poll_time#
real_preset#
live_preset#
real_elapsed#
live_elapsed#
events_preset#
triggers_preset#
total#
mca1#
mca2#
mca3#
mca4#
dxp1#
dxp2#
dxp3#
dxp4#
default_kinds()#

Set default read/configuration attribute lists for MCA channels (placeholder).

default_settings()#

Set default stage signals for erase-on-start and real-time preset mode.

property read_rois#

Return the list of ROI indices that are currently included in reads.

select_roi(rois)#

Set the hinted ROI totals to those in rois, keeping other read_rois as normal.

plot_roi0()#

Set ROI 0 as the hinted plot channel.

plot_roi1()#

Set ROI 1 as the hinted plot channel.

plot_roi2()#

Set ROI 2 as the hinted plot channel.

plot_roi3()#

Set ROI 3 as the hinted plot channel.

plot_roi4()#

Set ROI 4 as the hinted plot channel.

property label_option_map#

Return a mapping from human-readable ROI label strings to ROI index integers.