ROOT
git-r3/HEAD
Reference Guide
Loading...
Searching...
No Matches
na49geomfile.C
Go to the documentation of this file.
1
/// \file
2
/// \ingroup tutorial_g3d_legacy
3
/// Before executing this macro, the file geometry.C must have been executed
4
///
5
/// \macro_code
6
///
7
/// \author Andrei Gheata
8
9
void
na49geomfile()
10
{
11
gBenchmark
->Start(
"geometry"
);
12
TGeometry
*n49 = (
TGeometry
*)
gROOT
->FindObject(
"na49"
);
13
if
(n49) {
14
TFile
na(
"na49.root"
,
"RECREATE"
);
15
n49->
Write
();
16
na.Write();
17
}
18
gBenchmark
->Show(
"geometry"
);
19
}
gBenchmark
externTBenchmark * gBenchmark
Definition
TBenchmark.h:59
gROOT
#define gROOT
Definition
TROOT.h:417
TFile
A file, usually with extension .root, that stores data and code in the form of serialized objects in ...
Definition
TFile.h:130
TGeometry
TGeometry description.
Definition
TGeometry.h:39
TObject::Write
virtual Int_t Write(const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
Write this object to the current directory.
Definition
TObject.cxx:989
na49geomfile
Definition
na49geomfile.py:1
tutorials
legacy
g3d
na49geomfile.C
ROOTgit-r3/HEAD - Reference Guide Generated on
(GVA Time) using Doxygen 1.16.1