Making macro using makeClass

Hi,

this topic has been treated already in other posts, e.g. Reading a tree containing vector<TLorentzVector> .
If intervening manually on the generated class is too lengthy for you, you can always resort to pyroot. This trivial example prints the transverse momentum of all “first” electrons in your tree:

import ROOT
f=ROOT.TFile("run8TeV.0.txt.root")
for e in f.redTree:
    print e.electron0_p4In.Pt()

Cheers,
Danilo