Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
na49visible.py
Go to the documentation of this file.
1## \file
2## \ingroup tutorial_geom
3## Set visibility attributes for the NA49 geometry
4## Set Shape attributes
5##
6## \macro_code
7##
8## \author Wim Lavrijsen
9
10import ROOT
11
35
36# Copy shape attributes (colors,etc) in nodes referencing the shapse
37CAVE1 = ROOT.gGeometry.FindObject( 'CAVE1' )
39
40# Set Node attributes
41CAVE1.SetVisibility( 2 ) # node is not drawn but its sons are drawn
42ROOT.gGeometry.FindObject( 'VT1_1' ).SetVisibility( -4 ) # Node is not drawn.
43 # Its immediate sons are drawn
44ROOT.gGeometry.FindObject( 'VT2_1' ).SetVisibility( -4 )
45ROOT.gGeometry.FindObject( 'MTL_1' ).SetVisibility( -4 )
46ROOT.gGeometry.FindObject( 'MTR_1' ).SetVisibility( -4 )
47ROOT.gGeometry.FindObject( 'TOFR1' ).SetVisibility( -4 )
48
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.