ROOT
Version master
v6.36
v6.34
v6.32
v6.30
v6.28
v6.26
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
▼
ROOT
ROOT Reference Documentation
Tutorials
►
Functional Parts
►
Namespaces
►
All Classes
▼
Files
▼
File List
►
bindings
►
core
►
documentation
►
geom
►
graf2d
►
graf3d
►
gui
►
hist
►
io
►
main
►
master
►
math
►
montecarlo
►
net
►
proof
►
roofit
►
sql
►
tmva
►
tree
▼
tutorials
►
analysis
►
evegen
►
experimental
►
geom
►
hist
►
http
►
io
►
legacy
►
machine_learning
►
math
►
roofit
▼
visualisation
►
cocoa
▼
eve
alice_esd.C
alice_esd_html_summary.C
alice_esd_split.C
alice_vsd.C
annotation.C
arrow.C
arrow_standalone.C
assembly.C
box.C
boxset.C
boxset_cones.C
calo_detail.C
calorimeters.C
camera_restore.C
compound.C
csgdemo.C
geom_alias.C
geom_alice_its.C
geom_alice_tpc.C
geom_atlas.C
geom_atlas_playback.C
geom_cms.C
geom_cms_playback.C
geom_cms_stereo.C
geom_default.C
geom_lhcb.C
glplot.C
glplot_geom.C
hierarchical_scene.C
histobrowser.C
jetcone.C
lineset.C
►
lineset.py
MultiView.C
overlay_palette.C
pack.C
paramlist.C
pointset.C
projection.C
projection_prescale.C
quadset.C
run_alice_esd.C
run_alice_esd_split.C
selection_sigs.C
show_extract.C
SplitGLView.C
text.C
track.C
triangleset.C
view3ds.C
window_manager.C
►
eve7
►
geom
►
gl
►
graphics
►
graphs
►
gui
►
image
►
webcanv
►
webgui
►
.enableImplicitMTWrapper.py
.rootlogon.py
demos.C
demos.py
demoshelp.C
demoshelp.py
hsimple.C
hsimple.py
rootlogoff.C
rootlogon.C
►
File Members
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
lineset.py
Go to the documentation of this file.
1
## Translated from 'lineset.C'.
2
## Run as: python -i lineset.py
3
4
import
ROOT
5
ROOT.PyConfig.GUIThreadScheduleOnce
+= [
ROOT.TEveManager.Create
]
6
lineset(nlines = 40, nmarkers = 4):
8
r =
ROOT.TRandom
(0)
9
s = 100
10
11
ls =
ROOT.TEveStraightLineSet
()
12
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
())
17
for
m
in
range
(nm):
18
ls.AddMarker
( i,
r.Rndm
() )
19
ls.SetMarkerSize
(1.5)
20
ls.SetMarkerStyle
(4)
21
22
ROOT.gEve.AddElement
(ls)
23
ROOT.gEve.Redraw3D
()
24
return
ls
25
26
if
__name__==
'__main__'
:
27
ROOT.PyGUIThread.finishSchedule
()
28
lineset()
TRangeDynCast
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Definition
TCollection.h:358
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
int
lineset
Definition
lineset.py:1
tutorials
visualisation
eve
lineset.py
ROOT master - Reference Guide Generated on Tue Apr 22 2025 16:24:55 (GVA Time) using Doxygen 1.10.0