Closed Vindaar closed 5 years ago
The automatic selection of the closest Fe spectrum will probably be superseeded by performing a fit on dependency of the extracted correction factor for #pix or charge on the gas gain. This should result in a roughly linear behavior.
The automatic selection of the closest Fe spectrum will probably be superseeded by performing a fit on dependency of the extracted correction factor for #pix or charge on the gas gain. This should result in a roughly linear behavior.
This is what's being done nowadays. The relevant function is the following: https://github.com/Vindaar/TimepixAnalysis/blob/master/Analysis/ingrid/calibration.nim#L1077
Closing this issue.
Implement automatically choosing the closest calibration run for a given data run (or maybe sum the last and next runs).
In order to make that choice the path to the calibration run file needs to be given when reconstructing data runs. We might want to finally implement the
runType
flag and ifdata
is selected, the path to the calibration file is necessary.Part of the reconstruction is in those cases:
createFeSpectrum
for the calibration data (can make that mandatory forrunType == rtCalibration
(introduce enum for run type))nimpy
(mostly trivial to implement with the current status of it)mpfit
ornlopt
Maybe implement the first fitting approach first and once that is done go over to the second?