Dear all,
I would like to read some tree branches and ‘convert’ them to graphs so I can manipulate it.
Can you help me with this?
For example, this is code:
f1 = TFile("file.root","r")
c1 = TCanvas('c1','The Ntuple canvas',200,10,700,780)
c1.SetGrid()
c1.SetName("name1")
ntuple = gROOT.FindObject('arcBPM_Right')
ntuple.Draw('S1X:ScanLB',"Option==1")
Now, how can I get this plot S1X:ScanLB and add it to TGraph so I can easily manipulate it?
Thanks in advance,
Veljko M.