ROOT
6.30.04
Reference Guide
All
Namespaces
Files
Pages
na49geomfile.C
Go to the documentation of this file.
1
/// \file
2
/// \ingroup tutorial_geom
3
/// Before executing this macro, the file makegeometry.C must have been executed
4
///
5
/// \macro_code
6
///
7
/// \author Andrei Gheata
8
9
void
na49geomfile() {
10
gBenchmark->Start(
"geometry"
);
11
TGeometry *n49 =(TGeometry*)gROOT->FindObject(
"na49"
);
12
if
(n49) {
13
TFile na(
"na49.root"
,
"RECREATE"
);
14
n49->Write();
15
na.Write();
16
}
17
gBenchmark->Show(
"geometry"
);
18
}
tutorials
geom
na49geomfile.C
Generated on Tue May 5 2020 14:03:44 for ROOT by
1.8.5