toor.DetectionLayout.Modules package#

Submodules#

toor.DetectionLayout.Modules.PETModuleGeneric module#

class toor.DetectionLayout.Modules.PETModuleGeneric.PETModule(module_id=None)[source]#

Bases: object

Class that represents a PET module. It contains the information about the module geometry and the detectors that compose it. .. method:: rotateAndTranslateModule

Rotates and translates the module according to the given angles and translations.

moduleID#

The module ID.

Type:

int

numberVisibleLightSensorsX#

The number of visible light sensors in the x axis.

Type:

int

numberVisibleLightSensorsY#

The number of visible light sensors in the y axis.

Type:

int

numberHighEnergyLightDetectors#

The number of high energy light detectors.

Type:

int

modelVisibleLightSensors#

The model of the visible light sensors.

modelHighEnergyLightDetectors#

The model of the high energy light detectors.

Type:

str

visibleLightSensorObject#

The object that represents the visible light sensors.

Type:

object

property alphaRotation#

Returns the alpha rotation.

property betaRotation#

Returns the beta rotation.

property detectorsPosition#

Returns the position of the detectors.

property highEnergyLightDetectorBlock#
property modelHighEnergyLightDetectors#

Returns the model of the high energy light detectors.

property modelVisibleLightSensors#
property moduleID#

Returns the module ID.

property numberHighEnergyLightDetectorsX#

Number of high energy light detectors in the X direction

property numberHighEnergyLightDetectorsY#

Number of high energy light detectors in the Y direction

property numberVisibleLightSensorsX#

Number of visible light sensors in the X direction

property numberVisibleLightSensorsY#

Number of visible light sensors in the Y direction

property reflectorThicknessX#

Returns the reflector thickness in the x direction.

property reflectorThicknessY#
rotateAndTranslateModule(point=None, alpha=0, beta=0, sigma=0, x=0, y=0, z=0, angunit='deg')[source]#

Rotates and translates the initial matrix according to the given angles and translations.

Parameters:
  • alpha (float) – The angle of rotation around the x axis.

  • beta (float) – The angle of rotation around the y axis.

  • sigma (float) – The angle of rotation around the z axis.

  • x (float) – The translation in the x axis.

  • y (float) – The translation in the y axis.

  • z (float) – The translation in the z axis.

  • angunit (str) – The unit of the angles. Default is “deg” for degrees.

setAlphaRotation(value)[source]#

Sets the alpha rotation.

setBetaRotation(value)[source]#

Sets the beta rotation.

setHighEnergyLightDetectorBlock(block_creation=True)[source]#
setInitialGeometry()[source]#

Sets the initial geometry of the module.

setModelHighEnergyLightDetectors(value)[source]#

Sets the model of the high energy light detectors.

setModelVisibleLightSensors(value)[source]#

Sets the model of the visible light sensors. Available options are:

setModuleID(value)[source]#

Sets the module ID.

setReflectorThicknessX(value)[source]#

Sets the reflector thickness in the x direction.

setReflectorThicknessY(value)[source]#

Sets the reflector thickness in the y direction.

setSigmaRotation(value)[source]#

Sets the sigma rotation.

setVisibleEnergyLightDetectorBlock()[source]#
setXTranslation(value)[source]#

Sets the x translation.

setYTranslation(value)[source]#

Sets the y translation.

setZTranslation(value)[source]#

Sets the z translation.

property sigmaRotation#

Returns the sigma rotation.

property totalNumberHighEnergyLightDetectors#
updateNumberHighEnergyLightDetectors(valueX, valueY)[source]#

Update the number of high energy light detectors in the X and Y direction

updateNumberVisibleLightSensorsX(value)[source]#

Update the number of visible light sensors in the X direction

Return type:

int

updateNumberVisibleLightSensorsY(value)[source]#

Update the number of visible light sensors in the Y direction

updateVisibleLightSensorObject(value)[source]#

Updates the visible light sensor object.

property visibleLightSensorObject#

Returns the visible light sensor object.

property xTranslation#

Returns the x translation.

property yTranslation#

Returns the y translation.

property zTranslation#

Returns the z translation.

toor.DetectionLayout.Modules.SPECTModuleGeneric module#

class toor.DetectionLayout.Modules.SPECTModuleGeneric.SPECTHeadGeneric(moduleObject, collimatorObject)[source]#

Bases: object

property CZTModules#

Return the list of objects of the CZT modules :return:

calculateInitialGeometry(alpha=0, beta=0, sigma=0, x=0, y=0, z=0)[source]#

Calculate the initial geometry of the head :type alpha: :param alpha: rotation around the x axis :type beta: :param beta: rotation around the y axis :type sigma: :param sigma: Rotation around z axis :type x: :param x: translation along x axis :type y: :param y: translation along y axis :type z: :param z: translation along z axis :return:

property collimators#

Return the list of objects of the collimators :return:

property numberHead#

Return the number of the head :return:

property numberOfModules#

Return the number of modules :return:

property projectorHeadPointsMap#

Return the points of the projector head :return:

saveVarsHead(deviceDirectory)[source]#

Save the variables of the head to a txt file :return:

setNumberHead(value)[source]#

Set the number of the head :type value: int :param value: :return:

setProjectorHeadPointsMap(points)[source]#

Set the points of the projector head :type points: :param points: :return:

toor.DetectionLayout.Modules.dualRotationModules module#

Module contents#