Offline calibration procedure of the drift tube detectors. CERN-CMS-NOTE-2007-034