Dirac brackets from magnetic backgrounds
  In symplectic mechanics, the magnetic term describing the interaction between a charged particle and an external magnetic field has to be introduced by hand. On the contrary, in generalised complex geometry, such magnetic terms in the symplectic form arise naturally by means of B-transformations. Here we prove that, regarding classical phase space as a generalised complex manifold, the transformation law for the symplectic form under the action of a weak magnetic field gives rise to Dirac's prescription for Poisson brackets in the presence of constraints. 
J.M. Isidro