ROOT
Version v6.32
master
v6.34
v6.30
v6.28
v6.26
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
►
ROOT
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
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
}
gROOT
#define gROOT
Definition
TROOT.h:406
Form
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
Definition
TString.cxx:2489
gSystem
R__EXTERN TSystem * gSystem
Definition
TSystem.h:566
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
TString
Basic string class.
Definition
TString.h:139
TSystem::UnixPathName
virtual const char * UnixPathName(const char *unixpathname)
Convert from a local pathname to a Unix pathname.
Definition
TSystem.cxx:1063
geometry
Definition
geometry.py:1
tutorials
geom
geometry.C
ROOT v6-32 - Reference Guide Generated on Wed Apr 9 2025 05:33:11 (GVA Time) using Doxygen 1.10.0