toor.Corrections.General package#

Submodules#

toor.Corrections.General.EnergyFiltering module#

class toor.Corrections.General.EnergyFiltering.EnergyFiltering[source]#

Bases: object

property allDecayGammas#
property currentBranchID#
property currentHighCutEnergy#
property currentLowCutEnergy#
property currentNumberOfBranches#
property currentNumberOfGammas#
property currentPeakEnergy#
property currentPeakID#
property currentPeakName#
property currentProcess#
property currentRadioIsotopeHalfLife#
property currentRadioisotopeFather#
property currentRadioisotopeSon#
property currentRadioisotopeState#
property currentRatioBranch#
detectEnergyWindows(radioisotopeParent='Ac-225')[source]#

Detect the energy windows for each gamma peak of the radioisotope If the radioisotope son is not stable goes to the rows of the son and join the energy windows of that gammas :type radioisotopeParent: :param radioisotopeParent: :return:

overrideEnergyCut(lowCutEnergy=0, highCutEnergy=400, systemEnergyResolution=None)[source]#
printCurrentInfoCut()[source]#
setCurrentGammaInformation(id=0)[source]#

The id is the index of the gamma in the dataframe :type id: :param id: :return:

setEnergyCutToListMode(listMode, save_plot=True, study_folder=None)[source]#

Set the energy cut to the list mode :type listMode: :param listMode: :type save_plot: :param save_plot: :return:

property totalNumberOfGammas#

toor.Corrections.General.detector_sensitivity module#

class toor.Corrections.General.detector_sensitivity.DetectorSensitivityResponse(use_detector_energy_resolution=True)[source]#

Bases: object

This class is used to calculate the detector sensitivity of a system.

property energyPeaks#

Get the energy peaks. :return: The energy peaks.

property energyWindows#

Get the energy windows. :return: The energy windows.

property fields#

Get the fields. :return: The fields.

property probabilityOfDetection#

Get the detector sensitivity. :return: The detector sensitivity.

setDetectorSensitivity(torFile=None, fileBodyData=None, generate_uniform=False)[source]#
setEnergyPeaks(energyPeaks=None)[source]#

Set the energy peaks for the detector sensitivity. :type energyPeaks: :param energyPeaks: The energy peaks to be used for the calculation.

setEnergyWindows(energyWindows=None, torFile=None)[source]#

Set the energy regions for the detector sensitivity. :param energyRegions: The energy regions to be used for the calculation.

setFields()[source]#

Set the fields for the detector sensitivity. :param fields: The fields to be used for the calculation.

toor.Corrections.General.generalprojector module#

class toor.Corrections.General.generalprojector.GeneralProjector[source]#

Bases: object

amplifyPointsToGPUCoordinateSystem()[source]#

Amplify the points to the GPU coordinate system acorddingly to the voxel size :return:

createVectorialSpace()[source]#

Create the vectorial space Needs pointCenterList, pointCorner1List, pointCorner2List, pointCorner3List, pointCorner4List to be defined first

transformIntoPositivePoints()[source]#

Transform the points into positive points

Module contents#