Raw yield as a function of BDT selections and extracted contributions from prompt and non-prompt $\mathrm{D}^{*+}$ mesons with $15<p_\mathrm{T}<30~\mathrm{GeV}/c$