Generation and degree of entanglement in a relativistic formulation