Undefined reference to `vtable for TLorentzVector'

Maybe you are not linking your shared libraries / executable against ROOT libraries (the same problem as here, which also needed the “-lPhysics).