Context. Solar wind charge-changing reactions are of paramount importance to the physico-chemistry of the atmosphere of a comet. The ESA/Rosetta mission to comet 67P/Churyumov-Gerasimenko (67P) provides a unique opportunity to study charge-changing processes in situ.Aims. To understand the role of these reactions in the evolution of the solar wind plasma and interpret the complex in situ measurements made by Rosetta, numerical or analytical models are necessary.Methods. We used an extended analytical formalism describing solar wind charge-changing processes at comets along solar wind streamlines. The model is driven by solar wind ion measurements from the Rosetta Plasma Consortium-Ion Composition Analyser (RPC-ICA) and neutral density obser...