The detector calibration can be done off-line (say, on your laptop) as long as you have the files I told you to record above. If you want to reuse existing calibration parameters, you should have a full calibration file (say, sidet_calibration_stxmi.dat) available, or some other valid file as mentioned below.
Start the calibration program in IDL:
IDL> detcal_gui, sidet_n_segments=8
The number of segments has to be specified at the start and can't be changed during the calibration session. It defaults to eight, so you don't have to specify it until we get the new chips with more segments.
To a certain degree, the calibration steps can be done independent of each other, and existing calibration parameters can be reused. The following describes how certain existing parameters can be read into detcal_gui and how certain parameters can be written out. If you attempt to write out a parameter which hasn't been read in or determined yet, the program will raise an error.
From "File" / "Write Calibration File", you can write out all parameters to a calibration file. If some parameters are missing (if they haven't been read in or determined before), the program will raise an error.
For the syntax of the calibration file, look at an example like cvs/idl_local/stxm5/test_data/sidet_calibration.dat. Note that all vector and matrix entries in that file have sm_par_n_adc_channels entries (which is 16), where all entries above sidet_n_segments are filled with zeroes.
From "File" / "Write Crosstalk Matrix to File", the matrix can be output to a file.