forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
g2root.1
151 lines (151 loc) · 3.35 KB
/
g2root.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
.\"
.\" $Id: g2root.1,v 1.1 2001/08/15 13:30:48 rdm Exp $
.\"
.TH G2ROOT 1 "Version 3" "ROOT"
.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection
.\" other parms are allowed: see man(7), man(1)
.SH NAME
g2root \- convert GEANT geomtry files to ROOT files
.SH SYNOPSIS
.B g2rootd
.I [-f map_name] geant_name macro_name
.SH "DESCRIPTION"
You can convert a
.B GEANT
(see
.I http://wwwinfo.cern.ch/asd/geant/index.html
fore more on
.BR GEANT )
geometry to
.B ROOT
geometry with the following steps
.TP
1
Run the interactive version of
.B GEANT
and produce a Zebra RZ file
.IR detector.geom ,
by typing the command:
.sp 1
.RS
Geant > rz/file 21 \fIdetector.geom\fR on
.RE
.sp 1
.TP
2
Run the
.B g2root
program to convert the Zebra RZ file into a
.B ROOT
macro
.I detector.C:
.sp 1
.RS
g2root \fIdetector.geom\fR \fIdetector.C\fR
.RE
.sp 1
.TP
3
Run the following
.B ROOT
session;
.sp 1
.RS
.nf
root [1] .x detector.C
root [2] detector.Draw()
root [3] c1.x3d() // (this invokes the 3-d Root viewver)
root [4] TFile f("detector.root","NEW") //open a new root file
root [5] detector.Write() //Write the geometry structure
root [6] f.Write()
.fi
.RE
.sp 1
Note that the
.I TNode
structure currently in
.B ROOT
was not designed as a replacement for a true geometry package. The
idea was mainly to draw simple geometries in event display
programs. We are currently investigating several alternatives for a
true & efficient geometry package supporting;
.TP
-
a disk data base with storage of multiple geometry versions
.TP
-
an interactive editor and viewer
.TP
-
with 3-d views
.TP
-
but also 2-d cut views
.TP
-
with interfaces to existing or future MC such as
.B GEANT3
or
.B GEANT4
.PP
A second program called
.B gh2root
(see
.IR http://root.cern.ch/root/gh2root.html )
generates automatically C++ code corresponding to the
.B GEANT3 Zebra
structures
.IR JSET ,
.IR JVERTX ,
.IR JKINE ,
.I JHITS
and
.I JDIGI.
.SH "SEE ALSO"
.RS
.IR root(1) ,
.IR h2root(1) ,
.RE
and
.RS
.I The ROOT Users Guide
.RE
available from the main
.B ROOT
website:
.RS
.I http://root.cern.ch
.RE
.SH "ORIGINAL AUTHORS"
The ROOT team (see web page above):
.RS
\fBRene Brun\fR and \fBFons Rademakers\fR
.RE
.SH "COPYRIGHT"
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of the
License, or (at your option) any later version.
.P
This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
.P
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
.SH AUTHOR
This manual page was written by Christian Holm Christensen
<cholm@nbi.dk>, for the Debian GNU/Linux system (but may be used by
others).
.\"
.\" $Log: g2root.1,v $
.\" Revision 1.1 2001/08/15 13:30:48 rdm
.\" move man files to new subdir man1. This makes it possible to add
.\" $ROOTSYS/man to MANPATH and have "man root" work.
.\"
.\" Revision 1.1 2000/12/08 17:41:00 rdm
.\" man pages of all ROOT executables provided by Christian Holm.
.\"
.\"