| 1 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 9. Examples</title><link rel="stylesheet" href="../xml/XSLCustomizationLayer/G4HTMLStylesheet.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.71.1"><link rel="start" href="index.html" title="Geant4 User's Guide for Application Developers"><link rel="up" href="index.html" title="Geant4 User's Guide for Application Developers"><link rel="prev" href="ch08s10.html" title="8.10. Making a Movie"><link rel="next" href="ch09s02.html" title="9.2. Extended Examples"><script language="JavaScript">
|
|---|
| 2 | function remote_win(fName)
|
|---|
| 3 | {
|
|---|
| 4 | var url = "AllResources/Detector/geometry.src/" + fName;
|
|---|
| 5 | RemoteWin=window.open(url,"","resizable=no,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=520,height=520")
|
|---|
| 6 | RemoteWin.creator=self
|
|---|
| 7 | }
|
|---|
| 8 | </script></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 9.
|
|---|
| 9 | Examples
|
|---|
| 10 | </th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch08s10.html"><img src="AllResources/IconsGIF/prev.gif" alt="Prev"></a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ch09s02.html"><img src="AllResources/IconsGIF/next.gif" alt="Next"></a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="chap.Examples"></a>Chapter 9.
|
|---|
| 11 | Examples
|
|---|
| 12 | </h2></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="sect.ExmpNvc"></a>9.1.
|
|---|
| 13 | Novice Examples
|
|---|
| 14 | </h2></div></div></div><p>
|
|---|
| 15 | The Geant4 toolkit includes several fully coded examples which
|
|---|
| 16 | demonstrate the implementation of the user classes required to
|
|---|
| 17 | build a customized simulation. Seven "novice" examples are provided
|
|---|
| 18 | ranging from the simulation of a non-interacting particle and a
|
|---|
| 19 | trivial detector, to the simulation of electromagnetic and hadronic
|
|---|
| 20 | physics processes in a complex detector. Each example may be used
|
|---|
| 21 | as a base from which more detailed applications can be developed. A
|
|---|
| 22 | set of "extended" examples implement simulations of actual high
|
|---|
| 23 | energy physics detectors and require some libraries in addition to
|
|---|
| 24 | those of Geant4. The "advanced" examples cover cases useful to the
|
|---|
| 25 | developement of the Geant4 toolkit itself.
|
|---|
| 26 | </p><p>
|
|---|
| 27 | The examples can be compiled and run without modification. Most
|
|---|
| 28 | of them can be run both in interactive and batch mode using the
|
|---|
| 29 | input macro files (<code class="literal">*.in</code>) and reference output files
|
|---|
| 30 | (<code class="literal">*.out</code>) provided. These examples are run routinely as
|
|---|
| 31 | part of the validation, or testing, of official releases of the Geant4
|
|---|
| 32 | toolkit.
|
|---|
| 33 | </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="sect.ExmpNvc.Smmry"></a>9.1.1.
|
|---|
| 34 | Novice Example Summary
|
|---|
| 35 | </h3></div></div></div><p>
|
|---|
| 36 | Descriptions of the 7 novice examples are provided here along with
|
|---|
| 37 | links to the code.
|
|---|
| 38 | </p><p>
|
|---|
| 39 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/README" target="_top">
|
|---|
| 40 | <code class="literal">ExampleN01</code>
|
|---|
| 41 | </a>
|
|---|
| 42 |
|
|---|
| 43 | <a href="ch09.html#sect.ExmpNvc.Exmp01" title="9.1.2. Example N01">
|
|---|
| 44 | (Description below)
|
|---|
| 45 | </a>
|
|---|
| 46 |
|
|---|
| 47 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 48 | Mandatory user classes
|
|---|
| 49 | </p></li><li><p>
|
|---|
| 50 | Demonstrates how Geant4 kernel works
|
|---|
| 51 | </p></li></ul></div><p>
|
|---|
| 52 | </p><p>
|
|---|
| 53 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/README" target="_top">
|
|---|
| 54 | <code class="literal">ExampleN02</code>
|
|---|
| 55 | </a>
|
|---|
| 56 |
|
|---|
| 57 | <a href="ch09.html#sect.ExmpNvc.Exmp02" title="9.1.3. Example N02">
|
|---|
| 58 | (Description below)
|
|---|
| 59 | </a>
|
|---|
| 60 |
|
|---|
| 61 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 62 | Simplified tracker geometry with uniform magnetic field
|
|---|
| 63 | </p></li><li><p>
|
|---|
| 64 | Electromagnetic processes
|
|---|
| 65 | </p></li></ul></div><p>
|
|---|
| 66 | </p><p>
|
|---|
| 67 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/README" target="_top">
|
|---|
| 68 | <code class="literal">ExampleN03</code>
|
|---|
| 69 | </a>
|
|---|
| 70 |
|
|---|
| 71 | <a href="ch09.html#sect.ExmpNvc.Exmp03" title="9.1.4. Example N03">
|
|---|
| 72 | (Description below)
|
|---|
| 73 | </a>
|
|---|
| 74 |
|
|---|
| 75 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 76 | Simplified calorimeter geometry
|
|---|
| 77 | </p></li><li><p>
|
|---|
| 78 | Electromagnetic processes
|
|---|
| 79 | </p></li><li><p>
|
|---|
| 80 | Various materials
|
|---|
| 81 | </p></li></ul></div><p>
|
|---|
| 82 | </p><p>
|
|---|
| 83 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/README" target="_top">
|
|---|
| 84 | <code class="literal">ExampleN04</code>
|
|---|
| 85 | </a>
|
|---|
| 86 |
|
|---|
| 87 | <a href="ch09.html#sect.ExmpNvc.Exmp04" title="9.1.5. Example N04">
|
|---|
| 88 | (Description below)
|
|---|
| 89 | </a>
|
|---|
| 90 |
|
|---|
| 91 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 92 | Simplified collider detector with a readout geometry
|
|---|
| 93 | </p></li><li><p>
|
|---|
| 94 | Full ``ordinary'' processes
|
|---|
| 95 | </p></li><li><p>
|
|---|
| 96 | PYTHIA primary events
|
|---|
| 97 | </p></li><li><p>
|
|---|
| 98 | Event filtering by stack
|
|---|
| 99 | </p></li></ul></div><p>
|
|---|
| 100 | </p><p>
|
|---|
| 101 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/README" target="_top">
|
|---|
| 102 | <code class="literal">ExampleN05</code>
|
|---|
| 103 | </a>
|
|---|
| 104 |
|
|---|
| 105 | <a href="ch09.html#sect.ExmpNvc.Exmp05" title="9.1.6. Example N05">
|
|---|
| 106 | (Description below)
|
|---|
| 107 | </a>
|
|---|
| 108 |
|
|---|
| 109 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 110 | Simplified BaBar calorimeter
|
|---|
| 111 | </p></li><li><p>
|
|---|
| 112 | EM shower parametrisation
|
|---|
| 113 | </p></li></ul></div><p>
|
|---|
| 114 | </p><p>
|
|---|
| 115 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/README" target="_top">
|
|---|
| 116 | <code class="literal">ExampleN06</code>
|
|---|
| 117 | </a>
|
|---|
| 118 |
|
|---|
| 119 | <a href="ch09.html#sect.ExmpNvc.Exmp06" title="9.1.7. Example N06">
|
|---|
| 120 | (Description below)
|
|---|
| 121 | </a>
|
|---|
| 122 |
|
|---|
| 123 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 124 | Optical photon processes
|
|---|
| 125 | </p></li></ul></div><p>
|
|---|
| 126 | </p><p>
|
|---|
| 127 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/README" target="_top">
|
|---|
| 128 | <code class="literal">ExampleN07</code>
|
|---|
| 129 | </a>
|
|---|
| 130 |
|
|---|
| 131 | <a href="ch09.html#sect.ExmpNvc.Exmp07" title="9.1.8. Example N07">
|
|---|
| 132 | (Description below)
|
|---|
| 133 | </a>
|
|---|
| 134 |
|
|---|
| 135 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 136 | Geometrical Regions for production thresholds
|
|---|
| 137 | </p></li><li><p>
|
|---|
| 138 | Dynamic geometry setups between runs
|
|---|
| 139 | </p></li><li><p>
|
|---|
| 140 | Primitive scorer and filter
|
|---|
| 141 | </p></li><li><p>
|
|---|
| 142 | Derived run class and run action
|
|---|
| 143 | </p></li></ul></div><p>
|
|---|
| 144 | </p><p>
|
|---|
| 145 | <a href="ch09.html#table.ExmpNvc_1" title="Table 9.1.
|
|---|
| 146 | The ``item chart'' for novice level examples N01,
|
|---|
| 147 | N02 and N03.
|
|---|
| 148 | ">Table 9.1</a>, <a href="ch09.html#table.ExmpNvc_2" title="Table 9.2.
|
|---|
| 149 | The ``item chart'' for novice level examples N04,
|
|---|
| 150 | N05, and N06.
|
|---|
| 151 | ">Table 9.2</a> and
|
|---|
| 152 | <a href="ch09.html#table.ExmpNvc_3" title="Table 9.3.
|
|---|
| 153 | The ``item chart'' for novice level example N07.
|
|---|
| 154 | ">Table 9.3</a> display the ``item charts'' for
|
|---|
| 155 | the examples currently prepared in the novice level.
|
|---|
| 156 |
|
|---|
| 157 | </p><div class="table"><a name="table.ExmpNvc_1"></a><div class="table-contents"><table summary="
|
|---|
| 158 | The ``item chart'' for novice level examples N01,
|
|---|
| 159 | N02 and N03.
|
|---|
| 160 | " border="1"><colgroup><col><col><col><col></colgroup><tbody><tr><td>
|
|---|
| 161 |
|
|---|
| 162 | </td><td>
|
|---|
| 163 | <code class="literal">ExampleN01</code>
|
|---|
| 164 | </td><td>
|
|---|
| 165 | <code class="literal">ExampleN02</code>
|
|---|
| 166 | </td><td>
|
|---|
| 167 | <code class="literal">ExampleN03</code>
|
|---|
| 168 | </td></tr><tr><td>
|
|---|
| 169 | comments
|
|---|
| 170 | </td><td>
|
|---|
| 171 | minimal set for geantino transportation
|
|---|
| 172 | </td><td>
|
|---|
| 173 | fixed target tracker geometry
|
|---|
| 174 | </td><td>
|
|---|
| 175 | EM shower in calorimeter
|
|---|
| 176 | </td></tr><tr><td>
|
|---|
| 177 | Run
|
|---|
| 178 | </td><td>
|
|---|
| 179 | <code class="literal">main()</code> for hard coded batch
|
|---|
| 180 | </td><td>
|
|---|
| 181 | <code class="literal">main()</code> for interactive mode
|
|---|
| 182 | </td><td>
|
|---|
| 183 | <div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 184 | <code class="literal">main()</code> for interactive mode
|
|---|
| 185 | </p></li><li><p>
|
|---|
| 186 | SetCut and Process On/Off
|
|---|
| 187 | </p></li></ul></div>
|
|---|
| 188 | </td></tr><tr><td>
|
|---|
| 189 | Event
|
|---|
| 190 | </td><td>
|
|---|
| 191 | event generator selection (particleGun)
|
|---|
| 192 | </td><td>
|
|---|
| 193 | event generator selection (particleGun)
|
|---|
| 194 | </td><td>
|
|---|
| 195 | <div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 196 | event generator selection (particleGun)
|
|---|
| 197 | </p></li><li><p>
|
|---|
| 198 | ``end of event'' simple analysis in <span class="emphasis"><em>UserEventAction</em></span>
|
|---|
| 199 | </p></li></ul></div>
|
|---|
| 200 | </td></tr><tr><td>
|
|---|
| 201 | Tracking
|
|---|
| 202 | </td><td>
|
|---|
| 203 | hard coded verbose level setting
|
|---|
| 204 | </td><td>
|
|---|
| 205 | selecting secondaries
|
|---|
| 206 | </td><td>
|
|---|
| 207 | select trajectories
|
|---|
| 208 | </td></tr><tr><td>
|
|---|
| 209 | Geometry
|
|---|
| 210 | </td><td>
|
|---|
| 211 | geometry definition (CSG)
|
|---|
| 212 | </td><td>
|
|---|
| 213 | <div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 214 | geometry definition (includes Parametrised volume)
|
|---|
| 215 | </p></li><li><p>
|
|---|
| 216 | uniform magnetic field
|
|---|
| 217 | </p></li></ul></div>
|
|---|
| 218 | </td><td>
|
|---|
| 219 | <div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 220 | geometry definition (includes replica)
|
|---|
| 221 | </p></li><li><p>
|
|---|
| 222 | uniform magnetic field
|
|---|
| 223 | </p></li></ul></div>
|
|---|
| 224 | </td></tr><tr><td>
|
|---|
| 225 | Hits/Digi
|
|---|
| 226 | </td><td align="center">
|
|---|
| 227 | -
|
|---|
| 228 | </td><td>
|
|---|
| 229 | tracker type hits
|
|---|
| 230 | </td><td>
|
|---|
| 231 | calorimeter-type hits
|
|---|
| 232 | </td></tr><tr><td>
|
|---|
| 233 | PIIM
|
|---|
| 234 | </td><td>
|
|---|
| 235 | <div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 236 | minimal particle set
|
|---|
| 237 | </p></li><li><p>
|
|---|
| 238 | single element material
|
|---|
| 239 | </p></li></ul></div>
|
|---|
| 240 | </td><td>
|
|---|
| 241 | <div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 242 | EM particles set
|
|---|
| 243 | </p></li><li><p>
|
|---|
| 244 | mixtures and compound elements
|
|---|
| 245 | </p></li></ul></div>
|
|---|
| 246 | </td><td>
|
|---|
| 247 | <div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 248 | EM particles set
|
|---|
| 249 | </p></li><li><p>
|
|---|
| 250 | mixtures and compound elements
|
|---|
| 251 | </p></li></ul></div>
|
|---|
| 252 | </td></tr><tr><td>
|
|---|
| 253 | Physics
|
|---|
| 254 | </td><td>
|
|---|
| 255 | transportation
|
|---|
| 256 | </td><td>
|
|---|
| 257 | EM physics
|
|---|
| 258 | </td><td>
|
|---|
| 259 | EM physics
|
|---|
| 260 | </td></tr><tr><td>
|
|---|
| 261 | Vis
|
|---|
| 262 | </td><td align="center">
|
|---|
| 263 | -
|
|---|
| 264 | </td><td>
|
|---|
| 265 | <div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 266 | detector & trajectory drawing
|
|---|
| 267 | </p></li><li><p>
|
|---|
| 268 | tracker type hits drawing
|
|---|
| 269 | </p></li></ul></div>
|
|---|
| 270 | </td><td>
|
|---|
| 271 | detector & trajectory drawing
|
|---|
| 272 | </td></tr><tr><td>
|
|---|
| 273 | (G)UI
|
|---|
| 274 | </td><td align="center">
|
|---|
| 275 | -
|
|---|
| 276 | </td><td>
|
|---|
| 277 | GUI selection
|
|---|
| 278 | </td><td>
|
|---|
| 279 | GUI selection
|
|---|
| 280 | </td></tr><tr><td>
|
|---|
| 281 | Global
|
|---|
| 282 | </td><td align="center">
|
|---|
| 283 | -
|
|---|
| 284 | </td><td align="center">
|
|---|
| 285 | -
|
|---|
| 286 | </td><td align="center">
|
|---|
| 287 | -
|
|---|
| 288 | </td></tr></tbody></table></div><p class="title"><b>Table 9.1.
|
|---|
| 289 | The ``item chart'' for novice level examples <code class="literal">N01</code>,
|
|---|
| 290 | <code class="literal">N02</code> and <code class="literal">N03</code>.
|
|---|
| 291 | </b></p></div><p><br class="table-break">
|
|---|
| 292 | </p><p>
|
|---|
| 293 | </p><div class="table"><a name="table.ExmpNvc_2"></a><div class="table-contents"><table summary="
|
|---|
| 294 | The ``item chart'' for novice level examples N04,
|
|---|
| 295 | N05, and N06.
|
|---|
| 296 | " border="1"><colgroup><col><col><col><col></colgroup><tbody><tr><td>
|
|---|
| 297 |
|
|---|
| 298 | </td><td>
|
|---|
| 299 | <code class="literal">ExampleN04</code>
|
|---|
| 300 | </td><td>
|
|---|
| 301 | <code class="literal">ExampleN05</code>
|
|---|
| 302 | </td><td>
|
|---|
| 303 | <code class="literal">ExampleN06</code>
|
|---|
| 304 | </td></tr><tr><td>
|
|---|
| 305 | comments
|
|---|
| 306 | </td><td>
|
|---|
| 307 | simplified collider geometry
|
|---|
| 308 | </td><td>
|
|---|
| 309 | parametrised shower example
|
|---|
| 310 | </td><td>
|
|---|
| 311 | Optical photon example
|
|---|
| 312 | </td></tr><tr><td>
|
|---|
| 313 | Run
|
|---|
| 314 | </td><td>
|
|---|
| 315 | <code class="literal">main()</code> for interactive mode
|
|---|
| 316 | </td><td>
|
|---|
| 317 | <code class="literal">main()</code> for interactive mode
|
|---|
| 318 | </td><td>
|
|---|
| 319 | <code class="literal">main()</code> for interactive mode
|
|---|
| 320 | </td></tr><tr><td>
|
|---|
| 321 | Event
|
|---|
| 322 | </td><td>
|
|---|
| 323 | <div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 324 | event generator selection (HEPEvtInterface)
|
|---|
| 325 | </p></li><li><p>
|
|---|
| 326 | Stack control
|
|---|
| 327 | </p></li></ul></div>
|
|---|
| 328 | </td><td>
|
|---|
| 329 | event generator selection (HEPEvtInterface)
|
|---|
| 330 | </td><td>
|
|---|
| 331 | event generator selection (particleGun)
|
|---|
| 332 | </td></tr><tr><td>
|
|---|
| 333 | Tracking
|
|---|
| 334 | </td><td>
|
|---|
| 335 | <div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 336 | select trajectories
|
|---|
| 337 | </p></li><li><p>
|
|---|
| 338 | selecting secondaries
|
|---|
| 339 | </p></li></ul></div>
|
|---|
| 340 | </td><td align="center">
|
|---|
| 341 | -
|
|---|
| 342 | </td><td align="center">
|
|---|
| 343 | -
|
|---|
| 344 | </td></tr><tr><td>
|
|---|
| 345 | Geometry
|
|---|
| 346 | </td><td>
|
|---|
| 347 | <div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 348 | geometry definition (includes Param/Replica)
|
|---|
| 349 | </p></li><li><p>
|
|---|
| 350 | non-uniform magnetic field
|
|---|
| 351 | </p></li></ul></div>
|
|---|
| 352 | </td><td>
|
|---|
| 353 | ghost volume for shower parametrisation
|
|---|
| 354 | </td><td>
|
|---|
| 355 | geometry definition (BREP with rotation)
|
|---|
| 356 | </td></tr><tr><td>
|
|---|
| 357 | Hits/Digi
|
|---|
| 358 | </td><td>
|
|---|
| 359 | <div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 360 | Tracker/calorimeter/counter types
|
|---|
| 361 | </p></li><li><p>
|
|---|
| 362 | ReadOut geometry
|
|---|
| 363 | </p></li></ul></div>
|
|---|
| 364 | </td><td>
|
|---|
| 365 | Sensitive detector for shower parametrisation
|
|---|
| 366 | </td><td align="center">
|
|---|
| 367 | -
|
|---|
| 368 | </td></tr><tr><td>
|
|---|
| 369 | PIIM
|
|---|
| 370 | </td><td>
|
|---|
| 371 | <div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 372 | Full particle set
|
|---|
| 373 | </p></li><li><p>
|
|---|
| 374 | mixtures and compound elements
|
|---|
| 375 | </p></li></ul></div>
|
|---|
| 376 | </td><td>
|
|---|
| 377 | <div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 378 | EM set
|
|---|
| 379 | </p></li><li><p>
|
|---|
| 380 | mixtures and compound elements
|
|---|
| 381 | </p></li></ul></div>
|
|---|
| 382 | </td><td>
|
|---|
| 383 | <div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 384 | EM set
|
|---|
| 385 | </p></li><li><p>
|
|---|
| 386 | mixtures and compound elements
|
|---|
| 387 | </p></li></ul></div>
|
|---|
| 388 | </td></tr><tr><td>
|
|---|
| 389 | Physics
|
|---|
| 390 | </td><td>
|
|---|
| 391 | Full physics processes
|
|---|
| 392 | </td><td>
|
|---|
| 393 | Parametrized shower
|
|---|
| 394 | </td><td>
|
|---|
| 395 | Optical photon processes
|
|---|
| 396 | </td></tr><tr><td>
|
|---|
| 397 | Vis
|
|---|
| 398 | </td><td>
|
|---|
| 399 | <div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 400 | detector & hit drawing
|
|---|
| 401 | </p></li><li><p>
|
|---|
| 402 | calorimeter type hits drawing
|
|---|
| 403 | </p></li></ul></div>
|
|---|
| 404 | </td><td>
|
|---|
| 405 | detector & hit drawing
|
|---|
| 406 | </td><td align="center">
|
|---|
| 407 | -
|
|---|
| 408 | </td></tr><tr><td>
|
|---|
| 409 | (G)UI
|
|---|
| 410 | </td><td>
|
|---|
| 411 | define user commands
|
|---|
| 412 | </td><td>
|
|---|
| 413 | define user commands
|
|---|
| 414 | </td><td>
|
|---|
| 415 | define user commands
|
|---|
| 416 | </td></tr><tr><td>
|
|---|
| 417 | Global
|
|---|
| 418 | </td><td align="center">
|
|---|
| 419 | -
|
|---|
| 420 | </td><td align="center">
|
|---|
| 421 | -
|
|---|
| 422 | </td><td>
|
|---|
| 423 | random number engine
|
|---|
| 424 | </td></tr></tbody></table></div><p class="title"><b>Table 9.2.
|
|---|
| 425 | The ``item chart'' for novice level examples <code class="literal">N04</code>,
|
|---|
| 426 | <code class="literal">N05</code>, and <code class="literal">N06</code>.
|
|---|
| 427 | </b></p></div><p><br class="table-break">
|
|---|
| 428 | </p><p>
|
|---|
| 429 | </p><div class="table"><a name="table.ExmpNvc_3"></a><div class="table-contents"><table summary="
|
|---|
| 430 | The ``item chart'' for novice level example N07.
|
|---|
| 431 | " border="1"><colgroup><col><col></colgroup><tbody><tr><td>
|
|---|
| 432 |
|
|---|
| 433 | </td><td>
|
|---|
| 434 | <code class="literal">ExampleN07</code>
|
|---|
| 435 | </td></tr><tr><td>
|
|---|
| 436 | comments
|
|---|
| 437 | </td><td>
|
|---|
| 438 | Cuts per region
|
|---|
| 439 | </td></tr><tr><td>
|
|---|
| 440 | Run
|
|---|
| 441 | </td><td>
|
|---|
| 442 | <div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 443 | <code class="literal">main()</code> for interactive mode
|
|---|
| 444 | </p></li><li><p>
|
|---|
| 445 | Customized run class
|
|---|
| 446 | </p></li></ul></div>
|
|---|
| 447 | </td></tr><tr><td>
|
|---|
| 448 | Event
|
|---|
| 449 | </td><td>
|
|---|
| 450 | event generator selection (particleGun)
|
|---|
| 451 | </td></tr><tr><td>
|
|---|
| 452 | Tracking
|
|---|
| 453 | </td><td align="center">
|
|---|
| 454 | -
|
|---|
| 455 | </td></tr><tr><td>
|
|---|
| 456 | Geometry
|
|---|
| 457 | </td><td>
|
|---|
| 458 | <div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 459 | geometry definition (includes Replica)
|
|---|
| 460 | </p></li><li><p>
|
|---|
| 461 | Region
|
|---|
| 462 | </p></li></ul></div>
|
|---|
| 463 | </td></tr><tr><td>
|
|---|
| 464 | Hits/Digi
|
|---|
| 465 | </td><td>
|
|---|
| 466 | <div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 467 | Primitive scorer
|
|---|
| 468 | </p></li><li><p>
|
|---|
| 469 | Filter
|
|---|
| 470 | </p></li></ul></div>
|
|---|
| 471 | </td></tr><tr><td>
|
|---|
| 472 | PIIM
|
|---|
| 473 | </td><td>
|
|---|
| 474 | <div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 475 | EM set
|
|---|
| 476 | </p></li><li><p>
|
|---|
| 477 | mixtures and compound elements
|
|---|
| 478 | </p></li></ul></div>
|
|---|
| 479 | </td></tr><tr><td>
|
|---|
| 480 | Physics
|
|---|
| 481 | </td><td>
|
|---|
| 482 | EM processes
|
|---|
| 483 | </td></tr><tr><td>
|
|---|
| 484 | Vis
|
|---|
| 485 | </td><td>
|
|---|
| 486 | detector & trajectory drawing
|
|---|
| 487 | </td></tr><tr><td>
|
|---|
| 488 | (G)UI
|
|---|
| 489 | </td><td>
|
|---|
| 490 | define user commands
|
|---|
| 491 | </td></tr><tr><td>
|
|---|
| 492 | Global
|
|---|
| 493 | </td><td align="center">
|
|---|
| 494 | -
|
|---|
| 495 | </td></tr></tbody></table></div><p class="title"><b>Table 9.3.
|
|---|
| 496 | The ``item chart'' for novice level example <code class="literal">N07</code>.
|
|---|
| 497 | </b></p></div><p><br class="table-break">
|
|---|
| 498 | </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="sect.ExmpNvc.Exmp01"></a>9.1.2.
|
|---|
| 499 | Example N01
|
|---|
| 500 | </h3></div></div></div><h5><a name="id533957"></a>
|
|---|
| 501 | Basic concepts
|
|---|
| 502 | </h5><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 503 | minimal set for geantino transportation
|
|---|
| 504 | </p></li></ul></div><h5><a name="id533976"></a>
|
|---|
| 505 | Classes
|
|---|
| 506 | </h5><p>
|
|---|
| 507 | <code class="literal">main()</code>
|
|---|
| 508 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/exampleN01.cc" target="_top">
|
|---|
| 509 | (source file)
|
|---|
| 510 | </a>
|
|---|
| 511 |
|
|---|
| 512 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 513 | hard coded batch
|
|---|
| 514 | </p></li><li><p>
|
|---|
| 515 | construction and deletion of <span class="emphasis"><em>G4RunManager</em></span>
|
|---|
| 516 | </p></li><li><p>
|
|---|
| 517 | hard coded verbose level setting to <span class="emphasis"><em>G4RunManager</em></span>,
|
|---|
| 518 | <span class="emphasis"><em>G4EventManager</em></span> and
|
|---|
| 519 | <span class="emphasis"><em>G4TrackingManager</em></span>
|
|---|
| 520 | </p></li><li><p>
|
|---|
| 521 | construction and set of mandatory user classes
|
|---|
| 522 | </p></li><li><p>
|
|---|
| 523 | hard coded <code class="literal">beamOn()</code>
|
|---|
| 524 | </p></li><li><p>
|
|---|
| 525 | Hard coded UI command application
|
|---|
| 526 | </p></li></ul></div><p>
|
|---|
| 527 | </p><h5><a name="id534054"></a>
|
|---|
| 528 | ExN01DetectorConstruction
|
|---|
| 529 | </h5><p>
|
|---|
| 530 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/include/ExN01DetectorConstruction.hh" target="_top">
|
|---|
| 531 | (header file)
|
|---|
| 532 | </a>
|
|---|
| 533 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/src/ExN01DetectorConstruction.cc" target="_top">
|
|---|
| 534 | (source file)
|
|---|
| 535 | </a>
|
|---|
| 536 |
|
|---|
| 537 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 538 | derived from G4VUserDetectorConstruction
|
|---|
| 539 | </p></li><li><p>
|
|---|
| 540 | definitions of single element materials
|
|---|
| 541 | </p></li><li><p>
|
|---|
| 542 | CSG solids
|
|---|
| 543 | </p></li><li><p>
|
|---|
| 544 | <span class="emphasis"><em>G4PVPlacement</em></span> without rotation
|
|---|
| 545 | </p></li></ul></div><p>
|
|---|
| 546 | </p><h5><a name="id534106"></a>
|
|---|
| 547 | ExN01PhysicsList
|
|---|
| 548 | </h5><p>
|
|---|
| 549 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/include/ExN01PhysicsList.hh" target="_top">
|
|---|
| 550 | (header file)
|
|---|
| 551 | </a>
|
|---|
| 552 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/src/ExN01PhysicsList.cc" target="_top">
|
|---|
| 553 | (source file)
|
|---|
| 554 | </a>
|
|---|
| 555 |
|
|---|
| 556 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 557 | derived from <span class="emphasis"><em>G4VUserPhysicsList</em></span>
|
|---|
| 558 | </p></li><li><p>
|
|---|
| 559 | definition of geantino
|
|---|
| 560 | </p></li><li><p>
|
|---|
| 561 | assignment of transportation process
|
|---|
| 562 | </p></li></ul></div><p>
|
|---|
| 563 | </p><h5><a name="id534154"></a>
|
|---|
| 564 | ExN01PrimaryGeneratorAction
|
|---|
| 565 | </h5><p>
|
|---|
| 566 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/include/ExN01PrimaryGeneratorAction.hh" target="_top">
|
|---|
| 567 | (header file)
|
|---|
| 568 | </a>
|
|---|
| 569 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/src/ExN01PrimaryGeneratorAction.cc" target="_top">
|
|---|
| 570 | (source file)
|
|---|
| 571 | </a>
|
|---|
| 572 |
|
|---|
| 573 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 574 | derived from <span class="emphasis"><em>G4VPrimaryGeneratorAction</em></span>
|
|---|
| 575 | </p></li><li><p>
|
|---|
| 576 | construction of <span class="emphasis"><em>G4ParticleGun</em></span>
|
|---|
| 577 | </p></li><li><p>
|
|---|
| 578 | primary event generation via particle gun
|
|---|
| 579 | </p></li></ul></div><p>
|
|---|
| 580 | </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="sect.ExmpNvc.Exmp02"></a>9.1.3.
|
|---|
| 581 | Example N02
|
|---|
| 582 | </h3></div></div></div><h5><a name="id534218"></a>
|
|---|
| 583 | Basic concepts
|
|---|
| 584 | </h5><p>
|
|---|
| 585 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 586 | Detector: fixed target type
|
|---|
| 587 | </p></li><li><p>
|
|---|
| 588 | Processes: EM
|
|---|
| 589 | </p></li><li><p>
|
|---|
| 590 | Hits: tracker type hits
|
|---|
| 591 | </p></li></ul></div><p>
|
|---|
| 592 | </p><h5><a name="id534250"></a>
|
|---|
| 593 | Classes
|
|---|
| 594 | </h5><p>
|
|---|
| 595 | <code class="literal">main()</code>
|
|---|
| 596 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/exampleN02.cc" target="_top">
|
|---|
| 597 | (source file)
|
|---|
| 598 | </a>
|
|---|
| 599 |
|
|---|
| 600 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 601 | <code class="literal">main()</code> for interactive mode (and batch mode via macro
|
|---|
| 602 | file)
|
|---|
| 603 | </p></li><li><p>
|
|---|
| 604 | construction and deletion of (G)UI session and
|
|---|
| 605 | <span class="emphasis"><em>VisManager</em></span>
|
|---|
| 606 | </p></li><li><p>
|
|---|
| 607 | random number engine
|
|---|
| 608 | </p></li><li><p>
|
|---|
| 609 | construction and deletion of <span class="emphasis"><em>G4RunManager</em></span>
|
|---|
| 610 | </p></li><li><p>
|
|---|
| 611 | construction and set of mandatory user classes
|
|---|
| 612 | </p></li></ul></div><p>
|
|---|
| 613 | </p><h5><a name="id534315"></a>
|
|---|
| 614 | ExN02DetectorConstruction
|
|---|
| 615 | </h5><p>
|
|---|
| 616 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/include/ExN02DetectorConstruction.hh" target="_top">
|
|---|
| 617 | (header file)
|
|---|
| 618 | </a>
|
|---|
| 619 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/src/ExN02DetectorConstruction.cc" target="_top">
|
|---|
| 620 | (source file)
|
|---|
| 621 | </a>
|
|---|
| 622 |
|
|---|
| 623 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 624 | derived from <span class="emphasis"><em>G4VUserDetectorConstruction</em></span>
|
|---|
| 625 | </p></li><li><p>
|
|---|
| 626 | definitions of single-element, mixture and compound materials
|
|---|
| 627 | </p></li><li><p>
|
|---|
| 628 | CSG solids
|
|---|
| 629 | </p></li><li><p>
|
|---|
| 630 | Uniform magnetic field: construction of
|
|---|
| 631 | <span class="emphasis"><em>ExN02MagneticField</em></span>
|
|---|
| 632 | </p></li><li><p>
|
|---|
| 633 | Physical Volumes
|
|---|
| 634 | </p><div class="itemizedlist"><ul type="circle" compact><li><p>
|
|---|
| 635 | <span class="emphasis"><em>G4Placement</em></span> volumes with & without rotation.
|
|---|
| 636 | </p></li><li><p>
|
|---|
| 637 | <span class="emphasis"><em>G4PVParameterised</em></span> volumes without rotation
|
|---|
| 638 | </p></li></ul></div><p>
|
|---|
| 639 | </p></li></ul></div><p>
|
|---|
| 640 | </p><h5><a name="id534398"></a>
|
|---|
| 641 | ExN02MagneticField
|
|---|
| 642 | </h5><p>
|
|---|
| 643 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/include/ExN02MagneticField.hh" target="_top">
|
|---|
| 644 | (header file)
|
|---|
| 645 | </a>
|
|---|
| 646 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/src/ExN02MagneticField.cc" target="_top">
|
|---|
| 647 | (source file)
|
|---|
| 648 | </a>
|
|---|
| 649 |
|
|---|
| 650 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 651 | derived from <span class="emphasis"><em>G4MagneticField</em></span>
|
|---|
| 652 | </p></li><li><p>
|
|---|
| 653 | Uniform field. <span class="emphasis"><em>ExN02MagneticField</em></span>
|
|---|
| 654 | </p></li></ul></div><p>
|
|---|
| 655 | </p><h5><a name="id534444"></a>
|
|---|
| 656 | ExN02PhysicsList
|
|---|
| 657 | </h5><p>
|
|---|
| 658 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/include/ExN02PhysicsList.hh" target="_top">
|
|---|
| 659 | (header file)
|
|---|
| 660 | </a>
|
|---|
| 661 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/src/ExN02PhysicsList.cc" target="_top">
|
|---|
| 662 | (source file)
|
|---|
| 663 | </a>
|
|---|
| 664 |
|
|---|
| 665 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 666 | derived from <span class="emphasis"><em>G4VUserPhysicsList</em></span>
|
|---|
| 667 | </p></li><li><p>
|
|---|
| 668 | definition of geantinos, electrons, positrons, gammas
|
|---|
| 669 | </p></li><li><p>
|
|---|
| 670 | utilisation of transportation and 'standard' EM-processes
|
|---|
| 671 | </p></li><li><p>
|
|---|
| 672 | Interactivity: chooses processes interactively (=> messenger class)
|
|---|
| 673 | </p></li></ul></div><p>
|
|---|
| 674 | </p><h5><a name="id534498"></a>
|
|---|
| 675 | ExN02PrimaryGeneratorAction
|
|---|
| 676 | </h5><p>
|
|---|
| 677 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/include/ExN02PrimaryGeneratorAction.hh" target="_top">
|
|---|
| 678 | (header file)
|
|---|
| 679 | </a>
|
|---|
| 680 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/src/ExN02PrimaryGeneratorAction.cc" target="_top">
|
|---|
| 681 | (source file)
|
|---|
| 682 | </a>
|
|---|
| 683 |
|
|---|
| 684 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 685 | derived from <span class="emphasis"><em>G4VPrimaryGeneratorAction</em></span>
|
|---|
| 686 | </p></li><li><p>
|
|---|
| 687 | construction of <span class="emphasis"><em>G4ParticleGun</em></span>
|
|---|
| 688 | </p></li><li><p>
|
|---|
| 689 | primary event generation via particle gun
|
|---|
| 690 | </p></li></ul></div><p>
|
|---|
| 691 | </p><h5><a name="id534549"></a>
|
|---|
| 692 | ExN02RunAction
|
|---|
| 693 | </h5><p>
|
|---|
| 694 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/include/ExN02RunAction.hh" target="_top">
|
|---|
| 695 | (header file)
|
|---|
| 696 | </a>
|
|---|
| 697 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/src/ExN02RunAction.cc" target="_top">
|
|---|
| 698 | (source file)
|
|---|
| 699 | </a>
|
|---|
| 700 |
|
|---|
| 701 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 702 | derived from <span class="emphasis"><em>G4VUserRunAction</em></span>
|
|---|
| 703 | </p></li><li><p>
|
|---|
| 704 | draw detector
|
|---|
| 705 | </p></li></ul></div><p>
|
|---|
| 706 | </p><h5><a name="id534592"></a>
|
|---|
| 707 | ExN02EventAction
|
|---|
| 708 | </h5><p>
|
|---|
| 709 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/include/ExN02EventAction.hh" target="_top">
|
|---|
| 710 | (header file)
|
|---|
| 711 | </a>
|
|---|
| 712 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/src/ExN02EventAction.cc" target="_top">
|
|---|
| 713 | (source file)
|
|---|
| 714 | </a>
|
|---|
| 715 |
|
|---|
| 716 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 717 | derived from <span class="emphasis"><em>G4VUserEventAction</em></span>
|
|---|
| 718 | </p></li><li><p>
|
|---|
| 719 | print time information
|
|---|
| 720 | </p></li></ul></div><p>
|
|---|
| 721 | </p><h5><a name="id534635"></a>
|
|---|
| 722 | ExN02TrackerSD
|
|---|
| 723 | </h5><p>
|
|---|
| 724 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/include/ExN02TrackerSD.hh" target="_top">
|
|---|
| 725 | (header file)
|
|---|
| 726 | </a>
|
|---|
| 727 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/src/ExN02TrackerSD.cc" target="_top">
|
|---|
| 728 | (source file)
|
|---|
| 729 | </a>
|
|---|
| 730 |
|
|---|
| 731 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 732 | derived from <span class="emphasis"><em>G4VSensitiveDetector</em></span>
|
|---|
| 733 | </p></li><li><p>
|
|---|
| 734 | tracker-type hit generation
|
|---|
| 735 | </p></li></ul></div><p>
|
|---|
| 736 | </p><h5><a name="id534678"></a>
|
|---|
| 737 | ExN02TrackerHit
|
|---|
| 738 | </h5><p>
|
|---|
| 739 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/include/ExN02TrackerHit.hh" target="_top">
|
|---|
| 740 | (header file)
|
|---|
| 741 | </a>
|
|---|
| 742 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/src/ExN02TrackerHit.cc" target="_top">
|
|---|
| 743 | (source file)
|
|---|
| 744 | </a>
|
|---|
| 745 |
|
|---|
| 746 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 747 | derived from <span class="emphasis"><em>G4VHit</em></span>
|
|---|
| 748 | </p></li><li><p>
|
|---|
| 749 | draw hit point
|
|---|
| 750 | </p></li></ul></div><p>
|
|---|
| 751 | </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="sect.ExmpNvc.Exmp03"></a>9.1.4.
|
|---|
| 752 | Example N03
|
|---|
| 753 | </h3></div></div></div><h5><a name="id534734"></a>
|
|---|
| 754 | Basic concepts
|
|---|
| 755 | </h5><p>
|
|---|
| 756 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 757 | Visualize Em processes.
|
|---|
| 758 | </p></li><li><p>
|
|---|
| 759 | Interactivity: build messenger classes.
|
|---|
| 760 | </p></li><li><p>
|
|---|
| 761 | Gun: shoot particle randomly.
|
|---|
| 762 | </p></li><li><p>
|
|---|
| 763 | Tracking: collect energy deposition, total track length
|
|---|
| 764 | </p></li></ul></div><p>
|
|---|
| 765 | </p><h5><a name="id534770"></a>
|
|---|
| 766 | Classes
|
|---|
| 767 | </h5><p>
|
|---|
| 768 | <code class="literal">main()</code>
|
|---|
| 769 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/exampleN03.cc" target="_top">
|
|---|
| 770 | (source file)
|
|---|
| 771 | </a>
|
|---|
| 772 |
|
|---|
| 773 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 774 | <code class="literal">main()</code> for interactive mode and batch mode via macro
|
|---|
| 775 | file
|
|---|
| 776 | </p></li><li><p>
|
|---|
| 777 | construction and deletion of <span class="emphasis"><em>G4RunManager</em></span>
|
|---|
| 778 | </p></li><li><p>
|
|---|
| 779 | construction and deletion of (G)UI session and
|
|---|
| 780 | <span class="emphasis"><em>VisManager</em></span>
|
|---|
| 781 | </p></li><li><p>
|
|---|
| 782 | construction and set of mandatory user classes
|
|---|
| 783 | </p></li><li><p>
|
|---|
| 784 | automatic initialization of geometry and visualization via a
|
|---|
| 785 | macro file
|
|---|
| 786 | </p></li></ul></div><p>
|
|---|
| 787 | </p><h5><a name="id534836"></a>
|
|---|
| 788 | ExN03DetectorConstruction
|
|---|
| 789 | </h5><p>
|
|---|
| 790 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/include/ExN03DetectorConstruction.hh" target="_top">
|
|---|
| 791 | (header file)
|
|---|
| 792 | </a>
|
|---|
| 793 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/src/ExN03DetectorConstruction.cc" target="_top">
|
|---|
| 794 | (source file)
|
|---|
| 795 | </a>
|
|---|
| 796 |
|
|---|
| 797 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 798 | derived from <span class="emphasis"><em>G4VUserDetectorConstruction</em></span>
|
|---|
| 799 | </p></li><li><p>
|
|---|
| 800 | definitions of single materials and mixtures
|
|---|
| 801 | </p></li><li><p>
|
|---|
| 802 | CSG solids
|
|---|
| 803 | </p></li><li><p>
|
|---|
| 804 | <span class="emphasis"><em>G4PVPlacement</em></span> without rotation
|
|---|
| 805 | </p></li><li><p>
|
|---|
| 806 | Interactivity: change detector size, material, magnetic field.
|
|---|
| 807 | (=>messenger class)
|
|---|
| 808 | </p></li><li><p>
|
|---|
| 809 | visualization
|
|---|
| 810 | </p></li></ul></div><p>
|
|---|
| 811 | </p><h5><a name="id534902"></a>
|
|---|
| 812 | ExN03PhysicsList
|
|---|
| 813 | </h5><p>
|
|---|
| 814 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/include/ExN03PhysicsList.hh" target="_top">
|
|---|
| 815 | (header file)
|
|---|
| 816 | </a>
|
|---|
| 817 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/src/ExN03PhysicsList.cc" target="_top">
|
|---|
| 818 | (source file)
|
|---|
| 819 | </a>
|
|---|
| 820 |
|
|---|
| 821 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 822 | derived from <span class="emphasis"><em>G4VUserPhysicsList</em></span>
|
|---|
| 823 | </p></li><li><p>
|
|---|
| 824 | definition of geantinos, gamma, leptons, light mesons barions
|
|---|
| 825 | and ions
|
|---|
| 826 | </p></li><li><p>
|
|---|
| 827 | Transportation process, 'standard' Em processes, Decay
|
|---|
| 828 | </p></li><li><p>
|
|---|
| 829 | Interactivity: <span class="emphasis"><em>SetCut</em></span>, process on/off. (=> messenger
|
|---|
| 830 | class)
|
|---|
| 831 | </p></li></ul></div><p>
|
|---|
| 832 | </p><h5><a name="id534960"></a>
|
|---|
| 833 | ExN03PrimaryGeneratorAction
|
|---|
| 834 | </h5><p>
|
|---|
| 835 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/include/ExN03PrimaryGeneratorAction.hh" target="_top">
|
|---|
| 836 | (header file)
|
|---|
| 837 | </a>
|
|---|
| 838 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/src/ExN03PrimaryGeneratorAction.cc" target="_top">
|
|---|
| 839 | (source file)
|
|---|
| 840 | </a>
|
|---|
| 841 |
|
|---|
| 842 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 843 | derived from <span class="emphasis"><em>G4VPrimaryGeneratorAction</em></span>
|
|---|
| 844 | </p></li><li><p>
|
|---|
| 845 | construction of <span class="emphasis"><em>G4ParticleGun</em></span>
|
|---|
| 846 | </p></li><li><p>
|
|---|
| 847 | primary event generation via particle gun
|
|---|
| 848 | </p></li><li><p>
|
|---|
| 849 | Interactivity: shoot particle randomly. (=> messenger
|
|---|
| 850 | class)
|
|---|
| 851 | </p></li></ul></div><p>
|
|---|
| 852 | </p><h5><a name="id535016"></a>
|
|---|
| 853 | ExN03RunAction
|
|---|
| 854 | </h5><p>
|
|---|
| 855 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/include/ExN03RunAction.hh" target="_top">
|
|---|
| 856 | (header file)
|
|---|
| 857 | </a>
|
|---|
| 858 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/src/ExN03RunAction.cc" target="_top">
|
|---|
| 859 | (source file)
|
|---|
| 860 | </a>
|
|---|
| 861 |
|
|---|
| 862 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 863 | derived from <span class="emphasis"><em>G4VUserRunAction</em></span>
|
|---|
| 864 | </p></li><li><p>
|
|---|
| 865 | draw detector and tracks
|
|---|
| 866 | </p></li><li><p>
|
|---|
| 867 | Interactivity: <span class="emphasis"><em>SetCut,</em></span> process on/off.
|
|---|
| 868 | </p></li><li><p>
|
|---|
| 869 | Interactivity: change detector size, material, magnetic field.
|
|---|
| 870 | </p></li></ul></div><p>
|
|---|
| 871 | </p><h5><a name="id535072"></a>
|
|---|
| 872 | ExN03EventAction
|
|---|
| 873 | </h5><p>
|
|---|
| 874 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN03EventAction.hh" target="_top">
|
|---|
| 875 | (header file)
|
|---|
| 876 | </a>
|
|---|
| 877 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN03EventAction.cc" target="_top">
|
|---|
| 878 | (source file)
|
|---|
| 879 | </a>
|
|---|
| 880 |
|
|---|
| 881 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 882 | derived from <span class="emphasis"><em>G4VUserEventAction</em></span>
|
|---|
| 883 | </p></li><li><p>
|
|---|
| 884 | store trajectories
|
|---|
| 885 | </p></li><li><p>
|
|---|
| 886 | print end of event information (energy deposited, etc.)
|
|---|
| 887 | </p></li></ul></div><p>
|
|---|
| 888 | </p><h5><a name="id535120"></a>
|
|---|
| 889 | ExN03SteppingAction
|
|---|
| 890 | </h5><p>
|
|---|
| 891 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/include/ExN03SteppingAction.hh" target="_top">
|
|---|
| 892 | (header file)
|
|---|
| 893 | </a>
|
|---|
| 894 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/src/ExN03SteppingAction.cc" target="_top">
|
|---|
| 895 | (source file)
|
|---|
| 896 | </a>
|
|---|
| 897 |
|
|---|
| 898 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 899 | derived from <span class="emphasis"><em>G4VUserSteppingAction</em></span>
|
|---|
| 900 | </p></li><li><p>
|
|---|
| 901 | collect energy deposition, etc.
|
|---|
| 902 | </p></li></ul></div><p>
|
|---|
| 903 | </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="sect.ExmpNvc.Exmp04"></a>9.1.5.
|
|---|
| 904 | Example N04
|
|---|
| 905 | </h3></div></div></div><h5><a name="id535177"></a>
|
|---|
| 906 | Basic concepts
|
|---|
| 907 | </h5><p>
|
|---|
| 908 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 909 | Simplified collider experiment geometry
|
|---|
| 910 | </p></li><li><p>
|
|---|
| 911 | Full hits/digits/trigger
|
|---|
| 912 | </p></li></ul></div><p>
|
|---|
| 913 | </p><h5><a name="id535204"></a>
|
|---|
| 914 | Classes
|
|---|
| 915 | </h5><p>
|
|---|
| 916 | <code class="literal">main()</code>
|
|---|
| 917 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/exampleN04.cc" target="_top">
|
|---|
| 918 | (source file)
|
|---|
| 919 | </a>
|
|---|
| 920 |
|
|---|
| 921 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 922 | construction and deletion of <span class="emphasis"><em>ExN04RunManager</em></span>
|
|---|
| 923 | </p></li><li><p>
|
|---|
| 924 | construction and deletion of (G)UI session and
|
|---|
| 925 | <span class="emphasis"><em>VisManager</em></span>
|
|---|
| 926 | </p></li><li><p>
|
|---|
| 927 | construction and set of user classes
|
|---|
| 928 | </p></li></ul></div><p>
|
|---|
| 929 | </p><h5><a name="id535254"></a>
|
|---|
| 930 | ExN04DetectorConstruction
|
|---|
| 931 | </h5><p>
|
|---|
| 932 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04DetectorConstruction.hh" target="_top">
|
|---|
| 933 | (header file)
|
|---|
| 934 | </a>
|
|---|
| 935 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04DetectorConstruction.cc" target="_top">
|
|---|
| 936 | (source file)
|
|---|
| 937 | </a>
|
|---|
| 938 |
|
|---|
| 939 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 940 | derived from <span class="emphasis"><em>G4VUserDetectorConstruction</em></span>
|
|---|
| 941 | </p></li><li><p>
|
|---|
| 942 | construction of <span class="emphasis"><em>ExN04MagneticField</em></span>
|
|---|
| 943 | </p></li><li><p>
|
|---|
| 944 | definitions of mixture and compound materials
|
|---|
| 945 | </p></li><li><p>
|
|---|
| 946 | material-dependent CutOff
|
|---|
| 947 | </p></li><li><p>
|
|---|
| 948 | simplified collider geometry with Param/Replica
|
|---|
| 949 | </p></li><li><p>
|
|---|
| 950 | tracker/muon -- parametrised
|
|---|
| 951 | </p></li><li><p>
|
|---|
| 952 | calorimeter -- replica</p></li></ul></div><p>
|
|---|
| 953 | </p><h5><a name="id535324"></a>
|
|---|
| 954 | ExN04TrackerParametrisation
|
|---|
| 955 | </h5><p>
|
|---|
| 956 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04TrackerParametrisation.hh" target="_top">
|
|---|
| 957 | (header file)
|
|---|
| 958 | </a>
|
|---|
| 959 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04TrackerParametrisation.cc" target="_top">
|
|---|
| 960 | (source file)
|
|---|
| 961 | </a>
|
|---|
| 962 |
|
|---|
| 963 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 964 | derived from <span class="emphasis"><em>G4VPVParametrisation</em></span>
|
|---|
| 965 | </p></li><li><p>
|
|---|
| 966 | parametrised sizes
|
|---|
| 967 | </p></li></ul></div><p>
|
|---|
| 968 | </p><h5><a name="id535367"></a>
|
|---|
| 969 | ExN04CalorimeterParametrisation
|
|---|
| 970 | </h5><p>
|
|---|
| 971 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04CalorimeterParametrisation.hh" target="_top">
|
|---|
| 972 | (header file)
|
|---|
| 973 | </a>
|
|---|
| 974 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04CalorimeterParametrisation.cc" target="_top">
|
|---|
| 975 | (source file)
|
|---|
| 976 | </a>
|
|---|
| 977 |
|
|---|
| 978 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 979 | derived from <span class="emphasis"><em>G4VPVParametrisation</em></span>
|
|---|
| 980 | </p></li><li><p>
|
|---|
| 981 | parametrized position/rotation
|
|---|
| 982 | </p></li></ul></div><p>
|
|---|
| 983 | </p><h5><a name="id535410"></a>
|
|---|
| 984 | ExN04MagneticField
|
|---|
| 985 | </h5><p>
|
|---|
| 986 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04MagneticField.hh" target="_top">
|
|---|
| 987 | (header file)
|
|---|
| 988 | </a>
|
|---|
| 989 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04MagneticField.cc" target="_top">
|
|---|
| 990 | (source file)
|
|---|
| 991 | </a>
|
|---|
| 992 |
|
|---|
| 993 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 994 | derived from <span class="emphasis"><em>G4MagneticField</em></span>
|
|---|
| 995 | </p></li><li><p>
|
|---|
| 996 | solenoid and toroidal fields
|
|---|
| 997 | </p></li></ul></div><p>
|
|---|
| 998 | </p><h5><a name="id535453"></a>
|
|---|
| 999 | ExN04TrackerSD
|
|---|
| 1000 | </h5><p>
|
|---|
| 1001 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04TrackerSD.hh" target="_top">
|
|---|
| 1002 | (header file)
|
|---|
| 1003 | </a>
|
|---|
| 1004 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/src/ExN04TrackerSD.cc" target="_top">
|
|---|
| 1005 | (source file)
|
|---|
| 1006 | </a>
|
|---|
| 1007 |
|
|---|
| 1008 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1009 | derived from <span class="emphasis"><em>G4VSensitiveDetector</em></span>
|
|---|
| 1010 | </p></li><li><p>
|
|---|
| 1011 | tracker-type hit generation
|
|---|
| 1012 | </p></li></ul></div><p>
|
|---|
| 1013 | </p><h5><a name="id535496"></a>
|
|---|
| 1014 | ExN04TrackerHit
|
|---|
| 1015 | </h5><p>
|
|---|
| 1016 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04TrackerHit.hh" target="_top">
|
|---|
| 1017 | (header file)
|
|---|
| 1018 | </a>
|
|---|
| 1019 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04TrackerHit.cc" target="_top">
|
|---|
| 1020 | (source file)
|
|---|
| 1021 | </a>
|
|---|
| 1022 |
|
|---|
| 1023 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1024 | derived from <span class="emphasis"><em>G4VHit</em></span>
|
|---|
| 1025 | </p></li><li><p>
|
|---|
| 1026 | draw hit point
|
|---|
| 1027 | </p></li></ul></div><p>
|
|---|
| 1028 | </p><h5><a name="id535539"></a>
|
|---|
| 1029 | ExN04CalorimeterSD
|
|---|
| 1030 | </h5><p>
|
|---|
| 1031 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04CalorimeterSD.hh" target="_top">
|
|---|
| 1032 | (header file)
|
|---|
| 1033 | </a>
|
|---|
| 1034 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04CalorimeterSD.cc" target="_top">
|
|---|
| 1035 | (source file)
|
|---|
| 1036 | </a>
|
|---|
| 1037 |
|
|---|
| 1038 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1039 | derived from <span class="emphasis"><em>G4VSensitiveDetector</em></span>
|
|---|
| 1040 | </p></li><li><p>
|
|---|
| 1041 | calorimeter-type hit generation
|
|---|
| 1042 | </p></li></ul></div><p>
|
|---|
| 1043 | </p><h5><a name="id535582"></a>
|
|---|
| 1044 | ExN04CalorimeterHit
|
|---|
| 1045 | </h5><p>
|
|---|
| 1046 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04CalorimeterHit.hh" target="_top">
|
|---|
| 1047 | (header file)
|
|---|
| 1048 | </a>
|
|---|
| 1049 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04CalorimeterHit.cc" target="_top">
|
|---|
| 1050 | (source file)
|
|---|
| 1051 | </a>
|
|---|
| 1052 |
|
|---|
| 1053 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1054 | derived from <span class="emphasis"><em>G4VHit</em></span>
|
|---|
| 1055 | </p></li><li><p>
|
|---|
| 1056 | draw physical volume with variable color
|
|---|
| 1057 | </p></li></ul></div><p>
|
|---|
| 1058 | </p><h5><a name="id535625"></a>
|
|---|
| 1059 | ExN04MuonSD
|
|---|
| 1060 | </h5><p>
|
|---|
| 1061 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/include/ExN04MuonSD.hh" target="_top">
|
|---|
| 1062 | (header file)
|
|---|
| 1063 | </a>
|
|---|
| 1064 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/src/ExN04MuonSD.cc" target="_top">
|
|---|
| 1065 | (source file)
|
|---|
| 1066 | </a>
|
|---|
| 1067 |
|
|---|
| 1068 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1069 | derived from <span class="emphasis"><em>G4VSensitiveDetector</em></span>
|
|---|
| 1070 | </p></li><li><p>
|
|---|
| 1071 | Scintillator-type hit generation
|
|---|
| 1072 | </p></li></ul></div><p>
|
|---|
| 1073 | </p><h5><a name="id535667"></a>
|
|---|
| 1074 | ExN04MuonHit
|
|---|
| 1075 | </h5><p>
|
|---|
| 1076 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04MuonHit.hh" target="_top">
|
|---|
| 1077 | (header file)
|
|---|
| 1078 | </a>
|
|---|
| 1079 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04MuonHit.cc" target="_top">
|
|---|
| 1080 | (source file)
|
|---|
| 1081 | </a>
|
|---|
| 1082 |
|
|---|
| 1083 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1084 | derived from <span class="emphasis"><em>G4VHit</em></span>
|
|---|
| 1085 | </p></li><li><p>
|
|---|
| 1086 | draw physical volume with variable color
|
|---|
| 1087 | </p></li></ul></div><p>
|
|---|
| 1088 | </p><h5><a name="id535710"></a>
|
|---|
| 1089 | ExN04PrimaryGeneratorAction
|
|---|
| 1090 | </h5><p>
|
|---|
| 1091 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04PrimaryGeneratorAction.hh" target="_top">
|
|---|
| 1092 | (header file)
|
|---|
| 1093 | </a>
|
|---|
| 1094 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04PrimaryGeneratorAction.cc" target="_top">
|
|---|
| 1095 | (source file)
|
|---|
| 1096 | </a>
|
|---|
| 1097 |
|
|---|
| 1098 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1099 | derived from <span class="emphasis"><em>G4VPrimaryGeneratorAction</em></span>
|
|---|
| 1100 | </p></li><li><p>
|
|---|
| 1101 | construction of <span class="emphasis"><em>G4HEPEvtInterface</em></span>
|
|---|
| 1102 | </p></li><li><p>
|
|---|
| 1103 | primary event generation with PYTHIA event
|
|---|
| 1104 | </p></li></ul></div><p>
|
|---|
| 1105 | </p><h5><a name="id535762"></a>
|
|---|
| 1106 | ExN04EventAction
|
|---|
| 1107 | </h5><p>
|
|---|
| 1108 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04EventAction.hh" target="_top">
|
|---|
| 1109 | (header file)
|
|---|
| 1110 | </a>
|
|---|
| 1111 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04EventAction.cc" target="_top">
|
|---|
| 1112 | (source file)
|
|---|
| 1113 | </a>
|
|---|
| 1114 |
|
|---|
| 1115 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1116 | store the initial seeds
|
|---|
| 1117 | </p></li></ul></div><p>
|
|---|
| 1118 | </p><h5><a name="id535797"></a>
|
|---|
| 1119 | ExN04StackingAction
|
|---|
| 1120 | </h5><p>
|
|---|
| 1121 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04StackingAction.hh" target="_top">
|
|---|
| 1122 | (header file)
|
|---|
| 1123 | </a>
|
|---|
| 1124 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04StackingAction.cc" target="_top">
|
|---|
| 1125 | (source file)
|
|---|
| 1126 | </a>
|
|---|
| 1127 |
|
|---|
| 1128 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1129 | derived from <span class="emphasis"><em>G4UserStackingAction</em></span>
|
|---|
| 1130 | </p></li><li><p>
|
|---|
| 1131 | ``stage'' control and priority control
|
|---|
| 1132 | </p></li><li><p>
|
|---|
| 1133 | event abortion
|
|---|
| 1134 | </p></li></ul></div><p>
|
|---|
| 1135 | </p><h5><a name="id535844"></a>
|
|---|
| 1136 | ExN04StackingActionMessenger
|
|---|
| 1137 | </h5><p>
|
|---|
| 1138 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04StackingActionMessenger.hh" target="_top">
|
|---|
| 1139 | (header file)
|
|---|
| 1140 | </a>
|
|---|
| 1141 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04StackingActionMessenger.cc" target="_top">
|
|---|
| 1142 | (source file)
|
|---|
| 1143 | </a>
|
|---|
| 1144 |
|
|---|
| 1145 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1146 | derived from <span class="emphasis"><em>G4UImessenger</em></span>
|
|---|
| 1147 | </p></li><li><p>
|
|---|
| 1148 | define abortion conditions
|
|---|
| 1149 | </p></li></ul></div><p>
|
|---|
| 1150 | </p><h5><a name="id535887"></a>
|
|---|
| 1151 | ExN04TrackingAction
|
|---|
| 1152 | </h5><p>
|
|---|
| 1153 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04TrackingAction.hh" target="_top">
|
|---|
| 1154 | (header file)
|
|---|
| 1155 | </a>
|
|---|
| 1156 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04TrackingAction.cc" target="_top">
|
|---|
| 1157 | (source file)
|
|---|
| 1158 | </a>
|
|---|
| 1159 |
|
|---|
| 1160 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1161 | derived from <span class="emphasis"><em>G4UserTrackingAction</em></span>
|
|---|
| 1162 | </p></li><li><p>
|
|---|
| 1163 | select trajectories
|
|---|
| 1164 | </p></li><li><p>
|
|---|
| 1165 | select secondaries
|
|---|
| 1166 | </p></li></ul></div><p>
|
|---|
| 1167 | </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="sect.ExmpNvc.Exmp05"></a>9.1.6.
|
|---|
| 1168 | Example N05
|
|---|
| 1169 | </h3></div></div></div><h5><a name="id535949"></a>
|
|---|
| 1170 | Basic concepts
|
|---|
| 1171 | </h5><p>
|
|---|
| 1172 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1173 | Use of shower parameterisation:
|
|---|
| 1174 | </p><div class="itemizedlist"><ul type="circle" compact><li><p>
|
|---|
| 1175 | definition of an EM shower model
|
|---|
| 1176 | </p></li><li><p>
|
|---|
| 1177 | assignment to a Logical Volume
|
|---|
| 1178 | </p></li><li><p>
|
|---|
| 1179 | (definition of ghost volume when ready)
|
|---|
| 1180 | </p></li></ul></div><p>
|
|---|
| 1181 | </p></li><li><p>
|
|---|
| 1182 | Interactivity: build of messengers classes
|
|---|
| 1183 | </p></li><li><p>
|
|---|
| 1184 | Hits/Digi: filled from detailed and parameterised simulation
|
|---|
| 1185 | (calorimeter type hits ?)
|
|---|
| 1186 | </p></li></ul></div><p>
|
|---|
| 1187 | </p><h5><a name="id536001"></a>
|
|---|
| 1188 | Classes
|
|---|
| 1189 | </h5><p>
|
|---|
| 1190 | <code class="literal">main()</code>
|
|---|
| 1191 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/exampleN05.cc" target="_top">
|
|---|
| 1192 | (source file)
|
|---|
| 1193 | </a>
|
|---|
| 1194 |
|
|---|
| 1195 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1196 | <code class="literal">main()</code> for interactive mode
|
|---|
| 1197 | </p></li><li><p>
|
|---|
| 1198 | construction and deletion of <span class="emphasis"><em>G4RunManager</em></span>
|
|---|
| 1199 | </p></li><li><p>
|
|---|
| 1200 | construction and set of mandatory user classes
|
|---|
| 1201 | </p></li><li><p>
|
|---|
| 1202 | construction of the <span class="emphasis"><em>G4GlobalFastSimulationmanager</em></span>
|
|---|
| 1203 | </p></li><li><p>
|
|---|
| 1204 | construction of a <span class="emphasis"><em>G4FastSimulationManager</em></span> to assign fast
|
|---|
| 1205 | simulation model to a logical volume (envelope)
|
|---|
| 1206 | </p></li><li><p>
|
|---|
| 1207 | (definition of ghost volume for parameterisation)
|
|---|
| 1208 | </p></li><li><p>
|
|---|
| 1209 | construction EM physics shower fast simulation model
|
|---|
| 1210 | </p></li></ul></div><p>
|
|---|
| 1211 | </p><h5><a name="id536080"></a>
|
|---|
| 1212 | ExN05EMShowerModel
|
|---|
| 1213 | </h5><p>
|
|---|
| 1214 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/include/ExN05EMShowerModel.hh" target="_top">
|
|---|
| 1215 | (header file)
|
|---|
| 1216 | </a>
|
|---|
| 1217 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/src/ExN05EMShowerModel.cc" target="_top">
|
|---|
| 1218 | (source file)
|
|---|
| 1219 | </a>
|
|---|
| 1220 |
|
|---|
| 1221 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1222 | derived from <span class="emphasis"><em>G4VFastSimulationModel</em></span>
|
|---|
| 1223 | </p></li><li><p>
|
|---|
| 1224 | energy deposition in sensitive detector
|
|---|
| 1225 | </p></li></ul></div><p>
|
|---|
| 1226 | </p><h5><a name="id536123"></a>
|
|---|
| 1227 | ExN05PionShowerModel
|
|---|
| 1228 | </h5><p>
|
|---|
| 1229 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/include/ExN05PionShowerModel.hh" target="_top">
|
|---|
| 1230 | (header file)
|
|---|
| 1231 | </a>
|
|---|
| 1232 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/src/ExN05PionShowerModel.cc" target="_top">
|
|---|
| 1233 | (source file)
|
|---|
| 1234 | </a>
|
|---|
| 1235 |
|
|---|
| 1236 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1237 | derived from <span class="emphasis"><em>G4VFastSimulationModel</em></span>
|
|---|
| 1238 | </p></li><li><p>
|
|---|
| 1239 | energy deposition in sensitive detector
|
|---|
| 1240 | </p></li></ul></div><p>
|
|---|
| 1241 | </p><h5><a name="id536166"></a>
|
|---|
| 1242 | ExN05DetectorConstruction
|
|---|
| 1243 | </h5><p>
|
|---|
| 1244 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/include/ExN05DetectorConstruction.hh" target="_top">
|
|---|
| 1245 | (header file)
|
|---|
| 1246 | </a>
|
|---|
| 1247 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/src/ExN05DetectorConstruction.cc" target="_top">
|
|---|
| 1248 | (source file)
|
|---|
| 1249 | </a>
|
|---|
| 1250 |
|
|---|
| 1251 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1252 | derived from <span class="emphasis"><em>G4VUserDetectorConstruction</em></span>
|
|---|
| 1253 | </p></li><li><p>
|
|---|
| 1254 | definitions of single materials and mixtures
|
|---|
| 1255 | </p></li><li><p>
|
|---|
| 1256 | CSG solids
|
|---|
| 1257 | </p></li><li><p>
|
|---|
| 1258 | <span class="emphasis"><em>G4PVPlacement</em></span>
|
|---|
| 1259 | </p></li></ul></div><p>
|
|---|
| 1260 | </p><h5><a name="id536221"></a>
|
|---|
| 1261 | ExN05PhysicsList
|
|---|
| 1262 | </h5><p>
|
|---|
| 1263 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/include/ExN05PhysicsList.hh" target="_top">
|
|---|
| 1264 | (header file)
|
|---|
| 1265 | </a>
|
|---|
| 1266 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/src/ExN05PhysicsList.cc" target="_top">
|
|---|
| 1267 | (source file)
|
|---|
| 1268 | </a>
|
|---|
| 1269 |
|
|---|
| 1270 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1271 | derived from <span class="emphasis"><em>G4VUserPhysicsList</em></span>
|
|---|
| 1272 | </p></li><li><p>
|
|---|
| 1273 | assignment of <span class="emphasis"><em>G4FastSimulationManagerProcess</em></span>
|
|---|
| 1274 | </p></li></ul></div><p>
|
|---|
| 1275 | </p><h5><a name="id536268"></a>
|
|---|
| 1276 | ExN05PrimaryGeneratorAction
|
|---|
| 1277 | </h5><p>
|
|---|
| 1278 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/include/ExN05PrimaryGeneratorAction.hh" target="_top">
|
|---|
| 1279 | (header file)
|
|---|
| 1280 | </a>
|
|---|
| 1281 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/src/ExN05PrimaryGeneratorAction.cc" target="_top">
|
|---|
| 1282 | (source file)
|
|---|
| 1283 | </a>
|
|---|
| 1284 |
|
|---|
| 1285 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1286 | derived from <span class="emphasis"><em>G4VPrimaryGeneratorAction</em></span>
|
|---|
| 1287 | </p></li><li><p>
|
|---|
| 1288 | construction of <span class="emphasis"><em>G4ParticleGun</em></span>
|
|---|
| 1289 | </p></li><li><p>
|
|---|
| 1290 | primary event generation via particle gun
|
|---|
| 1291 | </p></li></ul></div><p>
|
|---|
| 1292 | </p><h5><a name="id536319"></a>
|
|---|
| 1293 | ExN05RunAction
|
|---|
| 1294 | </h5><p>
|
|---|
| 1295 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/include/ExN05RunAction.hh" target="_top">
|
|---|
| 1296 | (header file)
|
|---|
| 1297 | </a>
|
|---|
| 1298 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/src/ExN05RunAction.cc" target="_top">
|
|---|
| 1299 | (source file)
|
|---|
| 1300 | </a>
|
|---|
| 1301 |
|
|---|
| 1302 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1303 | derived from <span class="emphasis"><em>G4VUserRunAction</em></span>
|
|---|
| 1304 | </p></li><li><p>
|
|---|
| 1305 | draw detector
|
|---|
| 1306 | </p></li><li><p>
|
|---|
| 1307 | (activation/deactivation of parameterisation ?)
|
|---|
| 1308 | </p></li></ul></div><p>
|
|---|
| 1309 | </p><h5><a name="id536367"></a>
|
|---|
| 1310 | ExN05EventAction
|
|---|
| 1311 | </h5><p>
|
|---|
| 1312 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/include/ExN05EventAction.hh" target="_top">
|
|---|
| 1313 | (header file)
|
|---|
| 1314 | </a>
|
|---|
| 1315 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/src/ExN05EventAction.cc" target="_top">
|
|---|
| 1316 | (source file)
|
|---|
| 1317 | </a>
|
|---|
| 1318 |
|
|---|
| 1319 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1320 | derived from <span class="emphasis"><em>G4VUserEventAction</em></span>
|
|---|
| 1321 | </p></li><li><p>
|
|---|
| 1322 | print time information
|
|---|
| 1323 | </p></li></ul></div><p>
|
|---|
| 1324 | </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="sect.ExmpNvc.Exmp06"></a>9.1.7.
|
|---|
| 1325 | Example N06
|
|---|
| 1326 | </h3></div></div></div><h5><a name="id536424"></a>
|
|---|
| 1327 | Basic concepts
|
|---|
| 1328 | </h5><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1329 | Interactivity : build messenger classes.
|
|---|
| 1330 | </p></li><li><p>
|
|---|
| 1331 | Event : Gun, shoot charge particle at Cerenkov Radiator and Scintillator.
|
|---|
| 1332 | </p></li><li><p>
|
|---|
| 1333 | PIIM : material/mixture with optical and scintillation properties.
|
|---|
| 1334 | </p></li><li><p>
|
|---|
| 1335 | Geometry : volumes filled with optical materials and possessing
|
|---|
| 1336 | surface properties.
|
|---|
| 1337 | </p></li><li><p>
|
|---|
| 1338 | Physics : define and initialize optical processes.
|
|---|
| 1339 | </p></li><li><p>
|
|---|
| 1340 | Tracking : generate Cerenkov radiation, collect energy
|
|---|
| 1341 | deposition to produce scintillation.
|
|---|
| 1342 | </p></li><li><p>
|
|---|
| 1343 | Hits/Digi : PMT as detector.
|
|---|
| 1344 | </p></li><li><p>
|
|---|
| 1345 | Visualization : geometry, optical photon trajectories.
|
|---|
| 1346 | </p></li></ul></div><h5><a name="id536477"></a>
|
|---|
| 1347 | Classes
|
|---|
| 1348 | </h5><p>
|
|---|
| 1349 | <code class="literal">main()</code>
|
|---|
| 1350 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/exampleN06.cc" target="_top">
|
|---|
| 1351 | (source file)
|
|---|
| 1352 | </a>
|
|---|
| 1353 |
|
|---|
| 1354 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1355 | <code class="literal">main()</code> for interactive mode and batch mode via macro
|
|---|
| 1356 | file
|
|---|
| 1357 | </p></li><li><p>
|
|---|
| 1358 | random number engine
|
|---|
| 1359 | </p></li><li><p>
|
|---|
| 1360 | construction and deletion of <span class="emphasis"><em>G4RunManager</em></span>
|
|---|
| 1361 | </p></li><li><p>
|
|---|
| 1362 | construction and set of mandatory user classes
|
|---|
| 1363 | </p></li><li><p>
|
|---|
| 1364 | hard coded <code class="literal">beamOn</code>
|
|---|
| 1365 | </p></li></ul></div><p>
|
|---|
| 1366 | </p><h5><a name="id536545"></a>
|
|---|
| 1367 | ExN06DetectorConstruction
|
|---|
| 1368 | </h5><p>
|
|---|
| 1369 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/include/ExN06DetectorConstruction.hh" target="_top">
|
|---|
| 1370 | (header file)
|
|---|
| 1371 | </a>
|
|---|
| 1372 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/src/ExN06DetectorConstruction.cc" target="_top">
|
|---|
| 1373 | (source file)
|
|---|
| 1374 | </a>
|
|---|
| 1375 |
|
|---|
| 1376 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1377 | derived from <span class="emphasis"><em>G4VUserDetectorConstruction</em></span>
|
|---|
| 1378 | </p></li><li><p>
|
|---|
| 1379 | definitions of single materials and mixtures
|
|---|
| 1380 | </p></li><li><p>
|
|---|
| 1381 | generate and add Material Properties Table to materials
|
|---|
| 1382 | </p></li><li><p>
|
|---|
| 1383 | CSG and BREP solids
|
|---|
| 1384 | </p></li><li><p>
|
|---|
| 1385 | <span class="emphasis"><em>G4PVPlacement</em></span> with rotation
|
|---|
| 1386 | </p></li><li><p>
|
|---|
| 1387 | definition of surfaces
|
|---|
| 1388 | </p></li><li><p>
|
|---|
| 1389 | generate and add Material Properties Table to surfaces
|
|---|
| 1390 | </p></li><li><p>
|
|---|
| 1391 | visualization
|
|---|
| 1392 | </p></li></ul></div><p>
|
|---|
| 1393 | </p><h5><a name="id536620"></a>
|
|---|
| 1394 | ExN06PhysicsList
|
|---|
| 1395 | </h5><p>
|
|---|
| 1396 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/include/ExN06PhysicsList.hh" target="_top">
|
|---|
| 1397 | (header file)
|
|---|
| 1398 | </a>
|
|---|
| 1399 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/src/ExN06PhysicsList.cc" target="_top">
|
|---|
| 1400 | (source file)
|
|---|
| 1401 | </a>
|
|---|
| 1402 |
|
|---|
| 1403 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1404 | derived from <span class="emphasis"><em>G4VUserPhysicsList</em></span>
|
|---|
| 1405 | </p></li><li><p>
|
|---|
| 1406 | definition of gamma, leptons and optical photons
|
|---|
| 1407 | </p></li><li><p>
|
|---|
| 1408 | transportation, 'standard' EM-processes, decay, Cerenkov,
|
|---|
| 1409 | scintillation, 'standard' optical and boundary process
|
|---|
| 1410 | </p></li><li><p>
|
|---|
| 1411 | modify/augment optical process parameters
|
|---|
| 1412 | </p></li></ul></div><p>
|
|---|
| 1413 | </p><h5><a name="id536673"></a>
|
|---|
| 1414 | ExN06PrimaryGeneratorAction
|
|---|
| 1415 | </h5><p>
|
|---|
| 1416 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/include/ExN06PrimaryGeneratorAction.hh" target="_top">
|
|---|
| 1417 | (header file)
|
|---|
| 1418 | </a>
|
|---|
| 1419 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/src/ExN06PrimaryGeneratorAction.cc" target="_top">
|
|---|
| 1420 | (source file)
|
|---|
| 1421 | </a>
|
|---|
| 1422 |
|
|---|
| 1423 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1424 | derived from <span class="emphasis"><em>G4VPrimaryGeneratorAction</em></span>
|
|---|
| 1425 | </p></li><li><p>
|
|---|
| 1426 | construction of <span class="emphasis"><em>G4ParticleGun</em></span>
|
|---|
| 1427 | </p></li><li><p>
|
|---|
| 1428 | primary event generation via particle gun
|
|---|
| 1429 | </p></li></ul></div><p>
|
|---|
| 1430 | </p><h5><a name="id536724"></a>
|
|---|
| 1431 | ExN06RunAction
|
|---|
| 1432 | </h5><p>
|
|---|
| 1433 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/include/ExN06RunAction.hh" target="_top">
|
|---|
| 1434 | (header file)
|
|---|
| 1435 | </a>
|
|---|
| 1436 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/src/ExN06RunAction.cc" target="_top">
|
|---|
| 1437 | (source file)
|
|---|
| 1438 | </a>
|
|---|
| 1439 |
|
|---|
| 1440 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1441 | derived from <span class="emphasis"><em>G4VUserRunAction</em></span>
|
|---|
| 1442 | </p></li><li><p>
|
|---|
| 1443 | draw detector
|
|---|
| 1444 | </p></li></ul></div><p>
|
|---|
| 1445 | </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="sect.ExmpNvc.Exmp07"></a>9.1.8.
|
|---|
| 1446 | Example N07
|
|---|
| 1447 | </h3></div></div></div><h5><a name="id536781"></a>
|
|---|
| 1448 | Basic concepts
|
|---|
| 1449 | </h5><p>
|
|---|
| 1450 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1451 | Geometry : Changing geometry of three simplified sandwitch
|
|---|
| 1452 | calorimeters without re-building a world volume.
|
|---|
| 1453 | </p></li><li><p>
|
|---|
| 1454 | Region : Defining geometrical regions ans setting production
|
|---|
| 1455 | thresholds for each region.
|
|---|
| 1456 | </p></li><li><p>
|
|---|
| 1457 | Run : Utilizing a concrete run class derived from G4Run base
|
|---|
| 1458 | class for accumulating physics quantities and hits as a run.
|
|---|
| 1459 | </p></li><li><p>
|
|---|
| 1460 | Hits : Demonstrating the use of primitive scorer and filter
|
|---|
| 1461 | classes without implementing sensitive detector class.
|
|---|
| 1462 | </p></li></ul></div><p>
|
|---|
| 1463 | </p><h5><a name="id536820"></a>
|
|---|
| 1464 | Classes
|
|---|
| 1465 | </h5><p>
|
|---|
| 1466 | <code class="literal">main()</code>
|
|---|
| 1467 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/exampleN07.cc" target="_top">
|
|---|
| 1468 | (source file)
|
|---|
| 1469 | </a>
|
|---|
| 1470 |
|
|---|
| 1471 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1472 | <code class="literal">main()</code> for interactive mode and batch mode via macro
|
|---|
| 1473 | file
|
|---|
| 1474 | </p></li><li><p>
|
|---|
| 1475 | construction and deletion of <span class="emphasis"><em>G4RunManager</em></span>
|
|---|
| 1476 | </p></li><li><p>
|
|---|
| 1477 | construction and deletion of <span class="emphasis"><em>G4VisExective</em></span> and
|
|---|
| 1478 | <span class="emphasis"><em>G4UITerminal</em></span>
|
|---|
| 1479 | </p></li><li><p>
|
|---|
| 1480 | construction and set of mandatory user classes
|
|---|
| 1481 | </p></li><li><p>
|
|---|
| 1482 | construction and set of <span class="emphasis"><em>ExN07RunAction</em></span>
|
|---|
| 1483 | </p></li></ul></div><p>
|
|---|
| 1484 | </p><h5><a name="id536892"></a>
|
|---|
| 1485 | ExN07DetectorConstruction
|
|---|
| 1486 | </h5><p>
|
|---|
| 1487 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/include/ExN07DetectorConstruction.hh" target="_top">
|
|---|
| 1488 | (header file)
|
|---|
| 1489 | </a>
|
|---|
| 1490 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/src/ExN07DetectorConstruction.cc" target="_top">
|
|---|
| 1491 | (source file)
|
|---|
| 1492 | </a>
|
|---|
| 1493 |
|
|---|
| 1494 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1495 | derived from <span class="emphasis"><em>G4VUserDetectorConstruction</em></span>
|
|---|
| 1496 | </p></li><li><p>
|
|---|
| 1497 | definitions of materials and mixtures
|
|---|
| 1498 | </p></li><li><p>
|
|---|
| 1499 | <span class="emphasis"><em>G4Box</em></span> with <span class="emphasis"><em>G4PVPlacement</em></span> and
|
|---|
| 1500 | <span class="emphasis"><em>G4PVReplica</em></span>
|
|---|
| 1501 | </p></li><li><p>
|
|---|
| 1502 | Dynamic changing of size, position, orientation and number of
|
|---|
| 1503 | volumes
|
|---|
| 1504 | </p></li><li><p>
|
|---|
| 1505 | <span class="emphasis"><em>G4Region</em></span> for each calorimeter tower
|
|---|
| 1506 | </p></li><li><p>
|
|---|
| 1507 | <span class="emphasis"><em>G4VPrimitiveScorer</em></span> and
|
|---|
| 1508 | <span class="emphasis"><em>G4VSDFilter</em></span>
|
|---|
| 1509 | </p></li><li><p>
|
|---|
| 1510 | visualization
|
|---|
| 1511 | </p></li></ul></div><p>
|
|---|
| 1512 | </p><h5><a name="id536980"></a>
|
|---|
| 1513 | ExN07DetectorMessenger
|
|---|
| 1514 | </h5><p>
|
|---|
| 1515 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/include/ExN07DetectorMessenger.hh" target="_top">
|
|---|
| 1516 | (header file)
|
|---|
| 1517 | </a>
|
|---|
| 1518 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/src/ExN07DetectorMessenger.cc" target="_top">
|
|---|
| 1519 | (source file)
|
|---|
| 1520 | </a>
|
|---|
| 1521 |
|
|---|
| 1522 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1523 | derived from <span class="emphasis"><em>G4UIMessenger</em></span>
|
|---|
| 1524 | </p></li><li><p>
|
|---|
| 1525 | definition of example-specific geometry commands
|
|---|
| 1526 | </p></li></ul></div><p>
|
|---|
| 1527 | </p><h5><a name="id537023"></a>
|
|---|
| 1528 | ExN07PhysicsList
|
|---|
| 1529 | </h5><p>
|
|---|
| 1530 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/include/ExN07PhysicsList.hh" target="_top">
|
|---|
| 1531 | (header file)
|
|---|
| 1532 | </a>
|
|---|
| 1533 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/src/ExN07PhysicsList.cc" target="_top">
|
|---|
| 1534 | (source file)
|
|---|
| 1535 | </a>
|
|---|
| 1536 |
|
|---|
| 1537 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1538 | derived from <span class="emphasis"><em>G4VUserPhysicsList</em></span>
|
|---|
| 1539 | </p></li><li><p>
|
|---|
| 1540 | difine all types of particles
|
|---|
| 1541 | </p></li><li><p>
|
|---|
| 1542 | define standard EM and decay processes
|
|---|
| 1543 | </p></li><li><p>
|
|---|
| 1544 | production thresholds for each region
|
|---|
| 1545 | </p></li></ul></div><p>
|
|---|
| 1546 | </p><h5><a name="id537076"></a>
|
|---|
| 1547 | ExN07PrimaryGeneratorAction
|
|---|
| 1548 | </h5><p>
|
|---|
| 1549 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/include/ExN07PrimaryGeneratorAction.hh" target="_top">
|
|---|
| 1550 | (header file)
|
|---|
| 1551 | </a>
|
|---|
| 1552 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/src/ExN07PrimaryGeneratorAction.cc" target="_top">
|
|---|
| 1553 | (source file)
|
|---|
| 1554 | </a>
|
|---|
| 1555 |
|
|---|
| 1556 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1557 | derived from <span class="emphasis"><em>G4VPrimaryGeneratorAction</em></span>
|
|---|
| 1558 | </p></li><li><p>
|
|---|
| 1559 | construction of <span class="emphasis"><em>G4ParticleGun</em></span>
|
|---|
| 1560 | </p></li><li><p>
|
|---|
| 1561 | primary event generation via particle gun
|
|---|
| 1562 | </p></li></ul></div><p>
|
|---|
| 1563 | </p><h5><a name="id537127"></a>
|
|---|
| 1564 | ExN07RunAction
|
|---|
| 1565 | </h5><p>
|
|---|
| 1566 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/include/ExN07RunAction.hh" target="_top">
|
|---|
| 1567 | (header file)
|
|---|
| 1568 | </a>
|
|---|
| 1569 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/src/ExN07RunAction.cc" target="_top">
|
|---|
| 1570 | (source file)
|
|---|
| 1571 | </a>
|
|---|
| 1572 |
|
|---|
| 1573 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1574 | derived from <span class="emphasis"><em>G4UserRunAction</em></span>
|
|---|
| 1575 | </p></li><li><p>
|
|---|
| 1576 | constructing <span class="emphasis"><em>ExN07Run</em></span> class object
|
|---|
| 1577 | </p></li><li><p>
|
|---|
| 1578 | print out a run summary with <span class="emphasis"><em>ExN07Run</em></span> class object
|
|---|
| 1579 | </p></li></ul></div><p>
|
|---|
| 1580 | </p><h5><a name="id537182"></a>
|
|---|
| 1581 | ExN07Run
|
|---|
| 1582 | </h5><p>
|
|---|
| 1583 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/include/ExN07Run.hh" target="_top">
|
|---|
| 1584 | (header file)
|
|---|
| 1585 | </a>
|
|---|
| 1586 | <a href="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/src/ExN07Run.cc" target="_top">
|
|---|
| 1587 | (source file)
|
|---|
| 1588 | </a>
|
|---|
| 1589 |
|
|---|
| 1590 | </p><div class="itemizedlist"><ul type="disc" compact><li><p>
|
|---|
| 1591 | derived from <span class="emphasis"><em>G4Run</em></span>
|
|---|
| 1592 | </p></li><li><p>
|
|---|
| 1593 | uses <span class="emphasis"><em>G4THitsMap</em></span> template class to accumulate physics
|
|---|
| 1594 | quantities
|
|---|
| 1595 | </p></li><li><p>
|
|---|
| 1596 | extracts event data from <span class="emphasis"><em>G4Event</em></span> and add up to run data
|
|---|
| 1597 | </p></li></ul></div><p>
|
|---|
| 1598 | </p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch08s10.html"><img src="AllResources/IconsGIF/prev.gif" alt="Prev"></a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="ch09s02.html"><img src="AllResources/IconsGIF/next.gif" alt="Next"></a></td></tr><tr><td width="40%" align="left" valign="top">8.10.
|
|---|
| 1599 | Making a Movie
|
|---|
| 1600 | </td><td width="20%" align="center"><a accesskey="h" href="index.html"><img src="AllResources/IconsGIF/home.gif" alt="Home"></a></td><td width="40%" align="right" valign="top"> 9.2.
|
|---|
| 1601 | Extended Examples
|
|---|
| 1602 | </td></tr></table></div></body></html>
|
|---|