Correct opening of the input root file