The object of the TDC matcher settings is to specify offsets, that will align TDC signals.
Both SSD and DSSD global object accepts:
*`tdc_shift` A value added to all non-zero TDC values. Default is 100x2^17
*`tdc_multiplier` All non-zero TDC values is multiplied by this. Default is 100.
*`tdc_offset` A path to a file. This file must contain three columns; strip number, offset and standard deviation. Example: [tdc_Det1_back.dat](/uploads/1f03399f0890148b91c68b595de79f30/tdc_Det1_back.dat). Such a file must be given for each DSSD side or SSD.
Quality check of front-back matching
-------------------------------------
If all front and back strips have been accurately calibrated, the
difference between matched front and back energies (FE-BE) should average to
zero with a small spread due to the finite experimental resolution.
Several automated quality checks have been built into the Sorter to
ensure that this is the case. Furthermore, the Sorter has an
algorithm to calculate improved calibration coefficients for all
channels.
As part of the quality check, the Sorter creates 2D histograms
of FE-BE versus energy, which are saved along with the sorted data
in the output file.
The quality checker is configured in the following way:
```json
{
"QC":{
"max_dev":20,
"range_threshold":0.5,
"x_max":1E4,
"x_min":0,
"x_max_fit":-1,
"x_min_fit":500,
"x_bins":100
}
}
```
The meaning of each parameter is as follows:
- x_bins: Divide the energy axis into this many bins
- x_min, x_max: Min and max values of the energy axis (keV)
- x_min_fit, x_max_fit: Fit range for linear fit to FE-BE (keV)
- max_dev: Detect problem if linear fit exceeds max_dev at any point (keV)