ROOT
Version v6.34
master
v6.36
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
►
html
►
io
►
main
►
math
►
montecarlo
►
net
►
proof
►
roofit
►
sql
►
tmva
►
tree
▼
tutorials
►
cocoa
►
cont
►
dataframe
▼
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
pythia_display.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
►
fft
►
fit
►
fitsio
►
foam
►
geom
►
gl
►
graphics
►
graphs
►
gui
►
hist
►
histfactory
►
http
►
image
►
io
►
legacy
►
math
►
matrix
►
mc
►
multicore
►
net
►
physics
►
proof
►
pyroot
►
pythia
►
quadp
►
r
►
rcanvas
►
roofit
►
roostats
►
spectrum
►
splot
►
sql
►
tmva
►
tree
►
unfold
►
unuran
►
v7
►
vecops
►
webcanv
►
webgui
►
xml
►
.enableImplicitMTWrapper.py
.rootlogon.py
demos.C
demoshelp.C
hsimple.C
rootlogoff.C
rootlogon.C
►
v6-34-00-patches
►
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
7
def
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
eve
lineset.py
ROOT v6-34 - Reference Guide Generated on Fri Apr 25 2025 05:46:27 (GVA Time) using Doxygen 1.10.0