The work presented in this thesis addresses a key issue of the CBM experiment at FAIR, which aims to study charm production in heavy ion collisions at energies ranging from 10 to 40 AGeV . For the first time in this kinematical range, open charm mesons will be used as a probe of the nuclear fireball. Despite of their short decay length, which is typically in the order of few 100 µm in the laboratory frame, those mesons will be identified by reconstructing their decay vertex