  We show the results obtained for the cross sections of the processes $\bar D
D$, $\bar D^* D$, $\bar D^* D^*\to\pi X(3872)$, information which is necessary
to determine the $X(3872)$ abundance in heavy ion collisions. Our formalism is
based on the generation of $X(3872)$ from the interaction of the hadrons $\bar
D^0 D^{*0} - \textrm{c.c}$, $D^- D^{*+} - \textrm{c.c}$ and $D^-_s D^{*+}_s -
\textrm{c.c}$ an the calculation of the $X\bar D^* D^*$ anomalous vertex
considering $X(3872)$ as a molecule of the above hadrons channels.
