Logo ROOT  
Reference Guide
na49geomfile.py
Go to the documentation of this file.
1## \file
2## \ingroup tutorial_pyroot
3## Before executing this macro, the file makegeometry.C must have been executed
4##
5## \macro_code
6##
7## \author Wim Lavrijsen
8
9import ROOT
10
11ROOT.gBenchmark.Start( 'geometry' )
12na = ROOT.TFile( 'py-na49.root', 'RECREATE' )
13n49 = ROOT.gROOT.FindObject( 'na49' )
14n49.Write()
15na.Write()
16na.Close()
17ROOT.gBenchmark.Show( 'geometry' )
18