Measurement of the top quark mass with the template method in the tt¯→lepton+jets channel using ATLAS data