def inspectCh(ds, chs): t = TTree() t.SetFillColor(0) t.SetFillStyle(0) for d in ds: t.ReadFile(d[1]) cv1 = TCanvas() cv1.Divide(2,4) icv = 1 for ch in chs: cv1.cd(icv) t.Draw('A','ch=={0:d}'.format(ch)) hx = gPad.GetPrimitive('htemp') hx.GetXaxis().SetTitle('U_{Out} [V]') hx.SetName('h{0:d}'.format(ch)) lt.DrawLatexNDC(0.7,0.9,"Ch {0:d}".format(ch)) icv += 1 cv1.cd(0) waitRootCmdX()