toor.DetectionLayout.Semicondutors package#
Submodules#
toor.DetectionLayout.Semicondutors.cztgeometry module#
- class toor.DetectionLayout.Semicondutors.cztgeometry.CZTModule[source]#
Bases:
object
- calculateInitialMatrix()[source]#
Calculates the initial matrix representing the coordinates of the pixels in the module. The matrix is stored in the initialMatrix attribute.
- Returns:
The initial matrix of the CZT module.
- Return type:
np.ndarray
- property cztThickness#
- property detectorSizeX#
- property detectorSizeY#
- property initialMatrix#
- property moduleNumber#
- property numberOfPixels#
- property origin#
- property pixelSize#
- property pixelSpacingX#
- property pixelSpacingY#
- rotateAndTranslate(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.
Module contents#
Brief description of the file.