Logo ROOT   6.10/00
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Namespaces
na49visible.py File Reference

Namespaces

 na49visible
 

Detailed Description

Set visibility attributes for the NA49 geometry Set Shape attributes.

1 
2 import ROOT
3 
4 ROOT.YK01.SetVisibility( 0 )
5 ROOT.YK03.SetLineColor( 2 )
6 ROOT.YK04.SetLineColor( 5 )
7 ROOT.SEC1.SetLineColor( 6 )
8 ROOT.SEC2.SetLineColor( 6 )
9 ROOT.SEC3.SetLineColor( 3 )
10 ROOT.SEC4.SetLineColor( 3 )
11 ROOT.TOFR.SetLineColor( 5 )
12 ROOT.COI1.SetLineColor( 4 )
13 ROOT.COI2.SetLineColor( 4 )
14 ROOT.COI3.SetLineColor( 4 )
15 ROOT.COI4.SetLineColor( 4 )
16 ROOT.CS38.SetLineColor( 5 )
17 ROOT.CS28.SetLineColor( 5 )
18 ROOT.CS18.SetLineColor( 5 )
19 ROOT.TF4D.SetLineColor( 3 )
20 ROOT.OGB4.SetLineColor( 3 )
21 ROOT.TF3D.SetLineColor( 3 )
22 ROOT.OGB3.SetLineColor( 3 )
23 ROOT.TF4A.SetLineColor( 3 )
24 ROOT.OGB4.SetLineColor( 3 )
25 ROOT.TF3A.SetLineColor( 3 )
26 ROOT.OGB3.SetLineColor( 3 )
27 
28 # Copy shape attributes (colors,etc) in nodes referencing the shapse
29 CAVE1 = ROOT.gGeometry.FindObject( 'CAVE1' )
30 CAVE1.ImportShapeAttributes( )
31 
32 # Set Node attributes
33 CAVE1.SetVisibility( 2 ) # node is not drawn but its sons are drawn
34 ROOT.gGeometry.FindObject( 'VT1_1' ).SetVisibility( -4 ) # Node is not drawn.
35  # Its immediate sons are drawn
36 ROOT.gGeometry.FindObject( 'VT2_1' ).SetVisibility( -4 )
37 ROOT.gGeometry.FindObject( 'MTL_1' ).SetVisibility( -4 )
38 ROOT.gGeometry.FindObject( 'MTR_1' ).SetVisibility( -4 )
39 ROOT.gGeometry.FindObject( 'TOFR1' ).SetVisibility( -4 )
40 
Author
Wim Lavrijsen

Definition in file na49visible.py.