Output the templates to a separate ROOT file