Vindaar / TimepixAnalysis

Contains code related to calibration and analysis of Timepix based detector + CAST related code
MIT License
19 stars 6 forks source link

Auto choose closest Fe spectrum #9

Closed Vindaar closed 5 years ago

Vindaar commented 5 years ago

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 if data is selected, the path to the calibration file is necessary.

Part of the reconstruction is in those cases:

Maybe implement the first fitting approach first and once that is done go over to the second?

Vindaar commented 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.

Vindaar commented 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.

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.