Definition of the detectors to detect the emitted photons.
Bases: exceptions.Exception
Exception raised when trying to add a material passed the maximum.
Bases: misctools.base.Validable
Store the parameters for a x-ray detector in PENEPMA (PDANGL, PDENER and XORIG).
If the upper limit of the energy window is Default, the beam energy of the source is used.
Parameters: |
|
---|
Upper limit of the azimuthal angle of the detector. The angle must be between 0 and 360 degrees. The value is stored in a magnitude.Magnitude.
Lower limit of the azimuthal angle of the detector. The angle must be between 0 and 360 degrees. The value is stored in a magnitude.Magnitude.
Number of channels of the detector. The number of channels must be between 10 and 1000. The value is stored in a magnitude.Magnitude.
filename for the emission map position of the coordinates of the emission sites of the photons that reach the detector. The file may grow very fast, so use this option only in short runs. If the attribute is deleted, it indicates that the file will not be created.
Upper limit of the energy window of the detector. The energy must be between 0 and 1e6 eV. If the attribute is deleted, the beam energy of the source is used. The value is stored in a magnitude.Magnitude.
Lower limit of the energy window of the detector. The energy must be between 0 and 1e6 eV. If the attribute is deleted, the value of 0.0 eV is used as the lower limit. The value is stored in a magnitude.Magnitude.
Creates a PhotonDetector from lines of a IN file.
Parameters: | lines – lines |
---|
Creates a PhotonDetector from a XML element.
Parameters: | element – XML element |
---|
PSF_NOFILE: the psf is not created.
PSF_CREATED: a psf is created.
only state variables of detected photons that have ILB(4)=IPSF (used for studying angular distributions of x rays).
Upper limit of the polar angle of the detector. The angle must be between 0 and 180 degrees. The value is stored in a magnitude.Magnitude.
Lower limit of the polar angle of the detector. The angle must be between 0 and 180 degrees. The value is stored in a magnitude.Magnitude.
Returns the solid angle of the detector based on the polar and azimuthal angles.
Returns a HTML representation of this option.
Returns the lines of this option to create a IN file.
Returns a XML representation of this option.
Validates the detector to check that the lower angle and energy limits are lower than the upper limits. Raises ValueError
Bases: list, penelopetools.api.input.penelope.option.Option
Store the x-ray detectors of a simulation job in a list object. It checks that the number of detectors is below the limit (50). If the number of detectors is above the maximum number of detectors, MaximumPhotonDetectorsError is raised.
Parameters: | data (list) – list of PhotonDetector |
---|
Appends a PhotonDetector to the list of photon detectors. If the number of detectors is above the maximum number of detectors, MaximumPhotonDetectorsError is raised.
Removes all photon detectors from the list.
Extends the list of photon detectors by another list of photon detectors. If the number of detectors is above the maximum number of detectors, MaximumPhotonDetectorsError is raised.
Creates a PhotonDetectors from lines of a IN file.
Parameters: | lines – lines |
---|
Creates a PhotonDetectors from a XML element.
Parameters: | element – XML element |
---|
Insert a PhotonDetector at index. If the number of detectors is above the maximum number of detectors, MaximumPhotonDetectorsError is raised.
Returns a HTML representation of this option.
Returns the lines of this option to create a IN file.
Returns a XML representation of this option.
Validates that there is at least one photon detector in the list and that each photon detector is valid. Raises ValueError