Treatment Planning System for carbon ion therapy: study of the beam line transfer function