I am with ADmad on this, using an array and either absolute paths or relative paths to ROOT makes most sense.