Enums

These enums are defined in slsDetectorDefs in the C++ package and exposed to Python through pybind11.

# Most settings are represented as enums that can be
# explicitly imported

from slsdet import Detector, fileFormat
d = Detector()
d.fformat = fileFormat.BINARY

# Altough not recommended for convenience all enums
# and some other things can be impored using *

from slsdet import *
d.speed = speedLevel.FULL_SPEED

# To list the available enums, use dir()

import slsdet.enums
for enum in dir(slsdet.enums):
    # filter out special memebers
    if not enum.startswith('_'):
        print(enum)
class slsdet.runStatus

Members:

IDLE

ERROR

WAITING

RUN_FINISHED

TRANSMITTING

RUNNING

STOPPED

class slsdet.detectorType

Members:

GENERIC

EIGER

GOTTHARD

JUNGFRAU

CHIPTESTBOARD

MOENCH

MYTHEN3

GOTTHARD2

XILINX_CHIPTESTBOARD

class slsdet.frameDiscardPolicy

Members:

NO_DISCARD

DISCARD_EMPTY_FRAMES

DISCARD_PARTIAL_FRAMES

NUM_DISCARD_POLICIES

class slsdet.fileFormat

Members:

BINARY

HDF5

NUM_FILE_FORMATS

class slsdet.dimension

Members:

X

Y

class slsdet.externalSignalFlag

Members:

TRIGGER_IN_RISING_EDGE

TRIGGER_IN_FALLING_EDGE

INVERSION_ON

INVERSION_OFF

class slsdet.timingMode

Members:

AUTO_TIMING

TRIGGER_EXPOSURE

GATED

BURST_TRIGGER

TRIGGER_GATED

NUM_TIMING_MODES

class slsdet.dacIndex

Members:

DAC_0

DAC_1

DAC_2

DAC_3

DAC_4

DAC_5

DAC_6

DAC_7

DAC_8

DAC_9

DAC_10

DAC_11

DAC_12

DAC_13

DAC_14

DAC_15

DAC_16

DAC_17

VSVP

VTRIM

VRPREAMP

VRSHAPER

VSVN

VTGSTV

VCMP_LL

VCMP_LR

VCAL

VCMP_RL

RXB_RB

RXB_LB

VCMP_RR

VCP

VCN

VISHAPER

VTHRESHOLD

IO_DELAY

VREF_DS

VCASCN_PB

VCASCP_PB

VOUT_CM

VCASC_OUT

VIN_CM

VREF_COMP

IB_TESTC

VB_COMP

VDD_PROT

VIN_COM

VREF_PRECH

VB_PIXBUF

VB_DS

VREF_H_ADC

VB_COMP_FE

VB_COMP_ADC

VCOM_CDS

VREF_RSTORE

VB_OPA_1ST

VREF_COMP_FE

VCOM_ADC1

VREF_L_ADC

VREF_CDS

VB_CS

VB_OPA_FD

VCOM_ADC2

VCASSH

VTH2

VRSHAPER_N

VIPRE_OUT

VTH3

VTH1

VICIN

VCAS

VCAL_N

VIPRE

VCAL_P

VDCSH

VBP_COLBUF

VB_SDA

VCASC_SFP

VIPRE_CDS

IBIAS_SFP

ADC_VPP

HIGH_VOLTAGE

TEMPERATURE_ADC

TEMPERATURE_FPGA

TEMPERATURE_FPGAEXT

TEMPERATURE_10GE

TEMPERATURE_DCDC

TEMPERATURE_SODL

TEMPERATURE_SODR

TEMPERATURE_FPGA2

TEMPERATURE_FPGA3

TRIMBIT_SCAN

V_POWER_A

V_POWER_B

V_POWER_C

V_POWER_D

V_POWER_IO

V_POWER_CHIP

I_POWER_A

I_POWER_B

I_POWER_C

I_POWER_D

I_POWER_IO

V_LIMIT

SLOW_ADC0

SLOW_ADC1

SLOW_ADC2

SLOW_ADC3

SLOW_ADC4

SLOW_ADC5

SLOW_ADC6

SLOW_ADC7

SLOW_ADC_TEMP

class slsdet.detectorSettings

Members:

STANDARD

FAST

HIGHGAIN

DYNAMICGAIN

LOWGAIN

MEDIUMGAIN

VERYHIGHGAIN

HIGHGAIN0

FIXGAIN1

FIXGAIN2

VERYLOWGAIN

G1_HIGHGAIN

G1_LOWGAIN

G2_HIGHCAP_HIGHGAIN

G2_HIGHCAP_LOWGAIN

G2_LOWCAP_HIGHGAIN

G2_LOWCAP_LOWGAIN

G4_HIGHGAIN

G4_LOWGAIN

GAIN0

UNDEFINED

UNINITIALIZED

class slsdet.clockIndex

Members:

ADC_CLOCK

DBIT_CLOCK

RUN_CLOCK

SYNC_CLOCK

class slsdet.speedLevel

Members:

FULL_SPEED

HALF_SPEED

QUARTER_SPEED

G2_108MHZ

G2_144MHZ

class slsdet.readoutMode

Members:

ANALOG_ONLY

DIGITAL_ONLY

ANALOG_AND_DIGITAL

TRANSCEIVER_ONLY

DIGITAL_AND_TRANSCEIVER

class slsdet.burstMode

Members:

BURST_INTERNAL

BURST_EXTERNAL

CONTINUOUS_INTERNAL

CONTINUOUS_EXTERNAL

NUM_BURST_MODES

class slsdet.timingSourceType

Members:

TIMING_INTERNAL

TIMING_EXTERNAL

class slsdet.M3_GainCaps

Members:

M3_C10pre

M3_C15sh

M3_C30sh

M3_C50sh

M3_C225ACsh

M3_C15pre

class slsdet.portPosition

Members:

LEFT

RIGHT

TOP

BOTTOM

class slsdet.streamingInterface

Members:

NONE

LOW_LATENCY_LINK

ETHERNET_10GB

ALL

class slsdet.vetoAlgorithm

Members:

ALG_HITS

ALG_RAW

class slsdet.gainMode

Members:

DYNAMIC

FORCE_SWITCH_G1

FORCE_SWITCH_G2

FIX_G1

FIX_G2

FIX_G0