source: trunk/documents/UserDoc/UsersGuides/ForApplicationDeveloper/html/Examples/NoviceCodes.html @ 1231

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

CVS update

File size: 39.2 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2<HTML>
3<HEAD>
4<META NAME="GENERATOR" CONTENT="Mozilla/3.0Gold (X11; I; OSF1 V4.0 alpha) [Netscape]">
5</HEAD>
6<BODY>
7<!-- Changed by: Katsuya Amako,  4-Aug-1998 -->
8<!-- Changed by: Katsuya Amako,  9-Jul-1998 -->
9<!-- Proof read by: Joe Chuma,   5-Jul-1999 -->
10
11<TABLE WIDTH="100%" >
12<TR>
13<TD>
14</A>
15<A HREF="index.html">
16<IMG SRC="../../../../resources/html/IconsGIF/Contents.gif" ALT="Contents" HEIGHT=16 WIDTH=59></A>
17<A>
18<IMG SRC="../../../../resources/html/IconsGIF/PreviousGR.gif" ALT="Previous" HEIGHT=16 WIDTH=59></A>
19<A HREF="ExtendedCodes.html">
20<IMG SRC="../../../../resources/html/IconsGIF/Next.gif" ALT="Next" HEIGHT=16 WIDTH=59>
21</TD>
22
23<TD ALIGN="Right"><FONT COLOR="#238E23"><FONT SIZE=-1>
24<B>Geant4 User's Guide</B> <BR>
25<B>For Application Developers</B> <BR>
26<B>Examples</B> </FONT></FONT> </TD>
27</TR>
28</TABLE>
29<P><BR>
30
31<CENTER><FONT COLOR="#238E23"><FONT SIZE=+3>
32<b>9.1 Novice Examples</b><BR>
33</FONT></FONT></CENTER>
34<BR>
35
36<HR ALIGN="Center" SIZE="7%">
37
38 The Geant4 toolkit includes several fully coded examples which demonstrate
39 the implementation of the user classes required to build a customized
40 simulation.  Seven "novice" examples are provided ranging from the simulation
41 of a non-interacting particle and a trivial detector, to the simulation of
42 electromagnetic and hadronic physics processes in a complex detector.  Each
43 example may be used as a base from which more detailed applications can be
44 developed.  A set of "extended" examples implement simulations of actual
45 high energy physics detectors and require some libraries in addition to
46 those of Geant4.  The "advanced" examples cover cases useful to the
47 developement of the Geant4 toolkit itself.
48<p>
49 The examples can be compiled and run without modification.  Most of them
50 can be run both in interactive and batch mode using the input macro files
51 (<tt>*.in</tt>) and reference output files (<tt>*.out</tt>) provided.
52 These examples are run routinely as part of the validation, or testing,
53 of official releases of the Geant4 toolkit.
54
55<a name="9.1.1">
56<h2>9.1.1 Novice Example Summary</h2></a>
57
58 Descriptions of the 7 novice examples are provided here along with links
59 to the code.
60<p>
61 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/README"><tt>ExampleN01</tt></a>
62  <a href="#9.1.2">(Description below)</a>
63 <ul>
64  <li>Mandatory user classes
65  <li>Demonstrates how Geant4 kernel works
66 </ul>
67 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/README"><tt>ExampleN02</tt></a>
68  <a href="#9.1.3">(Description below)</a>
69 <ul>
70  <li>Simplified tracker geometry with uniform magnetic field
71  <li>Electromagnetic processes
72 </ul>
73 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/README"><tt>ExampleN03</tt></a>
74  <a href="#9.1.4">(Description below)</a>
75 <ul>
76  <li>Simplified calorimeter geometry
77  <li>Electromagnetic processes
78  <li>Various materials
79 </ul>
80 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/README"><tt>ExampleN04</tt></a>
81  <a href="#9.1.5">(Description below)</a>
82 <ul>
83  <li>Simplified collider detector with a readout geometry
84  <li>Full ``ordinary'' processes
85  <li>PYTHIA primary events
86  <li>Event filtering by stack
87 </ul>
88 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/README"><tt>ExampleN05</tt></a>
89  <a href="#9.1.6">(Description below)</a>
90 <ul>
91  <li>Simplified BaBar calorimeter
92  <li>EM shower parametrisation
93 </ul>
94 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/README"><tt>ExampleN06</tt></a>
95  <a href="#9.1.7">(Description below)</a>
96 <ul>
97  <li>Optical photon processes
98 </ul>
99 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/README"><tt>ExampleN07</tt></a>
100  <a href="#9.1.8">(Description below)</a>
101 <ul>
102  <li>Geometrical Regions for production thresholds
103  <li>Dynamic geometry setups between runs
104  <li>Primitive scorer and filter
105  <li>Derived run class and run action
106 </ul>
107<p>
108
109
110 Tables 9.1.1, 9.1.2 and 9.1.3 display the ``item charts'' for the examples currently prepared
111 in the novice level.
112<p>
113<center><table cellpadding=10 border=2>
114<TR>
115 <TD>&nbsp;</TD>
116 <TD><tt>ExampleN01</TD>
117 <TD><tt>ExampleN02</TD>
118 <TD><tt>ExampleN03</TD>
119<TR VALIGN="center">
120 <TD>comments</TD>
121 <TD>minimal set for geantino transportation</TD>
122 <TD>fixed target tracker geometry</TD>
123 <TD>EM shower in calorimeter</TD>
124<TR VALIGN="center">
125 <TD rowspan=2>Run</TD>
126 <TD rowspan=2><tt>main()</tt> for hard coded batch</TD>
127 <TD rowspan=2><tt>main()</tt> for interactive mode</TD>
128 <TD><tt>main()</tt> for interactive mode</TD>
129<TR VALIGN="center">
130 <TD>SetCut and Process On/Off</TD>
131<TR VALIGN="center">
132 <TD rowspan=2>Event</TD>
133 <TD rowspan=2>event generator selection (particleGun)</TD>
134 <TD rowspan=2>event generator selection (particleGun)</TD>
135 <TD>event generator selection (particleGun)</TD>
136<TR VALIGN="center">
137 <TD>``end of event'' simple analysis in <i>UserEventAction</i></TD>
138<TR VALIGN="center">
139 <TD>Tracking</TD>
140 <TD>hard coded verbose level setting</TD>
141 <TD>selecting secondaries</TD>
142 <TD>select trajectories</TD>
143<TR VALIGN="center">
144 <TD rowspan=2>Geometry</TD>
145 <TD rowspan=2>geometry definition (CSG)</TD>
146 <TD>geometry definition (includes Parametrised volume)</TD>
147 <TD>geometry definition (includes replica)</TD>
148<TR VALIGN="center">
149 <TD>uniform magnetic field</TD>
150 <TD>uniform magnetic field</TD>
151<TR VALIGN="center">
152 <TD>Hits/Digi</TD>
153 <TD ALIGN="center">-</TD>
154 <TD>tracker type hits</TD>
155 <TD>calorimeter-type hits</TD>
156<TR VALIGN="center">
157 <TD rowspan=2>PIIM</TD>
158 <TD>minimal particle set</TD>
159 <TD>EM particles set</TD>
160 <TD>EM particles set</TD>
161<TR VALIGN="center">
162 <TD>single element material</FONT></TD>
163 <TD>mixtures and compound elements</FONT></TD>
164 <TD>mixtures and compound elements</FONT></TD>
165<TR VALIGN="center">
166 <TD>Physics</TD>
167 <TD>transportation</TD>
168 <TD>EM physics </TD>
169 <TD>EM physics </TD>
170<TR VALIGN="center">
171 <TD rowspan=2>Vis</TD>
172 <TD ALIGN="center" rowspan=2>-</TD>
173 <TD>detector &amp; trajectory drawing</TD>
174 <TD rowspan=2>detector &amp; trajectory drawing</TD>
175<TR VALIGN="center">
176 <TD>tracker type hits drawing</FONT></TD>
177<TR VALIGN="center">
178 <TD>(G)UI</TD>
179 <TD ALIGN="center">-</TD>
180 <TD>GUI selection</TD>
181 <TD>GUI selection</TD>
182<TR VALIGN="center">
183 <TD>Global</TD>
184 <TD ALIGN="center">-</TD>
185 <TD ALIGN="center">-</TD>
186 <TD ALIGN="center">-</TD>
187<tr>
188<td align=center colspan=4>
189 Table 9.1.1<BR>
190 The ``item chart'' for novice level examples <tt>N01</tt>, <tt>N02</tt> and <tt>N03</tt>.
191</td>
192</tr>
193</Table></center>
194<p>
195
196<center><Table border=2 cellpadding=10>
197<TR>
198<TD>&nbsp;</TD>
199 <TD><tt>ExampleN04</TD>
200 <TD><tt>ExampleN05</TD>
201 <TD><tt>ExampleN06</TD>
202
203<TR VALIGN="center">
204 <TD>comments</TD>
205 <TD>simplified collider geometry</TD>
206 <TD>parametrised shower example</TD>
207 <TD>Optical photon example</TD>
208
209<TR VALIGN="center">
210 <TD>Run</TD>
211 <TD><tt>main()</tt> for interactive mode</TD>
212 <TD><tt>main()</tt> for interactive mode</TD>
213 <TD><tt>main()</tt> for interactive mode</TD>
214
215<TR VALIGN="center">
216 <TD rowspan=2>Event</TD>
217 <TD>event generator selection (HEPEvtInterface)</TD>
218 <TD rowspan=2>event generator selection (HEPEvtInterface)</TD>
219 <TD rowspan=2>event generator selection (particleGun)</TD>
220<TR VALIGN="center">
221 <TD>Stack control</TD>
222
223<TR VALIGN="center">
224 <TD rowspan=2>Tracking</TD>
225 <TD>select trajectories</TD>
226 <TD align="center" rowspan=2>-</TD>
227 <TD align="center" rowspan=2>-</TD>
228<TR VALIGN="center">
229 <TD>selecting secondaries</TD>
230
231<TR VALIGN="center">
232 <TD rowspan=2>Geometry</TD>
233 <TD>geometry definition (includes Param/Replica)</TD>
234 <TD rowspan=2>Ghost volume for shower parametrisation</TD>
235 <TD rowspan=2>geometry definition (BREP with rotation)</TD>
236<TR VALIGN="center">
237 <TD>non-uniform magnetic field</TD>
238
239<TR VALIGN="center">
240 <TD rowspan=2>Hits/Digi</TD>
241 <TD>Tracker/calorimeter/counter types</TD>
242 <TD rowspan=2>Sensitive detector for shower parametrisation</TD>
243 <TD ALIGN="center" rowspan=2>-</TD>
244<TR VALIGN="center">
245 <TD>ReadOut geometry</TD>
246
247<TR VALIGN="center">
248 <TD rowspan=2>PIIM</TD>
249 <TD>Full particle set</TD>
250 <TD>EM set</TD>
251 <TD>EM set</TD>
252<TR VALIGN="center">
253 <TD>mixtures and compound elements</FONT></TD>
254 <TD>mixtures and compound elements</FONT></TD>
255 <TD>mixtures and compound elements</FONT></TD>
256
257<TR VALIGN="center">
258 <TD>Physics</TD>
259 <TD>Full physics processes</TD>
260 <TD>Parametrized shower</TD>
261 <TD>Optical photon processes</TD>
262
263<TR VALIGN="center">
264 <TD rowspan=2>Vis</TD>
265 <TD>detector &amp; hit drawing</TD>
266 <TD>detector &amp; hit drawing</TD>
267 <TD ALIGN="center">-</TD>
268<TR VALIGN="center">
269 <TD>calorimeter type hits drawing</FONT></TD>
270 <TD ALIGN="center">-</TD>
271 <TD ALIGN="center">-</TD>
272
273<TR VALIGN="center">
274 <TD>(G)UI</TD>
275 <TD>define user commands</TD>
276 <TD>define user commands</TD>
277 <TD>define user commands</TD>
278
279<TR VALIGN="center">
280 <TD>Global</TD>
281 <TD ALIGN="center">-</TD>
282 <TD ALIGN="center">-</TD>
283 <TD>random number engine</TD>
284<tr>
285<td align=center colspan=5>
286 Table 9.1.2<BR>
287 The ``item chart'' for novice level examples <tt>N04</tt>, <tt>N05</tt>, and <tt>N06</tt>.
288</td>
289</tr>
290</Table></center>
291<p>
292
293
294<center><Table border=2 cellpadding=10>
295<TR>
296<TD>&nbsp;</TD>
297 <TD><tt>ExampleN07</TD>
298</TR>
299<TR VALIGN="center">
300 <TD>comments</TD>
301 <TD>Cuts per region</TD>
302</TR>
303<TR VALIGN="center">
304 <TD rowspan=2>Run</TD>
305 <TD><tt>main()</tt> for interactive mode</TD>
306</TR>
307<TR VALIGN="center">
308 <TD>Customized run class</TD>
309</TR>
310<TR VALIGN="center">
311 <TD>Event</TD>
312 <TD>event generator selection (particleGun)</TD>
313</TR>
314<TR VALIGN="center">
315 <TD>Tracking</TD>
316 <TD align="center">-</TD>
317
318<TR VALIGN="center">
319 <TD rowspan=2>Geometry</TD>
320 <TD>geometry definition (includes Replica)</TD>
321<TR VALIGN="center">
322 <TD>Region</TD>
323
324<TR VALIGN="center">
325 <TD rowspan=2>Hits/Digi</TD>
326 <TD>Primitive scorer</TD>
327<TR VALIGN="center">
328 <TD>Filter</TD>
329
330<TR VALIGN="center">
331 <TD rowspan=2>PIIM</TD>
332 <TD>EM set</TD>
333<TR VALIGN="center">
334 <TD>mixtures and compound elements</FONT></TD>
335
336<TR VALIGN="center">
337 <TD>Physics</TD>
338 <TD>EM processes</TD>
339
340<TR VALIGN="center">
341 <TD>Vis</TD>
342 <TD>detector &amp; trajectory drawing</TD>
343
344<TR VALIGN="center">
345 <TD>(G)UI</TD>
346 <TD>define user commands</TD>
347
348<TR VALIGN="center">
349 <TD>Global</TD>
350 <TD ALIGN="center">-</TD>
351<tr>
352<td align=center colspan=5>
353 Table 9.1.3<BR>
354 The ``item chart'' for novice level example <tt>N07</tt>.
355</td>
356</tr>
357</Table></center>
358<p>
359
360<hr>
361<a name="9.1.2">
362<h2>9.1.2 Example N01</h2>
363
364 <dl>
365  <dt>Basic concepts
366  <dd>minimal set for geantino transportation
367 </dl>
368
369<h4>Classes</h4>
370
371 <tt>main()</tt> <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/exampleN01.cc">(source file)</a>
372
373 <ul>
374  <li>hard coded batch
375  <li>construction and deletion of <i>G4RunManager</i>
376  <li>hard coded verbose level setting to <i>G4RunManager</i>,
377      <i>G4EventManager</i> and <i>G4TrackingManager</i>
378  <li>construction and set of mandatory user classes
379  <li>hard coded <tt>beamOn()</tt>
380  <li>Hard coded UI command application
381 </ul>
382
383<h4>ExN01DetectorConstruction</h4>
384
385 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/include/ExN01DetectorConstruction.hh">(header file)</a>
386 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/src/ExN01DetectorConstruction.cc">(source file)</a>
387
388 <ul>
389  <li>derived from G4VUserDetectorConstruction
390  <li>definitions of single element materials
391  <li>CSG solids
392  <li><i>G4PVPlacement</i> without rotation
393 </ul>
394
395<h4>ExN01PhysicsList</h4>
396
397 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/include/ExN01PhysicsList.hh">(header files)</a>
398 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/src/ExN01PhysicsList.cc">(source file)</a>
399
400 <ul>
401  <li>derived from <i>G4VUserPhysicsList</i>
402  <li>definition of geantino
403  <li>assignment of transportation process
404 </ul>
405
406<h4>ExN01PrimaryGeneratorAction</h4>
407
408 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/include/ExN01PrimaryGeneratorAction.hh">(header file)</a>
409 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/src/ExN01PrimaryGeneratorAction.cc">(source file)</a>
410
411 <ul>
412  <li>derived from <i>G4VPrimaryGeneratorAction</i>
413  <li>construction of <i>G4ParticleGun</i>
414  <li>primary event generation via particle gun
415 </ul>
416<p>
417
418<hr>
419<a name="9.1.3">
420<h2>9.1.3 Example N02</h2>
421
422 <DL>
423  <DT>Basic concepts</DT>
424  <DD>Detector: fixed target type</DD>
425  <DD>Processes: EM</DD>
426  <DD>Hits: tracker type hits</DD>
427 </DL>
428
429<H4>Classes</H4>
430
431 <tt>main()</tt> <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/exampleN02.cc">(source file)</a>
432
433 <UL>
434  <LI><tt>main()</tt> for interactive mode (and batch mode via macro file)</LI>
435  <LI>construction and deletion of (G)UI session and <i>VisManager</i> </LI>
436  <LI>random number engine</LI>
437  <LI>construction and deletion of <i>G4RunManager</i> </LI>
438  <LI>construction and set of mandatory user classes</LI>
439 </UL>
440
441<H4>ExN02DetectorConstruction</H4>
442
443 <a href="http://geant4.web.cern.ch/geant4/geant4_public//source/geant4/examples/novice/N02/include/ExN02DetectorConstruction.hh">(header file)</a>
444 <a href="http://geant4.web.cern.ch/geant4/geant4_public//source/geant4/examples/novice/N02/src/ExN02DetectorConstruction.cc">(source file)</a>
445
446 <UL>
447  <LI>derived from <i>G4VUserDetectorConstruction</i> </LI>
448  <LI>definitions of single-element, mixture and compound materials</LI>
449  <LI>CSG solids</LI>
450  <LI>Uniform magnetic field: construction of <i>ExN02MagneticField</i> </LI>
451  <LI>Physical Volumes</LI>
452  <UL>
453   <LI><i>G4Placement</i> volumes with &amp; without rotation.</LI>
454   <LI><i>G4PVParameterised</i> volumes without rotation</LI>
455  </UL>
456 </UL>
457
458<H4>ExN02MagneticField</H4>
459
460 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/include/ExN02MagneticField.hh">(header file)</a>
461 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/src/ExN02MagneticField.cc">(source file)</a>
462
463 <UL>
464  <LI>derived from <i>G4MagneticField</i> </LI>
465  <LI>Uniform field. <i>ExN02MagneticField</i> </LI>
466 </UL>
467
468<H4>ExN02PhysicsList</H4>
469
470 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/include/ExN02PhysicsList.hh">(header file)</a>
471 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/src/ExN02PhysicsList.cc">(source file)</a>
472
473 <UL>
474  <LI>derived from <i>G4VUserPhysicsList</i> </LI>
475  <LI>definition of geantinos, electrons, positrons, gammas</LI>
476  <LI>utilisation of transportation and 'standard' EM-processes</LI>
477  <LI>Interactivity: chooses processes interactively (=> messenger class)</LI>
478 </UL>
479
480<H4>ExN02PrimaryGeneratorAction</H4>
481
482 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/include/ExN02PrimaryGeneratorAction.hh">(header file)</a>
483 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/src/ExN02PrimaryGeneratorAction.cc">(source file)</a>
484
485 <UL>
486  <LI>derived from <i>G4VPrimaryGeneratorAction</i> </LI>
487  <LI>construction of <i>G4ParticleGun</i> </LI>
488  <LI>primary event generation via particle gun</LI>
489 </UL>
490
491<H4>ExN02RunAction</H4>
492
493 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/include/ExN02RunAction.hh">(header file)</a>
494 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/src/ExN02RunAction.cc">(source file)</a>
495
496 <UL>
497  <LI>derived from <i>G4VUserRunAction</i> </LI>
498  <LI>draw detector</LI>
499 </UL>
500
501<H4>ExN02EventAction</H4>
502
503 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/include/ExN02EventAction.hh">(header file)</a>
504 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/src/ExN02EventAction.cc">(source file)</a>
505
506 <UL>
507  <LI>derived from <i>G4VUserEventAction</i> </LI>
508  <LI>print time information</LI>
509 </UL>
510
511<H4>ExN02TrackerSD</H4>
512
513 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/include/ExN02TrackerSD.hh">(header file)</a>
514 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/src/ExN02TrackerSD.cc">(source file)</a>
515
516 <UL>
517  <LI>derived from <i>G4VSensitiveDetector</i> </LI>
518  <LI>tracker-type hit generation</LI>
519 </UL>
520
521<H4>ExN02TrackerHit</H4>
522 
523 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/include/ExN02TrackerHit.hh">(header file)</a>
524 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/src/ExN02TrackerHit.cc">(source file)</a>
525
526 <UL>
527  <LI>derived from <i>G4VHit</i> </LI>
528  <LI>draw hit point</LI>
529 </UL>
530
531
532<hr>
533<a name="9.1.4">
534<h2>9.1.4 Example N03</h2>
535
536 <DL>
537  <DT>Basic concepts </DT>
538  <DD>Visualize Em processes.</DD>
539  <DD>Interactivity: build messenger classes. </DD>
540  <DD>Gun: shoot particle randomly.</DD>
541  <DD>Tracking: collect energy deposition, total track length</DD>
542 </DL>
543
544<H4>Classes</H4>
545
546 <tt>main()</tt> <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/exampleN03.cc">(source file)</a>
547
548 <UL>
549  <LI><tt>main()</tt> for interactive mode and batch mode via macro file</LI>
550  <LI>construction and deletion of <i>G4RunManager</i></LI>
551  <LI>construction and deletion of (G)UI session and <i>VisManager</i> </LI>
552  <LI>construction and set of mandatory user classes </LI>
553  <LI>automatic initialization of geometry and visualization via a macro file</LI>
554 </UL>
555
556<H4>ExN03DetectorConstruction</H4>
557
558 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/include/ExN03DetectorConstruction.hh">(header file)</a>
559 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/src/ExN03DetectorConstruction.cc">(source file)</a>
560
561 <UL>
562  <LI>derived from <i>G4VUserDetectorConstruction</i> </LI>
563  <LI>definitions of single materials and mixtures</LI>
564  <LI>CSG solids </LI>
565  <LI><i>G4PVPlacement</i> without rotation </LI>
566  <LI>Interactivity: change detector size, material, magnetic field. (=&gt;messenger class)</LI>
567  <LI>visualization</LI>
568 </UL>
569
570<H4>ExN03PhysicsList</H4>
571
572 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/include/ExN03PhysicsList.hh">(header file)</a>
573 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/src/ExN03PhysicsList.cc">(source file)</a>
574
575 <UL>
576  <LI>derived from <i>G4VUserPhysicsList</i> </LI>
577  <LI>definition of geantinos, gamma, leptons, light mesons barions and ions</LI>
578  <LI>Transportation process, 'standard' Em processes, Decay</LI>
579  <LI>Interactivity: <i>SetCut</i>, process on/off. (=&gt; messenger class)</LI>
580 </UL>
581
582<H4>ExN03PrimaryGeneratorAction</H4>
583
584 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/include/ExN03PrimaryGeneratorAction.hh">(header file)</a>
585 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/src/ExN03PrimaryGeneratorAction.cc">(source file)</a>
586
587 <UL>
588  <LI>derived from <i>G4VPrimaryGeneratorAction</i> </LI>
589  <LI>construction of <i>G4ParticleGun</i> </LI>
590  <LI>primary event generation via particle gun </LI>
591  <LI>Interactivity: shoot particle randomly. (=&gt; messenger class)</LI>
592 </UL>
593
594<H4>ExN03RunAction</H4>
595 
596 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/include/ExN03RunAction.hh">(header file)</a>
597 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/src/ExN03RunAction.cc">(source file)</a>
598
599 <UL>
600  <LI>derived from <i>G4VUserRunAction</i>
601  <LI>draw detector and tracks</LI>
602  <LI>Interactivity: <i>SetCut,</i> process on/off.</LI>
603  <LI>Interactivity: change detector size, material, magnetic field .</LI>
604 </UL>
605
606<H4>ExN03EventAction</H4>
607 
608 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/include/ExN03EventAction.hh">(header file)</a>
609 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/src/ExN03EventAction.cc">(source file)</a>
610
611 <UL>
612  <LI>derived from <i>G4VUserEventAction</i> </LI>
613  <LI>store trajectories</LI>
614  <LI>print end of event information (energy deposited, etc.)</LI>
615 </UL>
616
617<H4>ExN03SteppingAction</H4>
618
619 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/include/ExN03SteppingAction.hh">(header file)</a>
620 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/src/ExN03SteppingAction.cc">(source file)</a>
621
622 <UL>
623  <LI>derived from <i>G4VUserSteppingAction</i> </LI>
624  <LI>collect energy deposition, etc.</LI>
625 </UL>
626<p>
627
628
629<hr>
630<a name="9.1.5">
631<h2>9.1.5 Example N04</h2>
632 
633 <dl>
634  <dt>Basic concepts
635  <dd>Simplified collider experiment geometry
636  <dd>Full hits/digits/trigger
637 </dl>
638
639<h4>Classes</h4>
640
641 <tt>main()</tt> <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/exampleN04.cc">(source file)</a>
642
643 <ul>
644  <li>construction and deletion of <i>ExN04RunManager</i>
645  <li>construction and deletion of (G)UI session and <i>VisManager</i> 
646  <li>construction and set of user classes
647 </ul>
648
649<h4>ExN04DetectorConstruction</h4>
650 
651 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04DetectorConstruction.hh">(header file)</a>
652 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04DetectorConstruction.cc">(source file)</a>
653
654 <ul>
655  <li>derived from <i>G4VUserDetectorConstruction</i> 
656  <li>construction of <i>ExN04MagneticField</i> 
657  <li>definitions of mixture and compound materials
658  <li>material-dependent CutOff
659  <li>simplified collider geometry with Param/Replica
660  <li>tracker/muon -- parametrised
661  <li>calorimeter -- replica
662 </ul>
663
664<h4>ExN04TrackerParametrisation</h4>
665
666 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04TrackerParametrisation.hh">(header file)</a>
667 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04TrackerParametrisation.cc">(source file)</a>
668
669 <ul>
670  <li>derived from <i>G4VPVParametrisation</i> 
671  <li>parametrised sizes
672 </ul>
673
674<h4>ExN04CalorimeterParametrisation</h4>
675
676 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04CalorimeterParametrisation.hh">(header file)</a>
677 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04CalorimeterParametrisation.cc">(source file)</a>
678
679 <ul>
680  <li>derived from <i>G4VPVParametrisation</i> 
681  <li>parametrized position/rotation
682 </ul>
683
684<h4>ExN04MagneticField</h4>
685
686 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04Field.hh">(header file)</a>
687 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04Field.cc">(source file)</a>
688
689 <ul>
690  <li>derived from <i>G4MagneticField</i> 
691  <li>solenoid and toroidal fields
692 </ul>
693
694<h4>ExN04TrackerSD</h4>
695 
696 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04TrackerSD.hh">(header file)</a>
697 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04TrackerSD.cc">(source file)</a>
698
699 <ul>
700  <li>derived from <i>G4VSensitiveDetector</i> 
701  <li>tracker-type hit generation
702 </ul>
703
704<h4>ExN04TrackerHit</h4>
705
706 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04TrackerHit.hh">(header file)</a>
707 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04TrackerHit.cc">(source file)</a>
708
709 <ul>
710  <li>derived from <i>G4VHit</i>
711  <li>draw hit point
712 </ul>
713
714
715<h4>ExN04CalorimeterSD</h4>
716
717 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04CalorimeterSD.hh">(header file)</a>
718 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04CalorimeterSD.cc">(source file)</a>
719
720 <ul>
721  <li>derived from <i>G4VSensitiveDetector</i> 
722  <li>calorimeter-type hit generation
723 </ul>
724
725<h4>ExN04CalorimeterHit</h4>
726
727 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04CalorimeterHit.hh">(header file)</a>
728 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04CalorimeterHit.cc">(source file)</a>
729
730 <ul>
731  <li>derived from <i>G4VHit</i>
732  <li>draw physical volume with variable color
733 </ul>
734
735<h4>ExN04MuonSD</h4>
736
737 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04MuonSD.hh">(header file)</a>
738 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04MuonSD.cc">(source file)</a>
739
740 <ul>
741  <li>derived from <i>G4VSensitiveDetector</i> 
742  <li>Scintillator-type hit generation
743 </ul>
744
745<h4>ExN04MuonHit</h4>
746
747 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04MuonHit.hh">(header file)</a>
748 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04MuonHit.cc">(source file)</a>
749
750 <ul>
751  <li>derived from <i>G4VHit</i>
752  <li>draw physical volume with variable color
753 </ul>
754
755<h4>ExN04PrimaryGeneratorAction</h4>
756
757 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04PrimaryGeneratorAction.hh">(header file)</a>
758 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04PrimaryGeneratorAction.cc">(source file)</a>
759
760 <ul>
761  <li>derived from <i>G4VPrimaryGeneratorAction</i> 
762  <li>construction of <i>G4HEPEvtInterface</i> 
763  <li>primary event generation with PYTHIA event
764 </ul>
765
766<h4>ExN04EventAction</h4>
767
768 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04EventAction.hh">(header file)</a>
769 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04EventAction.cc">(source file)</a>
770
771 <ul>
772  <li>store the initial seeds
773 </ul>
774
775<h4>ExN04StackingAction</h4>
776
777 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04StackingAction.hh">(header file)</a>
778 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04StackingAction.cc">(source file)</a>
779
780 <ul>
781  <li>derived from <i>G4UserStackingAction</i> 
782  <li>``stage'' control and priority control
783  <li>event abortion
784 </ul>
785
786<h4>ExN04StackingActionMessenger</h4>
787 
788 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04StackingActionMessenger.hh">(header file)</a>
789 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04StackingActionMessenger.cc">(source file)</a>
790
791 <ul>
792  <li>derived from <i>G4UImessenger</i> 
793  <li>define abortion conditions
794 </ul>
795
796<h4>ExN04TrackingAction</h4>
797
798 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04TrackingAction.hh">(header file)</a>
799 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04TrackingAction.cc">(source file)</a>
800
801 <ul>
802  <li>derived from <i>G4UserTrackingAction</i> 
803  <li>select trajectories
804  <li>select secondaries
805 </ul>
806<p>
807
808<hr>
809<a name="9.1.6">
810<h2>9.1.6 Example N05</h2>
811
812 <DL>
813  <DT>Basic concepts </DT>
814  <DD>Use of shower parameterisation:</DD>
815  <DL>
816   <DD>* definition of an EM shower model</DD>
817   <DD>* assignment to a Logical Volume</DD>
818   <DD>* (definition of ghost volume when ready)</DD>
819  </DL>
820  <DD>Interactivity: build of messengers classes</DD>
821  <DD>Hits/Digi: filled from detailed and parameterised simulation (calorimeter type hits ?)</DD>
822 </DL>
823<P>
824
825<H4>Classes</H4>
826
827 <tt>main()</tt> <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/exampleN05.cc">(source file)</a>
828
829 <UL>
830  <LI><tt>main()</tt> for interactive mode</LI>
831  <LI>construction and deletion of <i>G4RunManager</i> </LI>
832  <LI>construction and set of mandatory user classes</LI>
833  <LI>construction of the <i>G4GlobalFastSimulationmanager</i> </LI>
834  <LI>construction of a <i>G4FastSimulationManager</i> to assign fast simulation
835      model to a logical volume (envelope)</LI>
836  <LI>(definition of ghost volume for parameterisation)</LI>
837  <LI>construction EM physics shower fast simulation model</LI>
838 </UL>
839
840<h4>ExN05EMShowerModel</h4>
841
842 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/include/ExN05EMShowerModel.hh">(header file)</a>
843 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/src/ExN05EMShowerModel.cc">(source file)</a>
844
845 <UL>
846  <LI>derived from <i>G4VFastSimulationModel</i> 
847  <LI>energy deposition in sensitive detector</LI>
848 </UL>
849
850<h4>ExN05PionShowerModel</h4>
851
852 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/include/ExN05PionShowerModel.hh">(header file)</a>
853 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/src/ExN05PionShowerModel.cc">(source file)</a>
854
855 <UL>
856  <LI>derived from <i>G4VFastSimulationModel</i> 
857  <LI>energy deposition in sensitive detector</LI>
858 </UL>
859
860<H4>ExN05DetectorConstruction</H4>
861
862 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/include/ExN05DetectorConstruction.hh">(header file)</a>
863 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/src/ExN05DetectorConstruction.cc">(source file)</a>
864
865 <UL>
866  <LI>derived from <i>G4VUserDetectorConstruction</i> </LI>
867  <LI>definitions of single materials and mixtures</LI>
868  <LI>CSG solids </LI>
869  <LI><i>G4PVPlacement</i> </LI>
870 </UL>
871
872<h4>ExN05PhysicsList</h4>
873
874 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/include/ExN05PhysicsList.hh">(header file)</a>
875 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/src/ExN05PhysicsList.cc">(source file)</a>
876
877 <UL>
878  <LI>derived from <i>G4VUserPhysicsList</i> </LI>
879  <LI>assignment of <i>G4FastSimulationManagerProcess</i> </LI>
880 </UL>
881
882<h4>ExN05PrimaryGeneratorAction</h4>
883 
884 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/include/ExN05PrimaryGeneratorAction.hh">(header file)</a>
885 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/src/ExN05PrimaryGeneratorAction.cc">(source file)</a>
886
887 <UL>
888  <LI>derived from <i>G4VPrimaryGeneratorAction</i> </LI>
889  <LI>construction of <i>G4ParticleGun</i> </LI>
890  <LI>primary event generation via particle gun </LI>
891 </UL>
892
893<h4>ExN05RunAction</h4>
894 
895 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/include/ExN05RunAction.hh">(header file)</a>
896 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/src/ExN05RunAction.cc">(source file)</a>
897
898 <UL>
899  <LI>derived from <i>G4VUserRunAction</i> </LI>
900  <LI>draw detector</LI>
901  <LI>(activation/deactivation of parameterisation ?)</LI>
902 </UL>
903
904<h4>ExN05EventAction</h4>
905
906 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/include/ExN05EventAction.hh">(header file)</a>
907 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/src/ExN05EventAction.cc">(source file)</a>
908
909 <UL>
910  <LI>derived from <i>G4VUserEventAction</i> </LI>
911  <LI>print time information</LI>
912 </UL>
913<p>
914
915<hr>
916<a name="9.1.7">
917<h2>9.1.7 Example N06</h2>
918
919 <DL>
920  <DT>Basic concepts</DT>
921  <DD>Interactivity : build messenger classes.</DD>
922  <DD>Event : Gun, shoot charge particle at Cerenkov Radiator and Scintillator.</DD>
923  <DD>PIIM : material/mixture with optical and scintillation properties.</DD>
924  <DD>Geometry : volumes filled with optical materials and possessing surface properties.</DD>
925  <DD>Physics : define and initialize optical processes.</DD>
926  <DD>Tracking : generate Cerenkov radiation,
927      collect energy deposition to produce scintillation.</DD>
928  <DD>Hits/Digi : PMT as detector.</DD>
929  <DD>Visualization : geometry, optical photon trajectories.</DD>
930 </DL>
931
932<H4>Classes</H4>
933
934 <tt>main()</tt> <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/exampleN06.cc">(source file)</a>
935
936 <UL>
937  <LI><tt>main()</tt> for interactive mode and batch mode via macro file</LI>
938  <LI>random number engine</LI>
939  <LI>construction and deletion of <i>G4RunManager</i> </LI>
940  <LI>construction and set of mandatory user classes </LI>
941  <LI>hard coded <tt>beamOn</tt></LI>
942 </UL>
943
944<h4>ExN06DetectorConstruction</h4>
945
946 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/include/ExN06DetectorConstruction.hh">(header file)</a>
947 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/src/ExN06DetectorConstruction.cc">(source file)</a>
948
949 <UL>
950  <LI>derived from <i>G4VUserDetectorConstruction</i> </LI>
951  <LI>definitions of single materials and mixtures </LI>
952  <LI>generate and add Material Properties Table to materials
953  <LI>CSG and BREP solids </LI>
954  <LI><i>G4PVPlacement</i> with rotation </LI>
955  <LI>definition of surfaces</LI>
956  <LI>generate and add Material Properties Table to surfaces
957  <LI>visualization</LI>
958 </UL>
959
960<h4>ExN06PhysicsList</h4>
961
962 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/include/ExN06PhysicsList.hh">(header file)</a>
963 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/src/ExN06PhysicsList.cc">(source file)</a>
964
965 <UL>
966  <LI>derived from <i>G4VUserPhysicsList</i> </LI>
967  <LI>definition of gamma, leptons and optical photons </LI>
968  <LI>transportation, 'standard' EM-processes, decay, Cerenkov,
969      scintillation, 'standard' optical and boundary process </LI>
970  <LI>modify/augment optical process parameters </LI>
971 </UL>
972
973<h4>ExN06PrimaryGeneratorAction</h4>
974
975 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/include/ExN06PrimaryGeneratorAction.hh">(header file)</a>
976 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/src/ExN06PrimaryGeneratorAction.cc">(source file)</a>
977
978 <UL>
979  <LI>derived from <i>G4VPrimaryGeneratorAction</i> </LI>
980  <LI>construction of <i>G4ParticleGun</i> </LI>
981  <LI>primary event generation via particle gun </LI>
982 </UL>
983
984<h4>ExN06RunAction</h4>
985
986 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/include/ExN06RunAction.hh">(header file)</a>
987 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/src/ExN06RunAction.cc">(source file)</a>
988
989 <UL>
990  <LI>derived from <i>G4VUserRunAction</i> </LI>
991  <LI>draw detector</LI>
992 </UL>
993<p>
994
995<hr>
996<a name="9.1.8">
997<h2>9.1.8 Example N07</h2>
998
999 <DL>
1000  <DT>Basic concepts</DT>
1001  <DD>Geometry : Changing geometry of three simplified sandwitch calorimeters without re-building a world volume.</DD>
1002  <DD>Region : Defining geometrical regions ans setting production thresholds for each region.</DD>
1003  <DD>Run : Utilizing a concrete run class derived from G4Run base class for
1004       accumulating physics quantities and hits as a run.</DD>
1005  <DD>Hits : Demonstrating the use of primitive scorer and filter classes without
1006       implementing sensitive detector class.</DD>
1007 </DL>
1008
1009<H4>Classes</H4>
1010
1011 <tt>main()</tt> <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/exampleN07.cc">(source file)</a>
1012
1013 <UL>
1014  <LI><tt>main()</tt> for interactive mode and batch mode via macro file</LI>
1015  <LI>construction and deletion of <i>G4RunManager</i> </LI>
1016  <LI>construction and deletion of <i>G4VisExective</i> and <i>G4UITerminal</i></LI>
1017  <LI>construction and set of mandatory user classes </LI>
1018  <LI>construction and set of <i>ExN07RunAction</i> </LI>
1019 </UL>
1020
1021<h4>ExN07DetectorConstruction</h4>
1022
1023 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/include/ExN07DetectorConstruction.hh">(header file)</a>
1024 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/src/ExN07DetectorConstruction.cc">(source file)</a>
1025
1026 <UL>
1027  <LI>derived from <i>G4VUserDetectorConstruction</i> </LI>
1028  <LI>definitions of materials and mixtures </LI>
1029  <LI><i>G4Box</i> with <i>G4PVPlacement</i> and <i>G4PVReplica</i> </LI>
1030  <LI>Dynamic changing of size, position, orientation and number of volumes </LI>
1031  <LI><i>G4Region</i> for each calorimeter tower </LI>
1032  <LI><i>G4VPrimitiveScorer</i> and <i>G4VSDFilter</i> </LI>
1033  <LI>visualization</LI>
1034 </UL>
1035
1036<h4>ExN07DetectorMessenger</h4>
1037
1038 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/include/ExN07DetectorMessenger.hh">(header file)</a>
1039 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/src/ExN07DetectorMessenger.cc">(source file)</a>
1040
1041 <UL>
1042  <LI>derived from <i>G4UIMessenger</i> </LI>
1043  <LI>definition of example-specific geometry commands </LI>
1044 </UL>
1045
1046<h4>ExN07PhysicsList</h4>
1047
1048 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/include/ExN07PhysicsList.hh">(header file)</a>
1049 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/src/ExN07PhysicsList.cc">(source file)</a>
1050
1051 <UL>
1052  <LI>derived from <i>G4VUserPhysicsList</i> </LI>
1053  <LI>difine all types of particles </LI>
1054  <LI>define standard EM and decay processes </LI>
1055  <LI>production thresholds for each region </LI>
1056 </UL>
1057
1058<h4>ExN07PrimaryGeneratorAction</h4>
1059
1060 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/include/ExN07PrimaryGeneratorAction.hh">(header file)</a>
1061 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/src/ExN07PrimaryGeneratorAction.cc">(source file)</a>
1062
1063 <UL>
1064  <LI>derived from <i>G4VPrimaryGeneratorAction</i> </LI>
1065  <LI>construction of <i>G4ParticleGun</i> </LI>
1066  <LI>primary event generation via particle gun </LI>
1067 </UL>
1068
1069<h4>ExN07RunAction</h4>
1070
1071 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/include/ExN07RunAction.hh">(header file)</a>
1072 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/src/ExN07RunAction.cc">(source file)</a>
1073
1074 <UL>
1075  <LI>derived from <i>G4UserRunAction</i> </LI>
1076  <LI>constructing <i>ExN07Run</i> class object </LI>
1077  <LI>print out a run summary with <i>ExN07Run</i> class object </LI>
1078 </UL>
1079
1080<h4>ExN07Run</h4>
1081
1082 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/include/ExN07Run.hh">(header file)</a>
1083 <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/src/ExN07Run.cc">(source file)</a>
1084
1085 <UL>
1086  <LI>derived from <i>G4Run</i> </LI>
1087  <LI>uses <i>G4THitsMap</i> template class to accumulate physics quantities </LI>
1088  <LI>extracts event data from <i>G4Event</i> and add up to run data </LI>
1089 </UL>
1090
1091
1092<BR><BR>
1093<HR></FONT></FONT></B><A HREF="../../../../Authors/html/subjectsToAuthors.html">
1094<I>About the authors</A></I> </P></CENTER>
1095
1096</BODY>
1097</HTML>
Note: See TracBrowser for help on using the repository browser.