ROOT
6.10/09
Reference Guide
tutorials
pyroot
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
9
import
ROOT
10
11
ROOT.gBenchmark.Start(
'geometry'
)
12
na = ROOT.TFile(
'py-na49.root'
,
'RECREATE'
)
13
n49 = ROOT.gROOT.FindObject(
'na49'
)
14
n49.Write()
15
na.Write()
16
na.Close()
17
ROOT.gBenchmark.Show(
'geometry'
)
18