Measurement of the b hadron lifetime with the dipole method