E.E.G. is a diagnostic tool used to measure and record the electrical patterns in the brain.