// ...
h0->Fill(ditau_tau0_pt);
} // end of the "for" loop
TCanvas *can = new TCanvas("can","can",600,600);
// ...
BTW. You need to call MakeClass for the whole TTree, not for a single TBranch.
// ...
h0->Fill(ditau_tau0_pt);
} // end of the "for" loop
TCanvas *can = new TCanvas("can","can",600,600);
// ...
BTW. You need to call MakeClass for the whole TTree, not for a single TBranch.