ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
na49visible.py
Go to the documentation of this file.
1 # Set visibility attributes for the NA49 geometry
2 # Set Shape attributes
3 
4 import ROOT
5 
6 ROOT.YK01.SetVisibility( 0 )
7 ROOT.YK03.SetLineColor( 2 )
8 ROOT.YK04.SetLineColor( 5 )
9 ROOT.SEC1.SetLineColor( 6 )
10 ROOT.SEC2.SetLineColor( 6 )
11 ROOT.SEC3.SetLineColor( 3 )
12 ROOT.SEC4.SetLineColor( 3 )
13 ROOT.TOFR.SetLineColor( 5 )
14 ROOT.COI1.SetLineColor( 4 )
15 ROOT.COI2.SetLineColor( 4 )
16 ROOT.COI3.SetLineColor( 4 )
17 ROOT.COI4.SetLineColor( 4 )
18 ROOT.CS38.SetLineColor( 5 )
19 ROOT.CS28.SetLineColor( 5 )
20 ROOT.CS18.SetLineColor( 5 )
21 ROOT.TF4D.SetLineColor( 3 )
22 ROOT.OGB4.SetLineColor( 3 )
23 ROOT.TF3D.SetLineColor( 3 )
24 ROOT.OGB3.SetLineColor( 3 )
25 ROOT.TF4A.SetLineColor( 3 )
26 ROOT.OGB4.SetLineColor( 3 )
27 ROOT.TF3A.SetLineColor( 3 )
28 ROOT.OGB3.SetLineColor( 3 )
29 
30 # Copy shape attributes (colors,etc) in nodes referencing the shapse
31 CAVE1 = ROOT.gGeometry.FindObject( 'CAVE1' )
32 CAVE1.ImportShapeAttributes( )
33 
34 # Set Node attributes
35 CAVE1.SetVisibility( 2 ) # node is not drawn but its sons are drawn
36 ROOT.gGeometry.FindObject( 'VT1_1' ).SetVisibility( -4 ) # Node is not drawn.
37  # Its immediate sons are drawn
38 ROOT.gGeometry.FindObject( 'VT2_1' ).SetVisibility( -4 )
39 ROOT.gGeometry.FindObject( 'MTL_1' ).SetVisibility( -4 )
40 ROOT.gGeometry.FindObject( 'MTR_1' ).SetVisibility( -4 )
41 ROOT.gGeometry.FindObject( 'TOFR1' ).SetVisibility( -4 )
42