Hi experts,
I create a root file with many TGraph pictures, and there is an empty picture. When I use TBrowser to look at them , I find if I click the empty one then I can’t click other pictures.
For some conditions, it has no points ,so I draw an empty picture.
My root file is :
user.zgao.34463569._000148.ANALYSIS.root (522.0 KB)
The empty file is “graph_1.81<|#eta|<2.01_150<P_{t}<175;1”
Could you please give some advice to solve this problem?
0 for i in range(12):
1 for j in range(7):
2 graph_names[i][j]= 'graph' + '_' + seven_eta_cut_name[j] + '_' + twelve_pt_cut_name[i]
3
4
5
6
7 print(len(values_point[i][j][0]), " i ",i, "j ",j)
8 if len(values_point[i][j][0]) >0:
9
10
11 graphs[i][j] = ROOT.TGraph(len(values_point[i][j][0]),np.array(values_point[i][j][0]),np.array(values_point[i][j][1]))
12 else:
13 graphs[i][j] = ROOT.TGraph()
14 graphs[i][j].SetTitle(graph_names[i][j])
15 graphs[i][j].SetName(graph_names[i][j])
ROOT Version: 6.26/06