def get_charge_calibration(calibation_file, max_tdc):
with tb.open_file(calibation_file, mode="<STR_LIT:r>") as in_file_calibration_h5:<EOL><INDENT>tdc_calibration = in_file_calibration_h5.root.HitOrCalibration[:, :, :, <NUM_LIT:1>]<EOL>tdc_calibration_values = in_file_calibration_h5.root.HitOrCalibration.attrs.scan_parameter_values[:]<EOL><DEDENT>return get_charge(max_tdc, tdc_calibration_values, tdc_calibration)<EOL>
Open the hit or calibration file and return the calibration per pixel