Hi @dgiordan,
here is a review of different methods you can use to read values from a ROOT file.
Another method is what @Wile_E_Coyote suggested: creating an analysis skeleton, fill in your logic and run the resulting program.
Hope this helps!
Enrico