Study of laser produced plasma in a longitudinal magnetic field