1G2ROOT(1)                   General Commands Manual                  G2ROOT(1)
2
3
4

NAME

6       g2root - convert GEANT geometry files to ROOT files
7

SYNOPSIS

9       g2rootd [-f map_name] geant_name macro_name
10

DESCRIPTION

12       You  can convert a GEANT (see http://geant.cern.ch/ fore more on GEANT)
13       geometry to ROOT geometry with the following steps
14
15       1      Run the interactive version of GEANT and produce a Zebra RZ file
16              detector.geom, by typing the command:
17
18              Geant > rz/file 21 detector.geom on
19
20
21       2      Run  the g2root program to convert the Zebra RZ file into a ROOT
22              macro detector.C:
23
24              g2root detector.geom detector.C
25
26
27       3      Run the following ROOT session;
28
29              root [1] .x detector.C
30              root [2] detector.Draw()
31              root [3] c1.x3d()   // (this invokes the 3-d Root viewer)
32              root [4] TFile f("detector.root","NEW") //open a new root file
33              root [5] detector.Write() //Write the geometry structure
34              root [6] f.Write()
35
36       Note that the TNode structure currently in ROOT was not designed  as  a
37       replacement  for  a  true geometry package. The idea was mainly to draw
38       simple geometries in event display programs. We are currently  investi‐
39       gating  several  alternatives  for  a true & efficient geometry package
40       supporting;
41
42       -      a disk data base with storage of multiple geometry versions
43
44       -      an interactive editor and viewer
45
46       -      with 3-d views
47
48       -      but also 2-d cut views
49
50       -      with interfaces to existing or  future  MC  such  as  GEANT3  or
51              GEANT4
52
53       A        second        program        called        gh2root        (see
54       http://root.cern.ch/root/gh2root.html) generates automatically C++ code
55       corresponding to the GEANT3 Zebra structures JSET, JVERTX, JKINE, JHITS
56       and JDIGI.
57

SEE ALSO

59              root(1), h2root(1),
60       and
61              The ROOT Users Guide
62       available from the main ROOT website:
63              http://root.cern.ch
64

ORIGINAL AUTHORS

66       The ROOT team (see web page above):
67              Rene Brun and Fons Rademakers
68
70       This library is free software; you can redistribute it and/or modify it
71       under  the  terms of the GNU Lesser General Public License as published
72       by the Free Software Foundation; either version 2.1 of the License,  or
73       (at your option) any later version.
74
75       This  library  is  distributed  in the hope that it will be useful, but
76       WITHOUT ANY  WARRANTY;  without  even  the  implied  warranty  of  MER‐
77       CHANTABILITY  or  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
78       General Public License for more details.
79
80       You should have received a  copy  of  the  GNU  Lesser  General  Public
81       License  along  with  this  library; if not, write to the Free Software
82       Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,  MA   02110-1301
83       USA
84

AUTHOR

86       This   manual   page   was   written   by  Christian  Holm  Christensen
87       <cholm@nbi.dk>, for the Debian GNU/Linux system (but  may  be  used  by
88       others).
89
90
91
92ROOT                               Version 3                         G2ROOT(1)
Impressum