Hi,
For defining histogram in loop, I am trying following:
for n in b[0]:
print n
h = ROOT.TH1F("h"+n, n , b[1] , b[2] , b[3] )
h.SetLineColor(countBranch+1)
h.SetLineWidth(2)
t.Draw(n+">>"+"h"+n)
h.GetEntries()
if countBranch == 0:
h.Draw()
else:
h.Draw("sames")
countBranch+=1
But, this is showing me only one histogram not all of them, i.e., sames is not working.
Please let me know what I am doing wrong.
with regards,
Ram