The recent measurement of the W mass by CMS employs many cutting edge data analysis techniques that will become essential in the years to come as the volume of data and Monte Carlo simulations increase through the HL-LHC era. The analysis exploits the CMS NanoAOD data format, together with an optimized analysis pipeline using RDataFrame, Eigen, Boost Histograms, and the python scientific ecosystem. The statistical analysis, a complex multi-dimensional maximum likelihood fit, uses Tensorflow for fast and accurate calculation of the likelihood and its derivatives for robust minimization. In this seminar, we will cover all these aspects, with emphasis on both the computational efficiency, but also the validation and reproducibility of the full analysis chain