If the atrial arrhythmia is not detected, the detected tachycardia or fibrillation is classified as VT or VF. If the atrial arrhythmia is detected, further analysis, such as morphological analysis of the ventricular electrogram, is performed to determine whether to classify the detected tachycardia or fibrillation as tachycardia or fibrillation having a ventricular origin or both supraventricular