Left: distribution of invariant-mass difference for ${\rm D^{*+}}$ candidates in the $2.2< \pt< 2.4$ $\mathrm{GeV/c}$ interval. The green solid line shows the total fit function and the gray dotted line the combinatorial background. The contributions of ${\rm D^{*+}}$ mesons originating from charm hadronization and beauty-hadron decays are obtained with the method relying on the definition of different selection criteria, as explained in the text. Right: example of raw-yield distribution as a function of the BDT-based selection for the $2.2< \pt< 2.4$ $\mathrm{GeV/c}$ interval, employed in the procedure adopted for the determination of the fraction of ${\rm D^{*+}}$ originating from beauty-hadron decays.