Measurement of the quantum geometric tensor and of the anomalous Hall drift