for (Long64_t jentry=0; jentry<nentries;jentry++) {
// Muons
for (int k=0;k<mu_n;k++){
mu_pt_hist->Fill(mu_pt[k]);
} // End of for-loop for mu_hists
}
}[/code]
ROOT complains that mu_n and mu_pt are not defined in the current scope, but they are inside the TTree that was added to the input TChain. Any ideas how I can get those values?
I have used MakeClass in the previous step of my work for exactly this purpose, I now just feel stupid for mot thinking of it, thanks a lot and sorry again for the stupid question.