toor.DetectionLayout.Collimators package#

Submodules#

toor.DetectionLayout.Collimators.collimatorGeneric module#

class toor.DetectionLayout.Collimators.collimatorGeneric.CollimatorGeneric[source]#

Bases: object

calculateFocalPoint(CztModule)[source]#

Calculate the focal point of the collimator :param CztModule object :return:

calculateInitialPyramidalVertex(CztModule, alpha=0, beta=0, sigma=0, x=0, y=0, z=0, angunit='deg')[source]#

Calculate the initial farest vertices of the collimator :param CztModule object :return:

property focalPoint#

Return the focal point of the collimator :return:

joinPyramidPointsIntoArray()[source]#

Join the points of the pyramid into a numpy array :return:

rotateAndTranslate(point, 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.

static vectorVertex(centerpoint, distanceFromPoint, shift)[source]#

Calculate the vector of the vertice

Parameters:
  • centerpoint

  • distanceFromPoint

  • shift

Returns:

property vertex1#

Return the vertice 1 :return:

property vertex2#

Return the vertice 2 :return:

property vertex3#

Return the vertice 3 :return:

property vertex4#

Return the vertice 4 :return:

Module contents#