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.
- modelVisibleLightSensors#
The model of the visible light sensors.
- 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.
- setModelVisibleLightSensors(value)[source]#
Sets the model of the visible light sensors. Available options are:
- 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:
- updateNumberVisibleLightSensorsY(value)[source]#
Update the number of visible light sensors in the Y direction
- 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: