~analysis/packages/Calibrations/apply_calibration_steps.sh .
You may need to edit the trace gain file for broken segments (i.e. Q4P2, tr_gain_Q4pos2_CC9.txt, set line 25 to 10000.0 and Q8P2 gamma6, line 19 ) OR give SMALL calibration parameter in the detmap_Qx.txt file.