ALBULA  4.0.1
dectris.albula.DImageModule Class Reference

class DImageModule provides information of an image module e.g. More...

Public Member Functions

def DImageModule (geometry, chips, moduleNumber=- 1)
 Construct DImageModule given the absolute geometry of the module within the image and the geometry of the chips and the module number. More...
 
def DImageModule (module)
 Copy constructor. More...
 
def geometry ()
 
def move (dx, dy)
 
move the module by dx, dy holding the module size and the relative location for the chips constant. More...
 
def setModuleNumber (n)
 sets the module number More...
 
def setVrf (vrf)
 sets Vrf More...
 
def numberOfChips ()
 
def moduleNumber ()
 
def numberOfDACs ()
 
def vrf ()
 
def dacValue (iDac)
 
def dacName (iDac)
 
def load_countrate_correction_lookup_table ()
 loads the countrate lut from the optionalData More...
 
def absoluteChipGeometry (chipNumber)
 Absolute (i.e. with respect to image coordinates) size and position of a chip. More...
 
def chip (chipNumber)
 Relative (i.e. with respect to module coordinates) size and position of a chip. More...
 

Detailed Description

class DImageModule provides information of an image module e.g.

dimensions and coordinates.

Constructor & Destructor Documentation

◆ DImageModule() [1/2]

def dectris.albula.DImageModule.DImageModule (   geometry,
  chips,
  moduleNumber = - 1 
)

Construct DImageModule given the absolute geometry of the module within the image and the geometry of the chips and the module number.

Throws an DOutOfRangeException if length of chips is larger than MAX_NUMBER_OF_CHIPS.

Parameters
geometryDRect holding the absolute geometry of the module within the image
chipsList of DRects holding the geometries of the chips relative to the module
moduleNumberOptional number identifying the module

◆ DImageModule() [2/2]

def dectris.albula.DImageModule.DImageModule (   module)

Copy constructor.

Parameters
moduleConstruct DImageModule from existing DImageModule module

Member Function Documentation

◆ absoluteChipGeometry()

def dectris.albula.DImageModule.absoluteChipGeometry (   chipNumber)

Absolute (i.e. with respect to image coordinates) size and position of a chip.

Eventually throws an DOutOfRangeException. See also chip(int chipNumber).

Parameters
chipNumbernumber of the chip
Returns
DRect containing the geometry

◆ chip()

def dectris.albula.DImageModule.chip (   chipNumber)

Relative (i.e. with respect to module coordinates) size and position of a chip.

Eventually throws an DOutOfRangeException. See also absoluteChipGeometry(int chipNumber);

Parameters
chipNumbernumber of the chip
Returns
DRect containing the geometry

◆ dacName()

def dectris.albula.DImageModule.dacName (   iDac)
Returns
the DAC name

◆ dacValue()

def dectris.albula.DImageModule.dacValue (   iDac)
Returns
the DAC value

◆ geometry()

def dectris.albula.DImageModule.geometry ( )
Returns
DRect that contains the size and position of the module with respect to image coordinates

◆ load_countrate_correction_lookup_table()

def dectris.albula.DImageModule.load_countrate_correction_lookup_table ( )

loads the countrate lut from the optionalData

◆ moduleNumber()

def dectris.albula.DImageModule.moduleNumber ( )
Returns
return module number

◆ move()

def dectris.albula.DImageModule.move (   dx,
  dy 
)


move the module by dx, dy holding the module size and the relative location for the chips constant.

Parameters
dxmove in x direction by dx
dymove in y direction by dy

◆ numberOfChips()

def dectris.albula.DImageModule.numberOfChips ( )
Returns
return number of chips

◆ numberOfDACs()

def dectris.albula.DImageModule.numberOfDACs ( )
Returns
return number of DACs

◆ setModuleNumber()

def dectris.albula.DImageModule.setModuleNumber (   n)

sets the module number

◆ setVrf()

def dectris.albula.DImageModule.setVrf (   vrf)

sets Vrf

◆ vrf()

def dectris.albula.DImageModule.vrf ( )
Returns
the vrf value