Hi, I have to move stat box in histogram generated automatically from data in branch of TTree, but i don’t know how. Doing this, it doesn’t work. (pair_tree is my TTree, instead pairID is the branch)
Hi Couet, doing in this way it doesn’t work, could I do something alse?
pair_tree.Draw(“pairID”,“”,“COL”);
pad5 =root.TPad(“pad1”,“pad1”,0,0,1,1);
pad5.Draw()
pad5.cd()
pad5.Update()
h = pad5.FindObject(“htemp”)
s = h.FindObject(“stats”)
s.SetX1NDC(0.7)
s.SetX2NDC(0.9)
s.SetY1NDC(0.65)
s.SetY2NDC(0.9)
pad5.Modified()
c1.cd();
This is the error:
s = h.FindObject(“stats”)
TypeError: none of the 2 overloaded methods succeeded. Full details:
attempt to access a null-pointer
TObject* TObject::FindObject(const TObject* obj) =>
TypeError: could not convert argument 1