Techniques are described for generating beat templates and utilizing those beat templates to detect a cardiac event, e.g., a tachyarrhythmia. In particular, example methods and devices for acquiring qualified beats for template generation are described. Additionally, techniques are described for selecting subsets of the qualified beats to actually use in generating a beat template.