Logo ROOT   6.10/09
Reference Guide
geometry.C
Go to the documentation of this file.
1 /// \file
2 /// \ingroup tutorial_geom
3 /// Example of the old geometry package (now obsolete)
4 //
5 /// \macro_image
6 /// \macro_code
7 ///
8 /// \author Rene Brun
9 
10 void geometry() {
11  TString dir = gSystem->UnixPathName(__FILE__);
12  dir.ReplaceAll("geometry.C","");
13  dir.ReplaceAll("/./","/");
14  gROOT->Macro(Form("%s/na49.C",dir.Data()));
15  gROOT->Macro(Form("%s/na49geomfile.C",dir.Data()));
16 }
TString & ReplaceAll(const TString &s1, const TString &s2)
Definition: TString.h:640
#define gROOT
Definition: TROOT.h:375
Basic string class.
Definition: TString.h:129
virtual const char * UnixPathName(const char *unixpathname)
Convert from a Unix pathname to a local pathname.
Definition: TSystem.cxx:1043
R__EXTERN TSystem * gSystem
Definition: TSystem.h:539
char * Form(const char *fmt,...)
const char * Data() const
Definition: TString.h:347