ROOT 5 to 6 scripting issue

This I don’t believe. Your “myEne” and “myBaseL” are left uninitialized.