Logo ROOT  
Reference Guide
na49geomfile.C File Reference

Detailed Description

Before executing this macro, the file makegeometry.C must have been executed

void na49geomfile() {
gBenchmark->Start("geometry");
TGeometry *n49 =(TGeometry*)gROOT->FindObject("na49");
if (n49) {
TFile na("na49.root","RECREATE");
n49->Write();
na.Write();
}
gBenchmark->Show("geometry");
}
Author
Andrei Gheata

Definition in file na49geomfile.C.

TBenchmark::Start
virtual void Start(const char *name)
Starts Benchmark with the specified name.
Definition: TBenchmark.cxx:172
TGeometry
Definition: TGeometry.h:39
gBenchmark
R__EXTERN TBenchmark * gBenchmark
Definition: TBenchmark.h:59
na49geomfile
Definition: na49geomfile.py:1
TFile
Definition: TFile.h:54
TObject::Write
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
Write this object to the current directory.
Definition: TObject.cxx:795
TBenchmark::Show
virtual void Show(const char *name)
Stops Benchmark name and Prints results.
Definition: TBenchmark.cxx:155
gROOT
#define gROOT
Definition: TROOT.h:406