ROOT
Version v6.22
master
v6.34
v6.32
v6.30
v6.28
v6.26
v6.24
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
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-22 - Reference Guide Generated on Fri Apr 1 2022 11:53:30 (GVA Time) using Doxygen 1.9.4