Measurement of the top quark mass with the template method in the ttbar to lepton+jets channel using ATLAS data