my function to turn lhe files to root files