Logo ROOT  
Reference Guide
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
9void 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}
R__EXTERN TBenchmark * gBenchmark
Definition TBenchmark.h:59
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
#define gROOT
Definition TROOT.h:406
virtual void Start(const char *name)
Starts Benchmark with the specified name.
virtual void Show(const char *name)
Stops Benchmark name and Prints results.
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
Definition TFile.h:131
TGeometry description.
Definition TGeometry.h:39