The constraining effect of gas and the dark matter halo on the vertical stellar distribution of the Milky WayS. Sarkar and C. J. JogA&A, 617 (2018) A142DOI: https://doi.org/10.1051/0004-6361/201833510