Reading variables from 2 trees

hi everybody

      i want to read two different variables from two different trees and then take thier difference and histogram it!!Howz that possible
is it possible to do this way:
      for (Int_t iev=0;iev < nev ;iev++){

  and then get the necessary thing..........
             THIS WAY IT DOESNT WORK!!!!

thanks in ADVANCE!!!

At the very least, you’re using the wrong function call: try GetEntry, not GetEntries. It is also possible that you have other major problems, since you don’t actually provide a minimally complete code listing. But try using the right function first.

I think it should work if you properly use SetBranchAddress to two different sets of variables for two trees.