source: trunk/documents/UserDoc/UsersGuides/ForApplicationDeveloper/html/Detector/geomEditor.html @ 1211

Last change on this file since 1211 was 1208, checked in by garnier, 15 years ago

CVS update

File size: 6.0 KB
Line 
1<html>
2<head>
3<title>ADG: Geometry</title>
4</head>
5
6<!-- Changed by: Gabriele Cosmo, 18-Apr-2005 -->
7<!-- $Id: geomEditor.html,v 1.2 2006/06/09 14:00:04 gcosmo Exp $ -->
8<!-- $Name:  $ -->
9<body>
10<table WIDTH="100%"><tr>
11<td>
12<a href="../../../../Overview/html/index.html">
13<IMG SRC="../../../../resources/html/IconsGIF/Overview.gif" ALT="Overview"></a>
14<a href="geometry.html">
15<IMG SRC="../../../../resources/html/IconsGIF/Contents.gif" ALT="Contents"></a>
16<a href="geomNav.html">
17<IMG SRC="../../../../resources/html/IconsGIF/Previous.gif" ALT="Previous"></a>
18<a href="geomG3toG4.html">
19<IMG SRC="../../../../resources/html/IconsGIF/Next.gif" ALT="Next"></a>
20</td>
21<td ALIGN="Right">
22<font SIZE="-1" COLOR="#238E23">
23<b>Geant4 User's Guide</b>
24<br>
25<b>For Application Developers</b>
26<br>
27<b>Geometry</b>
28</font>
29</td>
30</tr></table>
31<br><br>
32
33<a name="4.1.9">
34<h2>4.1.9 A Simple Geometry Editor</h2></a>
35
36<p>
37GGE is the Geant4 Graphical Geometry Editor. It is implemented in JAVA and
38is part of the Momo environment. GGE aims to serve physicists who have a
39little knowledge of C++ and the Geant4 toolkit to construct his or her own
40detector geometry in a graphical manner.
41</p>
42<p>
43 GGE provides methods to:
44 <OL>
45  <li>construct  a detector geometry including
46      <tt>G4Element</tt>, <tt>G4Material</tt>, <tt>G4Solids</tt>,
47      <tt>G4LogicalVolume</tt>, <tt>G4PVPlacement</tt>, etc.
48  <li>view the detector geometry using existing visualization system like DAWN
49  <li>keep the detector object in a persistent way
50  <li>produce corresponding C++ codes after the norm of Geant4 toolkit
51  <li>make a Geant4 executable under adequate environment
52 </OL>
53 
54GGE is implemented with Java, using Java Foundation Class, Swing-1.0.2.
55In essence, GGE is made a set of tables which contain all relevant
56parameters to construct a simple detector geometry.<BR>
57The software, installation instructions and notes for GGE and other JAVA-based
58UI tools can be freely downloaded from the
59<a href="http://erpc1.naruto-u.ac.jp/~geant4/">Geant4 GUI and Environments
60web site</a> of Naruto University of Education in Japan.
61</p>
62<p>
63<b>Materials: elements and mixtures</b>
64<p>
65 GGE provides  the  database of elements in a form of the periodic
66 table, which  users can use to construct new materials.
67 GGE provides a pre-constructed database of materials taken from the PDG book.
68 They can be loaded, used, edited and saved as persistent objects.
69<p>
70Users can  also create new materials either from scratch or by combining other
71materials.
72 
73 <ul>
74  <li>creating a material from scratch:
75      <p>
76      <table border=2 cellpadding=8>
77      <tr><td>Use</td> <td>Name</td><td> A</td> <td>Z</td> <td>Density</td>
78          <td>Unit</td> <td>State</td>  <td>Temperature</td><td>Unit </td>
79          <td>Pressure</td> <td>Unit</td>
80      </tr>
81      </table>
82      <p>
83      Only the elements and materials used in the logical volumes are
84      kept in the detector object and are used to generate C++ constructors.
85      <b>Use</b> marks the used materials.
86      <p>
87  <li>Constructor to create a material from a combination of elements,
88      subsequently added via <tt>AddElement</tt>
89      <p>
90      <table border=2 cellpadding=8>
91      <tr><td>Use</td> <td>Name</td><td> Elements</td><td> Density</td>
92          <td> Unit</td><td> State</td>  <td>Temperature</td> <td>Unit</td>
93          <td>Pressure</td> <td>Unit</td>
94      </tr>
95      </table>
96      <p>
97      By clicking the column <b>Elements</b>,
98      a new window is open to select one of two methods:
99      <p>
100      <ul>
101       <li>Add an element, giving fraction by weight
102       <li>Add an element, giving number of atoms.
103      </ul>
104 </ul>
105<p>
106 
107<b>Solids</b>
108<p>
109The most popular CSG solids (<tt>G4Box</tt>, <tt>G4Tubs</tt>, <tt>G4Cons</tt>,
110<tt>G4Trd</tt>) and specific BREPs solids (Pcons, Pgons) are supported at
111present.  All related parameters of such a solid can be specified in a
112parameter widget.
113<p>
114 Users will be able to view each solid using DAWN.
115<p>
116 
117<b>Logical Volume</b>
118<p>
119 GGE can specify the following items:
120<p>
121 <table border=2 cellpadding=8>
122 <tr><td>Name</td><td>Solid</td><td> Material</td><td> VisAttribute</td>
123 </tr>
124 </table>
125<p>
126The construction and assignment of appropriate entities for
127<tt>G4FieldManager</tt> and <tt>G4VSensitiveDetector</tt> are left to the user.
128<p>
129 
130<b>Physical Volume</b>
131<p>
132A single copy of a physical volume can be created.  Also repeated copies can
133be created in several manners. First, a user can translate the logical volume
134linearly.
135<p>
136 <table border=2 cellpadding=8>
137 <tr><td>Name</td><td> LogicalVolume</td><td> MotherVolume</td>
138     <td>Many</td><td> X0, Y0, Z0</td><td> Direction</td>
139     <td>StepSize</td><td> Unit</td><td> CopyNumber</td>
140 </tr>
141 </table>
142<p>
143 Combined translation and rotation are also possible, placing an object
144 repeatedly on a ``cylindrical'' pattern.
145 Simple models of replicas and parametrised volume are also implemented.
146 In the replicas, a volume is slices to create new sub-volumes.
147 In parametrised volumes, several patterns of volumes can be created.
148<P>
149 
150<b>Generation of C++ code: <tt>MyDetectorConstruction.cc</tt></b>
151<p>
152 By simply pushing a button, source code in the form of an include
153 file and a source file are created.
154 They are called <tt>MyDetectorConstruction.cc</tt> and <tt>.hh</tt> files.
155 They reflect all current user modifications in real-time.
156<P>
157 
158<b>Visualization</b>
159<p>
160 Examples of individual solids can be viewed with the help of DAWN.
161 The visualization of the whole geometry is be done after the compilation
162 of the source code <tt>MyDetectorConstruction.cc</tt> with appropriate
163 parts of Geant4.  (In particular only the geometry and visualization,
164 together with the small other parts they depend on, are needed.)
165</p>
166
167<hr><a href="../../../../Authors/html/subjectsToAuthors.html">
168<i>About the authors</a></i> </P>
169
170</body>
171</html>
Note: See TracBrowser for help on using the repository browser.