Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
na49geomfile.C File Reference

Detailed Description

Before executing this macro, the file geometry.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");
}
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:414
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
Author
Andrei Gheata

Definition in file na49geomfile.C.