\[tab:ResoBDTInputs\] lists the input variables considered in each channel. As expected, the most discriminating variables are found to be the candidate invariant mass and the $\textit{CvsL}_{\text{max}}$.

\[tab:ResoBDTInputs\]

The remaining background contribution is estimated from a combination of simulated events and data. While the normalisations of QCD, single-top, diboson, and [$\PV\PH(\PH\to \cPqb \cPaqb)$]{}processes are estimated via simulation, the normalisations of the +jets and +jets backgrounds are determined from fits to data in dedicated control regions in order to avoid potential mismodelling of the flavour composition of these samples. Four control regions per channel are designed to constrain the most important background processes: a region dominated by +jets events (TT), a region targeting +jets with at least one jet originating from light-flavour quarks or gluons (LF), a region enriched in +jets events with one jet and one or jet (HF), and a region enriched with [+]{}events (CC). The definitions of the different control regions are based mainly on the inversion of the criteria on the charm tagger discriminators values of the $\textit{CvsL}$-leading jet applied to define the signal regions. To define the LF control region the selection $(\textit{CvsL}<0.4,~\textit{CvsB}>0.2)$ is used while both the HF and TT control regions are defined applying the 