ROOT
v6-20
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
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
tutorials
pyroot
na49geomfile.py
ROOT v6-20 - Reference Guide Generated on Fri Apr 1 2022 00:23:52 (GVA Time) using Doxygen 1.9.4