multidetector xrf fitting
- rename
BatchFitTask
toSingleDetectorFit
- new task:
DeadtimeCorrection
: deadtime correction of spectra - new task:
SumDetectors
: deadtime correction of spectra and sum them - new task:
MultiDetectorFit
(like SingleDetectorFit but one configuration file per detectors): fit spectra separately followed by deadtime correction and summing/averaging of fit results
Deadtime correction of spectra
signal(nscanpoints, nmca) / output_live_time (nscanpoints) * reference_time
Deadtime correction of fit results:
signal(nscanpoints) / output_live_time (nscanpoints) * reference_time
Workflows
Three different examples of workflows with the tasks above
Workflow 1: 1 scan, 1 detector
-
SingleDetectorFit
:- inputs: spectra(nscanpoints, nmca), cfg(scalar)
- outputs: fitresults(nscanpoints, nparams)
-
DeadtimeCorrection
:- inputs: fitresults(nscanpoints, nparams), output_live_time(nscanpoints), reference_time(scalar)
- outputs: corresults(nscanpoints, nparams)
Workflow 2: 1 scan, N detectors
-
SumDetectors
:- inputs: spectra(nscanpoints, nmca, N), output_live_time(nscanpoints, N), reference_time(scalar)
- outputs: spectra(nscanpoints, nmca)
-
SingleDetectorFit
: see above
Workflow 3: 1 scan, N detectors
-
MultiDetectorFit
:- inputs: spectra(nscanpoints, nmca, N), configs(N), output_live_time(nscanpoints, N), reference_time(scalar)
- outputs: corresults(nscanpoints, nparams)
Notes:
-
output_live_time
should have aunits
attribute in the Bliss file. If not assume it is in seconds. Thereference_time
should always be in seconds.
Edited by Wout De Nolf