  Heavy-flavour quarks are predominantly produced in hard scatterings on a
short time-scale and traverse the medium interacting with its constituents,
thus they are one of the effective probes of the transport properties of the
medium formed in relativistic heavy ion collisions. On the other hand, the
thermal production of heavy-flavour quarks in quark-gluon plasma (QGP) is
itself of interest. In this report, the production and elliptic flow of the
prompt charmed mesons $D^0$, $D^+$, $D^{*+}$ and $J/\psi$ in PbPb collisions at
the center-of-mass energy 2.76 TeV per nucleon pair are described in the
framework of two-component HYDJET++ model. The model combines thermal and pQCD
production mechanisms. The spectra and elliptic flow of charmed mesons are
presented, the results are compared with LHC data.
