The electronics of the CMS drift tubes chambers will need to be replaced for the High Luminosity LHC operation due to the increase in occupancy and trigger rates in the detector, which cannot be sustained by the present system. A new backend system will be in charge of building the trigger primitives of each chamber, aiming at space and time resolutions comparable to the ones that the High Level Trigger can obtain nowadays and improving the resilience to potential aging situations. An algorithm for the trigger primitive generation that aims to run in this new backend system has been developed and its performance has been validated through a software emulation approach. The results show close to perfect reconstruction efficiency, and angular and time resolutions at the
per cent of miliradian and nanosecond.