void recon_macro()
{
// Opening and referencing recon tree
TFile *treefile = TFile::Open("recon_tree.root");
TH1F *h[401][20];
for (int a = 0; a <= 400; a++) {
for (int f = 0; f <= 19; f++) h[a][f] = (TH1F*)treefile->Get(TString::Format("h%d_at_c%d", f, a));
}
h[30][19]->Draw();
}
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.