The electrical activity of the heart is captured by an electrocardiogram. It is a routine test that is painless and used