5ROOT.PyConfig.GUIThreadScheduleOnce += [ ROOT.TEveManager.Create ]
7def lineset(nlines = 40, nmarkers = 4):
11 ls = ROOT.TEveStraightLineSet()
13 for i
in range(nlines):
14 ls.AddLine( r.Uniform(-s,s), r.Uniform(-s,s), r.Uniform(-s,s) ,
15 r.Uniform(-s,s), r.Uniform(-s,s), r.Uniform(-s,s))
16 nm = int(nmarkers*r.Rndm())
18 ls.AddMarker( i, r.Rndm() )
22 ROOT.gEve.AddElement(ls)
26if __name__==
'__main__':
27 ROOT.PyGUIThread.finishSchedule()
def lineset(nlines=40, nmarkers=4)