| 1 | <!-- ******************************************************** -->
|
|---|
| 2 | <!-- -->
|
|---|
| 3 | <!-- [History] -->
|
|---|
| 4 | <!-- Changed by: Katsuya Amako, 4-Aug-1998 -->
|
|---|
| 5 | <!-- Changed by: Katsuya Amako, 9-Jul-1998 -->
|
|---|
| 6 | <!-- Proof read by: Joe Chuma, 5-Jul-1999 -->
|
|---|
| 7 | <!-- Converted to DocBook: Katsuya Amako, Aug-2006 -->
|
|---|
| 8 | <!-- -->
|
|---|
| 9 | <!-- ******************************************************** -->
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 | <!-- ******************* Section (Level#1) ****************** -->
|
|---|
| 13 | <sect1 id="sect.ExmpNvc">
|
|---|
| 14 | <title>
|
|---|
| 15 | Novice Examples
|
|---|
| 16 | </title>
|
|---|
| 17 |
|
|---|
| 18 | <para>
|
|---|
| 19 | The Geant4 toolkit includes several fully coded examples which
|
|---|
| 20 | demonstrate the implementation of the user classes required to
|
|---|
| 21 | build a customized simulation. Seven "novice" examples are provided
|
|---|
| 22 | ranging from the simulation of a non-interacting particle and a
|
|---|
| 23 | trivial detector, to the simulation of electromagnetic and hadronic
|
|---|
| 24 | physics processes in a complex detector. Each example may be used
|
|---|
| 25 | as a base from which more detailed applications can be developed. A
|
|---|
| 26 | set of "extended" examples implement simulations of actual high
|
|---|
| 27 | energy physics detectors and require some libraries in addition to
|
|---|
| 28 | those of Geant4. The "advanced" examples cover cases useful to the
|
|---|
| 29 | developement of the Geant4 toolkit itself.
|
|---|
| 30 | </para>
|
|---|
| 31 |
|
|---|
| 32 | <para>
|
|---|
| 33 | The examples can be compiled and run without modification. Most
|
|---|
| 34 | of them can be run both in interactive and batch mode using the
|
|---|
| 35 | input macro files (<literal>*.in</literal>) and reference output files
|
|---|
| 36 | (<literal>*.out</literal>) provided. These examples are run routinely as
|
|---|
| 37 | part of the validation, or testing, of official releases of the Geant4
|
|---|
| 38 | toolkit.
|
|---|
| 39 | </para>
|
|---|
| 40 |
|
|---|
| 41 | <!-- ******************* Section (Level#2) ****************** -->
|
|---|
| 42 | <sect2 id="sect.ExmpNvc.Smmry">
|
|---|
| 43 | <title>
|
|---|
| 44 | Novice Example Summary
|
|---|
| 45 | </title>
|
|---|
| 46 |
|
|---|
| 47 | <para>
|
|---|
| 48 | Descriptions of the 7 novice examples are provided here along with
|
|---|
| 49 | links to the code.
|
|---|
| 50 | </para>
|
|---|
| 51 |
|
|---|
| 52 | <para>
|
|---|
| 53 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/README">
|
|---|
| 54 | <literal>ExampleN01</literal>
|
|---|
| 55 | </ulink>
|
|---|
| 56 |
|
|---|
| 57 | <link linkend="sect.ExmpNvc.Exmp01">
|
|---|
| 58 | (Description below)
|
|---|
| 59 | </link>
|
|---|
| 60 |
|
|---|
| 61 | <itemizedlist spacing="compact">
|
|---|
| 62 | <listitem><para>
|
|---|
| 63 | Mandatory user classes
|
|---|
| 64 | </para></listitem>
|
|---|
| 65 | <listitem><para>
|
|---|
| 66 | Demonstrates how Geant4 kernel works
|
|---|
| 67 | </para></listitem>
|
|---|
| 68 | </itemizedlist>
|
|---|
| 69 | </para>
|
|---|
| 70 |
|
|---|
| 71 | <para>
|
|---|
| 72 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/README">
|
|---|
| 73 | <literal>ExampleN02</literal>
|
|---|
| 74 | </ulink>
|
|---|
| 75 |
|
|---|
| 76 | <link linkend="sect.ExmpNvc.Exmp02">
|
|---|
| 77 | (Description below)
|
|---|
| 78 | </link>
|
|---|
| 79 |
|
|---|
| 80 | <itemizedlist spacing="compact">
|
|---|
| 81 | <listitem><para>
|
|---|
| 82 | Simplified tracker geometry with uniform magnetic field
|
|---|
| 83 | </para></listitem>
|
|---|
| 84 | <listitem><para>
|
|---|
| 85 | Electromagnetic processes
|
|---|
| 86 | </para></listitem>
|
|---|
| 87 | </itemizedlist>
|
|---|
| 88 | </para>
|
|---|
| 89 |
|
|---|
| 90 |
|
|---|
| 91 | <para>
|
|---|
| 92 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/README">
|
|---|
| 93 | <literal>ExampleN03</literal>
|
|---|
| 94 | </ulink>
|
|---|
| 95 |
|
|---|
| 96 | <link linkend="sect.ExmpNvc.Exmp03">
|
|---|
| 97 | (Description below)
|
|---|
| 98 | </link>
|
|---|
| 99 |
|
|---|
| 100 | <itemizedlist spacing="compact">
|
|---|
| 101 | <listitem><para>
|
|---|
| 102 | Simplified calorimeter geometry
|
|---|
| 103 | </para></listitem>
|
|---|
| 104 | <listitem><para>
|
|---|
| 105 | Electromagnetic processes
|
|---|
| 106 | </para></listitem>
|
|---|
| 107 | <listitem><para>
|
|---|
| 108 | Various materials
|
|---|
| 109 | </para></listitem>
|
|---|
| 110 | </itemizedlist>
|
|---|
| 111 | </para>
|
|---|
| 112 |
|
|---|
| 113 |
|
|---|
| 114 | <para>
|
|---|
| 115 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/README">
|
|---|
| 116 | <literal>ExampleN04</literal>
|
|---|
| 117 | </ulink>
|
|---|
| 118 |
|
|---|
| 119 | <link linkend="sect.ExmpNvc.Exmp04">
|
|---|
| 120 | (Description below)
|
|---|
| 121 | </link>
|
|---|
| 122 |
|
|---|
| 123 | <itemizedlist spacing="compact">
|
|---|
| 124 | <listitem><para>
|
|---|
| 125 | Simplified collider detector with a readout geometry
|
|---|
| 126 | </para></listitem>
|
|---|
| 127 | <listitem><para>
|
|---|
| 128 | Full ``ordinary'' processes
|
|---|
| 129 | </para></listitem>
|
|---|
| 130 | <listitem><para>
|
|---|
| 131 | PYTHIA primary events
|
|---|
| 132 | </para></listitem>
|
|---|
| 133 | <listitem><para>
|
|---|
| 134 | Event filtering by stack
|
|---|
| 135 | </para></listitem>
|
|---|
| 136 | </itemizedlist>
|
|---|
| 137 | </para>
|
|---|
| 138 |
|
|---|
| 139 | <para>
|
|---|
| 140 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/README">
|
|---|
| 141 | <literal>ExampleN05</literal>
|
|---|
| 142 | </ulink>
|
|---|
| 143 |
|
|---|
| 144 | <link linkend="sect.ExmpNvc.Exmp05">
|
|---|
| 145 | (Description below)
|
|---|
| 146 | </link>
|
|---|
| 147 |
|
|---|
| 148 | <itemizedlist spacing="compact">
|
|---|
| 149 | <listitem><para>
|
|---|
| 150 | Simplified BaBar calorimeter
|
|---|
| 151 | </para></listitem>
|
|---|
| 152 | <listitem><para>
|
|---|
| 153 | EM shower parametrisation
|
|---|
| 154 | </para></listitem>
|
|---|
| 155 | </itemizedlist>
|
|---|
| 156 | </para>
|
|---|
| 157 |
|
|---|
| 158 |
|
|---|
| 159 | <para>
|
|---|
| 160 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/README">
|
|---|
| 161 | <literal>ExampleN06</literal>
|
|---|
| 162 | </ulink>
|
|---|
| 163 |
|
|---|
| 164 | <link linkend="sect.ExmpNvc.Exmp06">
|
|---|
| 165 | (Description below)
|
|---|
| 166 | </link>
|
|---|
| 167 |
|
|---|
| 168 | <itemizedlist spacing="compact">
|
|---|
| 169 | <listitem><para>
|
|---|
| 170 | Optical photon processes
|
|---|
| 171 | </para></listitem>
|
|---|
| 172 | </itemizedlist>
|
|---|
| 173 | </para>
|
|---|
| 174 |
|
|---|
| 175 | <para>
|
|---|
| 176 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/README">
|
|---|
| 177 | <literal>ExampleN07</literal>
|
|---|
| 178 | </ulink>
|
|---|
| 179 |
|
|---|
| 180 | <link linkend="sect.ExmpNvc.Exmp07">
|
|---|
| 181 | (Description below)
|
|---|
| 182 | </link>
|
|---|
| 183 |
|
|---|
| 184 | <itemizedlist spacing="compact">
|
|---|
| 185 | <listitem><para>
|
|---|
| 186 | Geometrical Regions for production thresholds
|
|---|
| 187 | </para></listitem>
|
|---|
| 188 | <listitem><para>
|
|---|
| 189 | Dynamic geometry setups between runs
|
|---|
| 190 | </para></listitem>
|
|---|
| 191 | <listitem><para>
|
|---|
| 192 | Primitive scorer and filter
|
|---|
| 193 | </para></listitem>
|
|---|
| 194 | <listitem><para>
|
|---|
| 195 | Derived run class and run action
|
|---|
| 196 | </para></listitem>
|
|---|
| 197 | </itemizedlist>
|
|---|
| 198 | </para>
|
|---|
| 199 |
|
|---|
| 200 |
|
|---|
| 201 | <para>
|
|---|
| 202 | <xref linkend="table.ExmpNvc_1" />, <xref linkend="table.ExmpNvc_2" /> and
|
|---|
| 203 | <xref linkend="table.ExmpNvc_3" /> display the ``item charts'' for
|
|---|
| 204 | the examples currently prepared in the novice level.
|
|---|
| 205 |
|
|---|
| 206 | <table id="table.ExmpNvc_1">
|
|---|
| 207 | <title>
|
|---|
| 208 | The ``item chart'' for novice level examples <literal>N01</literal>,
|
|---|
| 209 | <literal>N02</literal> and <literal>N03</literal>.
|
|---|
| 210 | </title>
|
|---|
| 211 |
|
|---|
| 212 | <tgroup cols="4">
|
|---|
| 213 | <tbody>
|
|---|
| 214 | <row>
|
|---|
| 215 | <entry>
|
|---|
| 216 |
|
|---|
| 217 | </entry>
|
|---|
| 218 | <entry>
|
|---|
| 219 | <literal>ExampleN01</literal>
|
|---|
| 220 | </entry>
|
|---|
| 221 | <entry>
|
|---|
| 222 | <literal>ExampleN02</literal>
|
|---|
| 223 | </entry>
|
|---|
| 224 | <entry>
|
|---|
| 225 | <literal>ExampleN03</literal>
|
|---|
| 226 | </entry>
|
|---|
| 227 | </row>
|
|---|
| 228 | <row>
|
|---|
| 229 | <entry>
|
|---|
| 230 | comments
|
|---|
| 231 | </entry>
|
|---|
| 232 | <entry>
|
|---|
| 233 | minimal set for geantino transportation
|
|---|
| 234 | </entry>
|
|---|
| 235 | <entry>
|
|---|
| 236 | fixed target tracker geometry
|
|---|
| 237 | </entry>
|
|---|
| 238 | <entry>
|
|---|
| 239 | EM shower in calorimeter
|
|---|
| 240 | </entry>
|
|---|
| 241 | </row>
|
|---|
| 242 | <row>
|
|---|
| 243 | <entry>
|
|---|
| 244 | Run
|
|---|
| 245 | </entry>
|
|---|
| 246 | <entry>
|
|---|
| 247 | <literal>main()</literal> for hard coded batch
|
|---|
| 248 | </entry>
|
|---|
| 249 | <entry>
|
|---|
| 250 | <literal>main()</literal> for interactive mode
|
|---|
| 251 | </entry>
|
|---|
| 252 | <entry>
|
|---|
| 253 | <itemizedlist spacing="compact">
|
|---|
| 254 | <listitem><para>
|
|---|
| 255 | <literal>main()</literal> for interactive mode
|
|---|
| 256 | </para></listitem>
|
|---|
| 257 | <listitem><para>
|
|---|
| 258 | SetCut and Process On/Off
|
|---|
| 259 | </para></listitem>
|
|---|
| 260 | </itemizedlist>
|
|---|
| 261 | </entry>
|
|---|
| 262 | </row>
|
|---|
| 263 | <row>
|
|---|
| 264 | <entry>
|
|---|
| 265 | Event
|
|---|
| 266 | </entry>
|
|---|
| 267 | <entry>
|
|---|
| 268 | event generator selection (particleGun)
|
|---|
| 269 | </entry>
|
|---|
| 270 | <entry>
|
|---|
| 271 | event generator selection (particleGun)
|
|---|
| 272 | </entry>
|
|---|
| 273 | <entry>
|
|---|
| 274 | <itemizedlist spacing="compact">
|
|---|
| 275 | <listitem><para>
|
|---|
| 276 | event generator selection (particleGun)
|
|---|
| 277 | </para></listitem>
|
|---|
| 278 | <listitem><para>
|
|---|
| 279 | ``end of event'' simple analysis in <emphasis>UserEventAction</emphasis>
|
|---|
| 280 | </para></listitem>
|
|---|
| 281 | </itemizedlist>
|
|---|
| 282 | </entry>
|
|---|
| 283 | </row>
|
|---|
| 284 | <row>
|
|---|
| 285 | <entry>
|
|---|
| 286 | Tracking
|
|---|
| 287 | </entry>
|
|---|
| 288 | <entry>
|
|---|
| 289 | hard coded verbose level setting
|
|---|
| 290 | </entry>
|
|---|
| 291 | <entry>
|
|---|
| 292 | selecting secondaries
|
|---|
| 293 | </entry>
|
|---|
| 294 | <entry>
|
|---|
| 295 | select trajectories
|
|---|
| 296 | </entry>
|
|---|
| 297 | </row>
|
|---|
| 298 | <row>
|
|---|
| 299 | <entry>
|
|---|
| 300 | Geometry
|
|---|
| 301 | </entry>
|
|---|
| 302 | <entry>
|
|---|
| 303 | geometry definition (CSG)
|
|---|
| 304 | </entry>
|
|---|
| 305 | <entry>
|
|---|
| 306 | <itemizedlist spacing="compact">
|
|---|
| 307 | <listitem><para>
|
|---|
| 308 | geometry definition (includes Parametrised volume)
|
|---|
| 309 | </para></listitem>
|
|---|
| 310 | <listitem><para>
|
|---|
| 311 | uniform magnetic field
|
|---|
| 312 | </para></listitem>
|
|---|
| 313 | </itemizedlist>
|
|---|
| 314 | </entry>
|
|---|
| 315 | <entry>
|
|---|
| 316 | <itemizedlist spacing="compact">
|
|---|
| 317 | <listitem><para>
|
|---|
| 318 | geometry definition (includes replica)
|
|---|
| 319 | </para></listitem>
|
|---|
| 320 | <listitem><para>
|
|---|
| 321 | uniform magnetic field
|
|---|
| 322 | </para></listitem>
|
|---|
| 323 | </itemizedlist>
|
|---|
| 324 | </entry>
|
|---|
| 325 | </row>
|
|---|
| 326 | <row>
|
|---|
| 327 | <entry>
|
|---|
| 328 | Hits/Digi
|
|---|
| 329 | </entry>
|
|---|
| 330 | <entry align="center">
|
|---|
| 331 | -
|
|---|
| 332 | </entry>
|
|---|
| 333 | <entry>
|
|---|
| 334 | tracker type hits
|
|---|
| 335 | </entry>
|
|---|
| 336 | <entry>
|
|---|
| 337 | calorimeter-type hits
|
|---|
| 338 | </entry>
|
|---|
| 339 | </row>
|
|---|
| 340 | <row>
|
|---|
| 341 | <entry>
|
|---|
| 342 | PIIM
|
|---|
| 343 | </entry>
|
|---|
| 344 | <entry>
|
|---|
| 345 | <itemizedlist spacing="compact">
|
|---|
| 346 | <listitem><para>
|
|---|
| 347 | minimal particle set
|
|---|
| 348 | </para></listitem>
|
|---|
| 349 | <listitem><para>
|
|---|
| 350 | single element material
|
|---|
| 351 | </para></listitem>
|
|---|
| 352 | </itemizedlist>
|
|---|
| 353 | </entry>
|
|---|
| 354 | <entry>
|
|---|
| 355 | <itemizedlist spacing="compact">
|
|---|
| 356 | <listitem><para>
|
|---|
| 357 | EM particles set
|
|---|
| 358 | </para></listitem>
|
|---|
| 359 | <listitem><para>
|
|---|
| 360 | mixtures and compound elements
|
|---|
| 361 | </para></listitem>
|
|---|
| 362 | </itemizedlist>
|
|---|
| 363 | </entry>
|
|---|
| 364 | <entry>
|
|---|
| 365 | <itemizedlist spacing="compact">
|
|---|
| 366 | <listitem><para>
|
|---|
| 367 | EM particles set
|
|---|
| 368 | </para></listitem>
|
|---|
| 369 | <listitem><para>
|
|---|
| 370 | mixtures and compound elements
|
|---|
| 371 | </para></listitem>
|
|---|
| 372 | </itemizedlist>
|
|---|
| 373 | </entry>
|
|---|
| 374 | </row>
|
|---|
| 375 | <row>
|
|---|
| 376 | <entry>
|
|---|
| 377 | Physics
|
|---|
| 378 | </entry>
|
|---|
| 379 | <entry>
|
|---|
| 380 | transportation
|
|---|
| 381 | </entry>
|
|---|
| 382 | <entry>
|
|---|
| 383 | EM physics
|
|---|
| 384 | </entry>
|
|---|
| 385 | <entry>
|
|---|
| 386 | EM physics
|
|---|
| 387 | </entry>
|
|---|
| 388 | </row>
|
|---|
| 389 | <row>
|
|---|
| 390 | <entry>
|
|---|
| 391 | Vis
|
|---|
| 392 | </entry>
|
|---|
| 393 | <entry align="center">
|
|---|
| 394 | -
|
|---|
| 395 | </entry>
|
|---|
| 396 | <entry>
|
|---|
| 397 | <itemizedlist spacing="compact">
|
|---|
| 398 | <listitem><para>
|
|---|
| 399 | detector & trajectory drawing
|
|---|
| 400 | </para></listitem>
|
|---|
| 401 | <listitem><para>
|
|---|
| 402 | tracker type hits drawing
|
|---|
| 403 | </para></listitem>
|
|---|
| 404 | </itemizedlist>
|
|---|
| 405 | </entry>
|
|---|
| 406 | <entry>
|
|---|
| 407 | detector & trajectory drawing
|
|---|
| 408 | </entry>
|
|---|
| 409 | </row>
|
|---|
| 410 | <row>
|
|---|
| 411 | <entry>
|
|---|
| 412 | (G)UI
|
|---|
| 413 | </entry>
|
|---|
| 414 | <entry align="center">
|
|---|
| 415 | -
|
|---|
| 416 | </entry>
|
|---|
| 417 | <entry>
|
|---|
| 418 | GUI selection
|
|---|
| 419 | </entry>
|
|---|
| 420 | <entry>
|
|---|
| 421 | GUI selection
|
|---|
| 422 | </entry>
|
|---|
| 423 | </row>
|
|---|
| 424 | <row>
|
|---|
| 425 | <entry>
|
|---|
| 426 | Global
|
|---|
| 427 | </entry>
|
|---|
| 428 | <entry align="center">
|
|---|
| 429 | -
|
|---|
| 430 | </entry>
|
|---|
| 431 | <entry align="center">
|
|---|
| 432 | -
|
|---|
| 433 | </entry>
|
|---|
| 434 | <entry align="center">
|
|---|
| 435 | -
|
|---|
| 436 | </entry>
|
|---|
| 437 | </row>
|
|---|
| 438 | </tbody>
|
|---|
| 439 | </tgroup>
|
|---|
| 440 | </table>
|
|---|
| 441 | </para>
|
|---|
| 442 |
|
|---|
| 443 |
|
|---|
| 444 | <para>
|
|---|
| 445 | <table id="table.ExmpNvc_2">
|
|---|
| 446 | <title>
|
|---|
| 447 | The ``item chart'' for novice level examples <literal>N04</literal>,
|
|---|
| 448 | <literal>N05</literal>, and <literal>N06</literal>.
|
|---|
| 449 | </title>
|
|---|
| 450 | <tgroup cols="4">
|
|---|
| 451 | <tbody>
|
|---|
| 452 | <row>
|
|---|
| 453 | <entry>
|
|---|
| 454 |
|
|---|
| 455 | </entry>
|
|---|
| 456 | <entry>
|
|---|
| 457 | <literal>ExampleN04</literal>
|
|---|
| 458 | </entry>
|
|---|
| 459 | <entry>
|
|---|
| 460 | <literal>ExampleN05</literal>
|
|---|
| 461 | </entry>
|
|---|
| 462 | <entry>
|
|---|
| 463 | <literal>ExampleN06</literal>
|
|---|
| 464 | </entry>
|
|---|
| 465 | </row>
|
|---|
| 466 | <row>
|
|---|
| 467 | <entry>
|
|---|
| 468 | comments
|
|---|
| 469 | </entry>
|
|---|
| 470 | <entry>
|
|---|
| 471 | simplified collider geometry
|
|---|
| 472 | </entry>
|
|---|
| 473 | <entry>
|
|---|
| 474 | parametrised shower example
|
|---|
| 475 | </entry>
|
|---|
| 476 | <entry>
|
|---|
| 477 | Optical photon example
|
|---|
| 478 | </entry>
|
|---|
| 479 | </row>
|
|---|
| 480 | <row>
|
|---|
| 481 | <entry>
|
|---|
| 482 | Run
|
|---|
| 483 | </entry>
|
|---|
| 484 | <entry>
|
|---|
| 485 | <literal>main()</literal> for interactive mode
|
|---|
| 486 | </entry>
|
|---|
| 487 | <entry>
|
|---|
| 488 | <literal>main()</literal> for interactive mode
|
|---|
| 489 | </entry>
|
|---|
| 490 | <entry>
|
|---|
| 491 | <literal>main()</literal> for interactive mode
|
|---|
| 492 | </entry>
|
|---|
| 493 | </row>
|
|---|
| 494 | <row>
|
|---|
| 495 | <entry>
|
|---|
| 496 | Event
|
|---|
| 497 | </entry>
|
|---|
| 498 | <entry>
|
|---|
| 499 | <itemizedlist spacing="compact">
|
|---|
| 500 | <listitem><para>
|
|---|
| 501 | event generator selection (HEPEvtInterface)
|
|---|
| 502 | </para></listitem>
|
|---|
| 503 | <listitem><para>
|
|---|
| 504 | Stack control
|
|---|
| 505 | </para></listitem>
|
|---|
| 506 | </itemizedlist>
|
|---|
| 507 | </entry>
|
|---|
| 508 | <entry>
|
|---|
| 509 | event generator selection (HEPEvtInterface)
|
|---|
| 510 | </entry>
|
|---|
| 511 | <entry>
|
|---|
| 512 | event generator selection (particleGun)
|
|---|
| 513 | </entry>
|
|---|
| 514 | </row>
|
|---|
| 515 | <row>
|
|---|
| 516 | <entry>
|
|---|
| 517 | Tracking
|
|---|
| 518 | </entry>
|
|---|
| 519 | <entry>
|
|---|
| 520 | <itemizedlist spacing="compact">
|
|---|
| 521 | <listitem><para>
|
|---|
| 522 | select trajectories
|
|---|
| 523 | </para></listitem>
|
|---|
| 524 | <listitem><para>
|
|---|
| 525 | selecting secondaries
|
|---|
| 526 | </para></listitem>
|
|---|
| 527 | </itemizedlist>
|
|---|
| 528 | </entry>
|
|---|
| 529 | <entry align="center">
|
|---|
| 530 | -
|
|---|
| 531 | </entry>
|
|---|
| 532 | <entry align="center">
|
|---|
| 533 | -
|
|---|
| 534 | </entry>
|
|---|
| 535 | </row>
|
|---|
| 536 | <row>
|
|---|
| 537 | <entry>
|
|---|
| 538 | Geometry
|
|---|
| 539 | </entry>
|
|---|
| 540 | <entry>
|
|---|
| 541 | <itemizedlist spacing="compact">
|
|---|
| 542 | <listitem><para>
|
|---|
| 543 | geometry definition (includes Param/Replica)
|
|---|
| 544 | </para></listitem>
|
|---|
| 545 | <listitem><para>
|
|---|
| 546 | non-uniform magnetic field
|
|---|
| 547 | </para></listitem>
|
|---|
| 548 | </itemizedlist>
|
|---|
| 549 | </entry>
|
|---|
| 550 | <entry>
|
|---|
| 551 | ghost volume for shower parametrisation
|
|---|
| 552 | </entry>
|
|---|
| 553 | <entry>
|
|---|
| 554 | geometry definition (BREP with rotation)
|
|---|
| 555 | </entry>
|
|---|
| 556 | </row>
|
|---|
| 557 | <row>
|
|---|
| 558 | <entry>
|
|---|
| 559 | Hits/Digi
|
|---|
| 560 | </entry>
|
|---|
| 561 | <entry>
|
|---|
| 562 | <itemizedlist spacing="compact">
|
|---|
| 563 | <listitem><para>
|
|---|
| 564 | Tracker/calorimeter/counter types
|
|---|
| 565 | </para></listitem>
|
|---|
| 566 | <listitem><para>
|
|---|
| 567 | ReadOut geometry
|
|---|
| 568 | </para></listitem>
|
|---|
| 569 | </itemizedlist>
|
|---|
| 570 | </entry>
|
|---|
| 571 | <entry>
|
|---|
| 572 | Sensitive detector for shower parametrisation
|
|---|
| 573 | </entry>
|
|---|
| 574 | <entry align="center">
|
|---|
| 575 | -
|
|---|
| 576 | </entry>
|
|---|
| 577 | </row>
|
|---|
| 578 | <row>
|
|---|
| 579 | <entry>
|
|---|
| 580 | PIIM
|
|---|
| 581 | </entry>
|
|---|
| 582 | <entry>
|
|---|
| 583 | <itemizedlist spacing="compact">
|
|---|
| 584 | <listitem><para>
|
|---|
| 585 | Full particle set
|
|---|
| 586 | </para></listitem>
|
|---|
| 587 | <listitem><para>
|
|---|
| 588 | mixtures and compound elements
|
|---|
| 589 | </para></listitem>
|
|---|
| 590 | </itemizedlist>
|
|---|
| 591 | </entry>
|
|---|
| 592 | <entry>
|
|---|
| 593 | <itemizedlist spacing="compact">
|
|---|
| 594 | <listitem><para>
|
|---|
| 595 | EM set
|
|---|
| 596 | </para></listitem>
|
|---|
| 597 | <listitem><para>
|
|---|
| 598 | mixtures and compound elements
|
|---|
| 599 | </para></listitem>
|
|---|
| 600 | </itemizedlist>
|
|---|
| 601 | </entry>
|
|---|
| 602 | <entry>
|
|---|
| 603 | <itemizedlist spacing="compact">
|
|---|
| 604 | <listitem><para>
|
|---|
| 605 | EM set
|
|---|
| 606 | </para></listitem>
|
|---|
| 607 | <listitem><para>
|
|---|
| 608 | mixtures and compound elements
|
|---|
| 609 | </para></listitem>
|
|---|
| 610 | </itemizedlist>
|
|---|
| 611 | </entry>
|
|---|
| 612 | </row>
|
|---|
| 613 | <row>
|
|---|
| 614 | <entry>
|
|---|
| 615 | Physics
|
|---|
| 616 | </entry>
|
|---|
| 617 | <entry>
|
|---|
| 618 | Full physics processes
|
|---|
| 619 | </entry>
|
|---|
| 620 | <entry>
|
|---|
| 621 | Parametrized shower
|
|---|
| 622 | </entry>
|
|---|
| 623 | <entry>
|
|---|
| 624 | Optical photon processes
|
|---|
| 625 | </entry>
|
|---|
| 626 | </row>
|
|---|
| 627 | <row>
|
|---|
| 628 | <entry>
|
|---|
| 629 | Vis
|
|---|
| 630 | </entry>
|
|---|
| 631 | <entry>
|
|---|
| 632 | <itemizedlist spacing="compact">
|
|---|
| 633 | <listitem><para>
|
|---|
| 634 | detector & hit drawing
|
|---|
| 635 | </para></listitem>
|
|---|
| 636 | <listitem><para>
|
|---|
| 637 | calorimeter type hits drawing
|
|---|
| 638 | </para></listitem>
|
|---|
| 639 | </itemizedlist>
|
|---|
| 640 | </entry>
|
|---|
| 641 | <entry>
|
|---|
| 642 | detector & hit drawing
|
|---|
| 643 | </entry>
|
|---|
| 644 | <entry align="center">
|
|---|
| 645 | -
|
|---|
| 646 | </entry>
|
|---|
| 647 | </row>
|
|---|
| 648 | <row>
|
|---|
| 649 | <entry>
|
|---|
| 650 | (G)UI
|
|---|
| 651 | </entry>
|
|---|
| 652 | <entry>
|
|---|
| 653 | define user commands
|
|---|
| 654 | </entry>
|
|---|
| 655 | <entry>
|
|---|
| 656 | define user commands
|
|---|
| 657 | </entry>
|
|---|
| 658 | <entry>
|
|---|
| 659 | define user commands
|
|---|
| 660 | </entry>
|
|---|
| 661 | </row>
|
|---|
| 662 | <row>
|
|---|
| 663 | <entry>
|
|---|
| 664 | Global
|
|---|
| 665 | </entry>
|
|---|
| 666 | <entry align="center">
|
|---|
| 667 | -
|
|---|
| 668 | </entry>
|
|---|
| 669 | <entry align="center">
|
|---|
| 670 | -
|
|---|
| 671 | </entry>
|
|---|
| 672 | <entry>
|
|---|
| 673 | random number engine
|
|---|
| 674 | </entry>
|
|---|
| 675 | </row>
|
|---|
| 676 | </tbody>
|
|---|
| 677 | </tgroup>
|
|---|
| 678 | </table>
|
|---|
| 679 | </para>
|
|---|
| 680 |
|
|---|
| 681 | <para>
|
|---|
| 682 | <table id="table.ExmpNvc_3">
|
|---|
| 683 | <title>
|
|---|
| 684 | The ``item chart'' for novice level example <literal>N07</literal>.
|
|---|
| 685 | </title>
|
|---|
| 686 |
|
|---|
| 687 | <tgroup cols="2">
|
|---|
| 688 | <tbody>
|
|---|
| 689 | <row>
|
|---|
| 690 | <entry>
|
|---|
| 691 |
|
|---|
| 692 | </entry>
|
|---|
| 693 | <entry>
|
|---|
| 694 | <literal>ExampleN07</literal>
|
|---|
| 695 | </entry>
|
|---|
| 696 | </row>
|
|---|
| 697 | <row>
|
|---|
| 698 | <entry>
|
|---|
| 699 | comments
|
|---|
| 700 | </entry>
|
|---|
| 701 | <entry>
|
|---|
| 702 | Cuts per region
|
|---|
| 703 | </entry>
|
|---|
| 704 | </row>
|
|---|
| 705 | <row>
|
|---|
| 706 | <entry>
|
|---|
| 707 | Run
|
|---|
| 708 | </entry>
|
|---|
| 709 | <entry>
|
|---|
| 710 | <itemizedlist spacing="compact">
|
|---|
| 711 | <listitem><para>
|
|---|
| 712 | <literal>main()</literal> for interactive mode
|
|---|
| 713 | </para></listitem>
|
|---|
| 714 | <listitem><para>
|
|---|
| 715 | Customized run class
|
|---|
| 716 | </para></listitem>
|
|---|
| 717 | </itemizedlist>
|
|---|
| 718 | </entry>
|
|---|
| 719 | </row>
|
|---|
| 720 | <row>
|
|---|
| 721 | <entry>
|
|---|
| 722 | Event
|
|---|
| 723 | </entry>
|
|---|
| 724 | <entry>
|
|---|
| 725 | event generator selection (particleGun)
|
|---|
| 726 | </entry>
|
|---|
| 727 | </row>
|
|---|
| 728 | <row>
|
|---|
| 729 | <entry>
|
|---|
| 730 | Tracking
|
|---|
| 731 | </entry>
|
|---|
| 732 | <entry align="center">
|
|---|
| 733 | -
|
|---|
| 734 | </entry>
|
|---|
| 735 | </row>
|
|---|
| 736 | <row>
|
|---|
| 737 | <entry>
|
|---|
| 738 | Geometry
|
|---|
| 739 | </entry>
|
|---|
| 740 | <entry>
|
|---|
| 741 | <itemizedlist spacing="compact">
|
|---|
| 742 | <listitem><para>
|
|---|
| 743 | geometry definition (includes Replica)
|
|---|
| 744 | </para></listitem>
|
|---|
| 745 | <listitem><para>
|
|---|
| 746 | Region
|
|---|
| 747 | </para></listitem>
|
|---|
| 748 | </itemizedlist>
|
|---|
| 749 | </entry>
|
|---|
| 750 | </row>
|
|---|
| 751 | <row>
|
|---|
| 752 | <entry>
|
|---|
| 753 | Hits/Digi
|
|---|
| 754 | </entry>
|
|---|
| 755 | <entry>
|
|---|
| 756 | <itemizedlist spacing="compact">
|
|---|
| 757 | <listitem><para>
|
|---|
| 758 | Primitive scorer
|
|---|
| 759 | </para></listitem>
|
|---|
| 760 | <listitem><para>
|
|---|
| 761 | Filter
|
|---|
| 762 | </para></listitem>
|
|---|
| 763 | </itemizedlist>
|
|---|
| 764 | </entry>
|
|---|
| 765 | </row>
|
|---|
| 766 | <row>
|
|---|
| 767 | <entry>
|
|---|
| 768 | PIIM
|
|---|
| 769 | </entry>
|
|---|
| 770 | <entry>
|
|---|
| 771 | <itemizedlist spacing="compact">
|
|---|
| 772 | <listitem><para>
|
|---|
| 773 | EM set
|
|---|
| 774 | </para></listitem>
|
|---|
| 775 | <listitem><para>
|
|---|
| 776 | mixtures and compound elements
|
|---|
| 777 | </para></listitem>
|
|---|
| 778 | </itemizedlist>
|
|---|
| 779 | </entry>
|
|---|
| 780 | </row>
|
|---|
| 781 | <row>
|
|---|
| 782 | <entry>
|
|---|
| 783 | Physics
|
|---|
| 784 | </entry>
|
|---|
| 785 | <entry>
|
|---|
| 786 | EM processes
|
|---|
| 787 | </entry>
|
|---|
| 788 | </row>
|
|---|
| 789 | <row>
|
|---|
| 790 | <entry>
|
|---|
| 791 | Vis
|
|---|
| 792 | </entry>
|
|---|
| 793 | <entry>
|
|---|
| 794 | detector & trajectory drawing
|
|---|
| 795 | </entry>
|
|---|
| 796 | </row>
|
|---|
| 797 | <row>
|
|---|
| 798 | <entry>
|
|---|
| 799 | (G)UI
|
|---|
| 800 | </entry>
|
|---|
| 801 | <entry>
|
|---|
| 802 | define user commands
|
|---|
| 803 | </entry>
|
|---|
| 804 | </row>
|
|---|
| 805 | <row>
|
|---|
| 806 | <entry>
|
|---|
| 807 | Global
|
|---|
| 808 | </entry>
|
|---|
| 809 | <entry align="center">
|
|---|
| 810 | -
|
|---|
| 811 | </entry>
|
|---|
| 812 | </row>
|
|---|
| 813 | </tbody>
|
|---|
| 814 | </tgroup>
|
|---|
| 815 | </table>
|
|---|
| 816 | </para>
|
|---|
| 817 |
|
|---|
| 818 | </sect2>
|
|---|
| 819 |
|
|---|
| 820 | <!-- ******************* Section (Level#2) ****************** -->
|
|---|
| 821 | <sect2 id="sect.ExmpNvc.Exmp01">
|
|---|
| 822 | <title>
|
|---|
| 823 | Example N01
|
|---|
| 824 | </title>
|
|---|
| 825 |
|
|---|
| 826 | <!-- ******* Bridgehead ******* -->
|
|---|
| 827 | <bridgehead renderas='sect4'>
|
|---|
| 828 | Basic concepts
|
|---|
| 829 | </bridgehead>
|
|---|
| 830 |
|
|---|
| 831 | <itemizedlist spacing="compact">
|
|---|
| 832 | <listitem><para>
|
|---|
| 833 | minimal set for geantino transportation
|
|---|
| 834 | </para></listitem>
|
|---|
| 835 | </itemizedlist>
|
|---|
| 836 |
|
|---|
| 837 |
|
|---|
| 838 | <!-- ******* Bridgehead ******* -->
|
|---|
| 839 | <bridgehead renderas='sect4'>
|
|---|
| 840 | Classes
|
|---|
| 841 | </bridgehead>
|
|---|
| 842 |
|
|---|
| 843 | <para>
|
|---|
| 844 | <literal>main()</literal>
|
|---|
| 845 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/exampleN01.cc">
|
|---|
| 846 | (source file)
|
|---|
| 847 | </ulink>
|
|---|
| 848 |
|
|---|
| 849 | <itemizedlist spacing="compact">
|
|---|
| 850 | <listitem><para>
|
|---|
| 851 | hard coded batch
|
|---|
| 852 | </para></listitem>
|
|---|
| 853 | <listitem><para>
|
|---|
| 854 | construction and deletion of <emphasis>G4RunManager</emphasis>
|
|---|
| 855 | </para></listitem>
|
|---|
| 856 | <listitem><para>
|
|---|
| 857 | hard coded verbose level setting to <emphasis>G4RunManager</emphasis>,
|
|---|
| 858 | <emphasis>G4EventManager</emphasis> and
|
|---|
| 859 | <emphasis>G4TrackingManager</emphasis>
|
|---|
| 860 | </para></listitem>
|
|---|
| 861 | <listitem><para>
|
|---|
| 862 | construction and set of mandatory user classes
|
|---|
| 863 | </para></listitem>
|
|---|
| 864 | <listitem><para>
|
|---|
| 865 | hard coded <literal>beamOn()</literal>
|
|---|
| 866 | </para></listitem>
|
|---|
| 867 | <listitem><para>
|
|---|
| 868 | Hard coded UI command application
|
|---|
| 869 | </para></listitem>
|
|---|
| 870 | </itemizedlist>
|
|---|
| 871 | </para>
|
|---|
| 872 |
|
|---|
| 873 | <!-- ******* Bridgehead ******* -->
|
|---|
| 874 | <bridgehead renderas='sect4'>
|
|---|
| 875 | ExN01DetectorConstruction
|
|---|
| 876 | </bridgehead>
|
|---|
| 877 |
|
|---|
| 878 | <para>
|
|---|
| 879 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/include/ExN01DetectorConstruction.hh">
|
|---|
| 880 | (header file)
|
|---|
| 881 | </ulink>
|
|---|
| 882 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/src/ExN01DetectorConstruction.cc">
|
|---|
| 883 | (source file)
|
|---|
| 884 | </ulink>
|
|---|
| 885 |
|
|---|
| 886 | <itemizedlist spacing="compact">
|
|---|
| 887 | <listitem><para>
|
|---|
| 888 | derived from G4VUserDetectorConstruction
|
|---|
| 889 | </para></listitem>
|
|---|
| 890 | <listitem><para>
|
|---|
| 891 | definitions of single element materials
|
|---|
| 892 | </para></listitem>
|
|---|
| 893 | <listitem><para>
|
|---|
| 894 | CSG solids
|
|---|
| 895 | </para></listitem>
|
|---|
| 896 | <listitem><para>
|
|---|
| 897 | <emphasis>G4PVPlacement</emphasis> without rotation
|
|---|
| 898 | </para></listitem>
|
|---|
| 899 | </itemizedlist>
|
|---|
| 900 | </para>
|
|---|
| 901 |
|
|---|
| 902 | <!-- ******* Bridgehead ******* -->
|
|---|
| 903 | <bridgehead renderas='sect4'>
|
|---|
| 904 | ExN01PhysicsList
|
|---|
| 905 | </bridgehead>
|
|---|
| 906 |
|
|---|
| 907 | <para>
|
|---|
| 908 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/include/ExN01PhysicsList.hh">
|
|---|
| 909 | (header file)
|
|---|
| 910 | </ulink>
|
|---|
| 911 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/src/ExN01PhysicsList.cc">
|
|---|
| 912 | (source file)
|
|---|
| 913 | </ulink>
|
|---|
| 914 |
|
|---|
| 915 | <itemizedlist spacing="compact">
|
|---|
| 916 | <listitem><para>
|
|---|
| 917 | derived from <emphasis>G4VUserPhysicsList</emphasis>
|
|---|
| 918 | </para></listitem>
|
|---|
| 919 | <listitem><para>
|
|---|
| 920 | definition of geantino
|
|---|
| 921 | </para></listitem>
|
|---|
| 922 | <listitem><para>
|
|---|
| 923 | assignment of transportation process
|
|---|
| 924 | </para></listitem>
|
|---|
| 925 | </itemizedlist>
|
|---|
| 926 | </para>
|
|---|
| 927 |
|
|---|
| 928 | <!-- ******* Bridgehead ******* -->
|
|---|
| 929 | <bridgehead renderas='sect4'>
|
|---|
| 930 | ExN01PrimaryGeneratorAction
|
|---|
| 931 | </bridgehead>
|
|---|
| 932 |
|
|---|
| 933 | <para>
|
|---|
| 934 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/include/ExN01PrimaryGeneratorAction.hh">
|
|---|
| 935 | (header file)
|
|---|
| 936 | </ulink>
|
|---|
| 937 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/src/ExN01PrimaryGeneratorAction.cc">
|
|---|
| 938 | (source file)
|
|---|
| 939 | </ulink>
|
|---|
| 940 |
|
|---|
| 941 | <itemizedlist spacing="compact">
|
|---|
| 942 | <listitem><para>
|
|---|
| 943 | derived from <emphasis>G4VPrimaryGeneratorAction</emphasis>
|
|---|
| 944 | </para></listitem>
|
|---|
| 945 | <listitem><para>
|
|---|
| 946 | construction of <emphasis>G4ParticleGun</emphasis>
|
|---|
| 947 | </para></listitem>
|
|---|
| 948 | <listitem><para>
|
|---|
| 949 | primary event generation via particle gun
|
|---|
| 950 | </para></listitem>
|
|---|
| 951 | </itemizedlist>
|
|---|
| 952 | </para>
|
|---|
| 953 |
|
|---|
| 954 | </sect2>
|
|---|
| 955 |
|
|---|
| 956 |
|
|---|
| 957 | <!-- ******************* Section (Level#2) ****************** -->
|
|---|
| 958 | <sect2 id="sect.ExmpNvc.Exmp02">
|
|---|
| 959 | <title>
|
|---|
| 960 | Example N02
|
|---|
| 961 | </title>
|
|---|
| 962 |
|
|---|
| 963 | <!-- ******* Bridgehead ******* -->
|
|---|
| 964 | <bridgehead renderas='sect4'>
|
|---|
| 965 | Basic concepts
|
|---|
| 966 | </bridgehead>
|
|---|
| 967 |
|
|---|
| 968 | <para>
|
|---|
| 969 | <itemizedlist spacing="compact">
|
|---|
| 970 | <listitem><para>
|
|---|
| 971 | Detector: fixed target type
|
|---|
| 972 | </para></listitem>
|
|---|
| 973 | <listitem><para>
|
|---|
| 974 | Processes: EM
|
|---|
| 975 | </para></listitem>
|
|---|
| 976 | <listitem><para>
|
|---|
| 977 | Hits: tracker type hits
|
|---|
| 978 | </para></listitem>
|
|---|
| 979 | </itemizedlist>
|
|---|
| 980 | </para>
|
|---|
| 981 |
|
|---|
| 982 | <!-- ******* Bridgehead ******* -->
|
|---|
| 983 | <bridgehead renderas='sect4'>
|
|---|
| 984 | Classes
|
|---|
| 985 | </bridgehead>
|
|---|
| 986 |
|
|---|
| 987 | <para>
|
|---|
| 988 | <literal>main()</literal>
|
|---|
| 989 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/exampleN02.cc">
|
|---|
| 990 | (source file)
|
|---|
| 991 | </ulink>
|
|---|
| 992 |
|
|---|
| 993 | <itemizedlist spacing="compact">
|
|---|
| 994 | <listitem><para>
|
|---|
| 995 | <literal>main()</literal> for interactive mode (and batch mode via macro
|
|---|
| 996 | file)
|
|---|
| 997 | </para></listitem>
|
|---|
| 998 | <listitem><para>
|
|---|
| 999 | construction and deletion of (G)UI session and
|
|---|
| 1000 | <emphasis>VisManager</emphasis>
|
|---|
| 1001 | </para></listitem>
|
|---|
| 1002 | <listitem><para>
|
|---|
| 1003 | random number engine
|
|---|
| 1004 | </para></listitem>
|
|---|
| 1005 | <listitem><para>
|
|---|
| 1006 | construction and deletion of <emphasis>G4RunManager</emphasis>
|
|---|
| 1007 | </para></listitem>
|
|---|
| 1008 | <listitem><para>
|
|---|
| 1009 | construction and set of mandatory user classes
|
|---|
| 1010 | </para></listitem>
|
|---|
| 1011 | </itemizedlist>
|
|---|
| 1012 | </para>
|
|---|
| 1013 |
|
|---|
| 1014 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1015 | <bridgehead renderas='sect4'>
|
|---|
| 1016 | ExN02DetectorConstruction
|
|---|
| 1017 | </bridgehead>
|
|---|
| 1018 |
|
|---|
| 1019 | <para>
|
|---|
| 1020 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/include/ExN02DetectorConstruction.hh">
|
|---|
| 1021 | (header file)
|
|---|
| 1022 | </ulink>
|
|---|
| 1023 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/src/ExN02DetectorConstruction.cc">
|
|---|
| 1024 | (source file)
|
|---|
| 1025 | </ulink>
|
|---|
| 1026 |
|
|---|
| 1027 | <itemizedlist spacing="compact">
|
|---|
| 1028 | <listitem><para>
|
|---|
| 1029 | derived from <emphasis>G4VUserDetectorConstruction</emphasis>
|
|---|
| 1030 | </para></listitem>
|
|---|
| 1031 | <listitem><para>
|
|---|
| 1032 | definitions of single-element, mixture and compound materials
|
|---|
| 1033 | </para></listitem>
|
|---|
| 1034 | <listitem><para>
|
|---|
| 1035 | CSG solids
|
|---|
| 1036 | </para></listitem>
|
|---|
| 1037 | <listitem><para>
|
|---|
| 1038 | Uniform magnetic field: construction of
|
|---|
| 1039 | <emphasis>ExN02MagneticField</emphasis>
|
|---|
| 1040 | </para></listitem>
|
|---|
| 1041 | <listitem><para>
|
|---|
| 1042 | Physical Volumes
|
|---|
| 1043 | <itemizedlist spacing="compact">
|
|---|
| 1044 | <listitem><para>
|
|---|
| 1045 | <emphasis>G4Placement</emphasis> volumes with & without rotation.
|
|---|
| 1046 | </para></listitem>
|
|---|
| 1047 | <listitem><para>
|
|---|
| 1048 | <emphasis>G4PVParameterised</emphasis> volumes without rotation
|
|---|
| 1049 | </para></listitem>
|
|---|
| 1050 | </itemizedlist>
|
|---|
| 1051 | </para></listitem>
|
|---|
| 1052 | </itemizedlist>
|
|---|
| 1053 | </para>
|
|---|
| 1054 |
|
|---|
| 1055 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1056 | <bridgehead renderas='sect4'>
|
|---|
| 1057 | ExN02MagneticField
|
|---|
| 1058 | </bridgehead>
|
|---|
| 1059 |
|
|---|
| 1060 | <para>
|
|---|
| 1061 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/include/ExN02MagneticField.hh">
|
|---|
| 1062 | (header file)
|
|---|
| 1063 | </ulink>
|
|---|
| 1064 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/src/ExN02MagneticField.cc">
|
|---|
| 1065 | (source file)
|
|---|
| 1066 | </ulink>
|
|---|
| 1067 |
|
|---|
| 1068 | <itemizedlist spacing="compact">
|
|---|
| 1069 | <listitem><para>
|
|---|
| 1070 | derived from <emphasis>G4MagneticField</emphasis>
|
|---|
| 1071 | </para></listitem>
|
|---|
| 1072 | <listitem><para>
|
|---|
| 1073 | Uniform field. <emphasis>ExN02MagneticField</emphasis>
|
|---|
| 1074 | </para></listitem>
|
|---|
| 1075 | </itemizedlist>
|
|---|
| 1076 | </para>
|
|---|
| 1077 |
|
|---|
| 1078 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1079 | <bridgehead renderas='sect4'>
|
|---|
| 1080 | ExN02PhysicsList
|
|---|
| 1081 | </bridgehead>
|
|---|
| 1082 |
|
|---|
| 1083 | <para>
|
|---|
| 1084 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/include/ExN02PhysicsList.hh">
|
|---|
| 1085 | (header file)
|
|---|
| 1086 | </ulink>
|
|---|
| 1087 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/src/ExN02PhysicsList.cc">
|
|---|
| 1088 | (source file)
|
|---|
| 1089 | </ulink>
|
|---|
| 1090 |
|
|---|
| 1091 | <itemizedlist spacing="compact">
|
|---|
| 1092 | <listitem><para>
|
|---|
| 1093 | derived from <emphasis>G4VUserPhysicsList</emphasis>
|
|---|
| 1094 | </para></listitem>
|
|---|
| 1095 | <listitem><para>
|
|---|
| 1096 | definition of geantinos, electrons, positrons, gammas
|
|---|
| 1097 | </para></listitem>
|
|---|
| 1098 | <listitem><para>
|
|---|
| 1099 | utilisation of transportation and 'standard' EM-processes
|
|---|
| 1100 | </para></listitem>
|
|---|
| 1101 | <listitem><para>
|
|---|
| 1102 | Interactivity: chooses processes interactively (=> messenger class)
|
|---|
| 1103 | </para></listitem>
|
|---|
| 1104 | </itemizedlist>
|
|---|
| 1105 | </para>
|
|---|
| 1106 |
|
|---|
| 1107 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1108 | <bridgehead renderas='sect4'>
|
|---|
| 1109 | ExN02PrimaryGeneratorAction
|
|---|
| 1110 | </bridgehead>
|
|---|
| 1111 |
|
|---|
| 1112 | <para>
|
|---|
| 1113 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/include/ExN02PrimaryGeneratorAction.hh">
|
|---|
| 1114 | (header file)
|
|---|
| 1115 | </ulink>
|
|---|
| 1116 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/src/ExN02PrimaryGeneratorAction.cc">
|
|---|
| 1117 | (source file)
|
|---|
| 1118 | </ulink>
|
|---|
| 1119 |
|
|---|
| 1120 | <itemizedlist spacing="compact">
|
|---|
| 1121 | <listitem><para>
|
|---|
| 1122 | derived from <emphasis>G4VPrimaryGeneratorAction</emphasis>
|
|---|
| 1123 | </para></listitem>
|
|---|
| 1124 | <listitem><para>
|
|---|
| 1125 | construction of <emphasis>G4ParticleGun</emphasis>
|
|---|
| 1126 | </para></listitem>
|
|---|
| 1127 | <listitem><para>
|
|---|
| 1128 | primary event generation via particle gun
|
|---|
| 1129 | </para></listitem>
|
|---|
| 1130 | </itemizedlist>
|
|---|
| 1131 | </para>
|
|---|
| 1132 |
|
|---|
| 1133 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1134 | <bridgehead renderas='sect4'>
|
|---|
| 1135 | ExN02RunAction
|
|---|
| 1136 | </bridgehead>
|
|---|
| 1137 |
|
|---|
| 1138 | <para>
|
|---|
| 1139 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/include/ExN02RunAction.hh">
|
|---|
| 1140 | (header file)
|
|---|
| 1141 | </ulink>
|
|---|
| 1142 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/src/ExN02RunAction.cc">
|
|---|
| 1143 | (source file)
|
|---|
| 1144 | </ulink>
|
|---|
| 1145 |
|
|---|
| 1146 | <itemizedlist spacing="compact">
|
|---|
| 1147 | <listitem><para>
|
|---|
| 1148 | derived from <emphasis>G4VUserRunAction</emphasis>
|
|---|
| 1149 | </para></listitem>
|
|---|
| 1150 | <listitem><para>
|
|---|
| 1151 | draw detector
|
|---|
| 1152 | </para></listitem>
|
|---|
| 1153 | </itemizedlist>
|
|---|
| 1154 | </para>
|
|---|
| 1155 |
|
|---|
| 1156 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1157 | <bridgehead renderas='sect4'>
|
|---|
| 1158 | ExN02EventAction
|
|---|
| 1159 | </bridgehead>
|
|---|
| 1160 |
|
|---|
| 1161 | <para>
|
|---|
| 1162 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/include/ExN02EventAction.hh">
|
|---|
| 1163 | (header file)
|
|---|
| 1164 | </ulink>
|
|---|
| 1165 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/src/ExN02EventAction.cc">
|
|---|
| 1166 | (source file)
|
|---|
| 1167 | </ulink>
|
|---|
| 1168 |
|
|---|
| 1169 | <itemizedlist spacing="compact">
|
|---|
| 1170 | <listitem><para>
|
|---|
| 1171 | derived from <emphasis>G4VUserEventAction</emphasis>
|
|---|
| 1172 | </para></listitem>
|
|---|
| 1173 | <listitem><para>
|
|---|
| 1174 | print time information
|
|---|
| 1175 | </para></listitem>
|
|---|
| 1176 | </itemizedlist>
|
|---|
| 1177 | </para>
|
|---|
| 1178 |
|
|---|
| 1179 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1180 | <bridgehead renderas='sect4'>
|
|---|
| 1181 | ExN02TrackerSD
|
|---|
| 1182 | </bridgehead>
|
|---|
| 1183 |
|
|---|
| 1184 | <para>
|
|---|
| 1185 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/include/ExN02TrackerSD.hh">
|
|---|
| 1186 | (header file)
|
|---|
| 1187 | </ulink>
|
|---|
| 1188 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/src/ExN02TrackerSD.cc">
|
|---|
| 1189 | (source file)
|
|---|
| 1190 | </ulink>
|
|---|
| 1191 |
|
|---|
| 1192 | <itemizedlist spacing="compact">
|
|---|
| 1193 | <listitem><para>
|
|---|
| 1194 | derived from <emphasis>G4VSensitiveDetector</emphasis>
|
|---|
| 1195 | </para></listitem>
|
|---|
| 1196 | <listitem><para>
|
|---|
| 1197 | tracker-type hit generation
|
|---|
| 1198 | </para></listitem>
|
|---|
| 1199 | </itemizedlist>
|
|---|
| 1200 | </para>
|
|---|
| 1201 |
|
|---|
| 1202 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1203 | <bridgehead renderas='sect4'>
|
|---|
| 1204 | ExN02TrackerHit
|
|---|
| 1205 | </bridgehead>
|
|---|
| 1206 |
|
|---|
| 1207 | <para>
|
|---|
| 1208 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/include/ExN02TrackerHit.hh">
|
|---|
| 1209 | (header file)
|
|---|
| 1210 | </ulink>
|
|---|
| 1211 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N02/src/ExN02TrackerHit.cc">
|
|---|
| 1212 | (source file)
|
|---|
| 1213 | </ulink>
|
|---|
| 1214 |
|
|---|
| 1215 | <itemizedlist spacing="compact">
|
|---|
| 1216 | <listitem><para>
|
|---|
| 1217 | derived from <emphasis>G4VHit</emphasis>
|
|---|
| 1218 | </para></listitem>
|
|---|
| 1219 | <listitem><para>
|
|---|
| 1220 | draw hit point
|
|---|
| 1221 | </para></listitem>
|
|---|
| 1222 | </itemizedlist>
|
|---|
| 1223 | </para>
|
|---|
| 1224 |
|
|---|
| 1225 | </sect2>
|
|---|
| 1226 |
|
|---|
| 1227 |
|
|---|
| 1228 | <!-- ******************* Section (Level#2) ****************** -->
|
|---|
| 1229 | <sect2 id="sect.ExmpNvc.Exmp03">
|
|---|
| 1230 | <title>
|
|---|
| 1231 | Example N03
|
|---|
| 1232 | </title>
|
|---|
| 1233 |
|
|---|
| 1234 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1235 | <bridgehead renderas='sect4'>
|
|---|
| 1236 | Basic concepts
|
|---|
| 1237 | </bridgehead>
|
|---|
| 1238 |
|
|---|
| 1239 | <para>
|
|---|
| 1240 | <itemizedlist spacing="compact">
|
|---|
| 1241 | <listitem><para>
|
|---|
| 1242 | Visualize Em processes.
|
|---|
| 1243 | </para></listitem>
|
|---|
| 1244 | <listitem><para>
|
|---|
| 1245 | Interactivity: build messenger classes.
|
|---|
| 1246 | </para></listitem>
|
|---|
| 1247 | <listitem><para>
|
|---|
| 1248 | Gun: shoot particle randomly.
|
|---|
| 1249 | </para></listitem>
|
|---|
| 1250 | <listitem><para>
|
|---|
| 1251 | Tracking: collect energy deposition, total track length
|
|---|
| 1252 | </para></listitem>
|
|---|
| 1253 | </itemizedlist>
|
|---|
| 1254 | </para>
|
|---|
| 1255 |
|
|---|
| 1256 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1257 | <bridgehead renderas='sect4'>
|
|---|
| 1258 | Classes
|
|---|
| 1259 | </bridgehead>
|
|---|
| 1260 |
|
|---|
| 1261 | <para>
|
|---|
| 1262 | <literal>main()</literal>
|
|---|
| 1263 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/exampleN03.cc">
|
|---|
| 1264 | (source file)
|
|---|
| 1265 | </ulink>
|
|---|
| 1266 |
|
|---|
| 1267 | <itemizedlist spacing="compact">
|
|---|
| 1268 | <listitem><para>
|
|---|
| 1269 | <literal>main()</literal> for interactive mode and batch mode via macro
|
|---|
| 1270 | file
|
|---|
| 1271 | </para></listitem>
|
|---|
| 1272 | <listitem><para>
|
|---|
| 1273 | construction and deletion of <emphasis>G4RunManager</emphasis>
|
|---|
| 1274 | </para></listitem>
|
|---|
| 1275 | <listitem><para>
|
|---|
| 1276 | construction and deletion of (G)UI session and
|
|---|
| 1277 | <emphasis>VisManager</emphasis>
|
|---|
| 1278 | </para></listitem>
|
|---|
| 1279 | <listitem><para>
|
|---|
| 1280 | construction and set of mandatory user classes
|
|---|
| 1281 | </para></listitem>
|
|---|
| 1282 | <listitem><para>
|
|---|
| 1283 | automatic initialization of geometry and visualization via a
|
|---|
| 1284 | macro file
|
|---|
| 1285 | </para></listitem>
|
|---|
| 1286 | </itemizedlist>
|
|---|
| 1287 | </para>
|
|---|
| 1288 |
|
|---|
| 1289 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1290 | <bridgehead renderas='sect4'>
|
|---|
| 1291 | ExN03DetectorConstruction
|
|---|
| 1292 | </bridgehead>
|
|---|
| 1293 |
|
|---|
| 1294 | <para>
|
|---|
| 1295 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/include/ExN03DetectorConstruction.hh">
|
|---|
| 1296 | (header file)
|
|---|
| 1297 | </ulink>
|
|---|
| 1298 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/src/ExN03DetectorConstruction.cc">
|
|---|
| 1299 | (source file)
|
|---|
| 1300 | </ulink>
|
|---|
| 1301 |
|
|---|
| 1302 | <itemizedlist spacing="compact">
|
|---|
| 1303 | <listitem><para>
|
|---|
| 1304 | derived from <emphasis>G4VUserDetectorConstruction</emphasis>
|
|---|
| 1305 | </para></listitem>
|
|---|
| 1306 | <listitem><para>
|
|---|
| 1307 | definitions of single materials and mixtures
|
|---|
| 1308 | </para></listitem>
|
|---|
| 1309 | <listitem><para>
|
|---|
| 1310 | CSG solids
|
|---|
| 1311 | </para></listitem>
|
|---|
| 1312 | <listitem><para>
|
|---|
| 1313 | <emphasis>G4PVPlacement</emphasis> without rotation
|
|---|
| 1314 | </para></listitem>
|
|---|
| 1315 | <listitem><para>
|
|---|
| 1316 | Interactivity: change detector size, material, magnetic field.
|
|---|
| 1317 | (=>messenger class)
|
|---|
| 1318 | </para></listitem>
|
|---|
| 1319 | <listitem><para>
|
|---|
| 1320 | visualization
|
|---|
| 1321 | </para></listitem>
|
|---|
| 1322 | </itemizedlist>
|
|---|
| 1323 | </para>
|
|---|
| 1324 |
|
|---|
| 1325 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1326 | <bridgehead renderas='sect4'>
|
|---|
| 1327 | ExN03PhysicsList
|
|---|
| 1328 | </bridgehead>
|
|---|
| 1329 |
|
|---|
| 1330 | <para>
|
|---|
| 1331 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/include/ExN03PhysicsList.hh">
|
|---|
| 1332 | (header file)
|
|---|
| 1333 | </ulink>
|
|---|
| 1334 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/src/ExN03PhysicsList.cc">
|
|---|
| 1335 | (source file)
|
|---|
| 1336 | </ulink>
|
|---|
| 1337 |
|
|---|
| 1338 | <itemizedlist spacing="compact">
|
|---|
| 1339 | <listitem><para>
|
|---|
| 1340 | derived from <emphasis>G4VUserPhysicsList</emphasis>
|
|---|
| 1341 | </para></listitem>
|
|---|
| 1342 | <listitem><para>
|
|---|
| 1343 | definition of geantinos, gamma, leptons, light mesons barions
|
|---|
| 1344 | and ions
|
|---|
| 1345 | </para></listitem>
|
|---|
| 1346 | <listitem><para>
|
|---|
| 1347 | Transportation process, 'standard' Em processes, Decay
|
|---|
| 1348 | </para></listitem>
|
|---|
| 1349 | <listitem><para>
|
|---|
| 1350 | Interactivity: <emphasis>SetCut</emphasis>, process on/off. (=> messenger
|
|---|
| 1351 | class)
|
|---|
| 1352 | </para></listitem>
|
|---|
| 1353 | </itemizedlist>
|
|---|
| 1354 | </para>
|
|---|
| 1355 |
|
|---|
| 1356 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1357 | <bridgehead renderas='sect4'>
|
|---|
| 1358 | ExN03PrimaryGeneratorAction
|
|---|
| 1359 | </bridgehead>
|
|---|
| 1360 |
|
|---|
| 1361 | <para>
|
|---|
| 1362 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/include/ExN03PrimaryGeneratorAction.hh">
|
|---|
| 1363 | (header file)
|
|---|
| 1364 | </ulink>
|
|---|
| 1365 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/src/ExN03PrimaryGeneratorAction.cc">
|
|---|
| 1366 | (source file)
|
|---|
| 1367 | </ulink>
|
|---|
| 1368 |
|
|---|
| 1369 | <itemizedlist spacing="compact">
|
|---|
| 1370 | <listitem><para>
|
|---|
| 1371 | derived from <emphasis>G4VPrimaryGeneratorAction</emphasis>
|
|---|
| 1372 | </para></listitem>
|
|---|
| 1373 | <listitem><para>
|
|---|
| 1374 | construction of <emphasis>G4ParticleGun</emphasis>
|
|---|
| 1375 | </para></listitem>
|
|---|
| 1376 | <listitem><para>
|
|---|
| 1377 | primary event generation via particle gun
|
|---|
| 1378 | </para></listitem>
|
|---|
| 1379 | <listitem><para>
|
|---|
| 1380 | Interactivity: shoot particle randomly. (=> messenger
|
|---|
| 1381 | class)
|
|---|
| 1382 | </para></listitem>
|
|---|
| 1383 | </itemizedlist>
|
|---|
| 1384 | </para>
|
|---|
| 1385 |
|
|---|
| 1386 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1387 | <bridgehead renderas='sect4'>
|
|---|
| 1388 | ExN03RunAction
|
|---|
| 1389 | </bridgehead>
|
|---|
| 1390 |
|
|---|
| 1391 | <para>
|
|---|
| 1392 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/include/ExN03RunAction.hh">
|
|---|
| 1393 | (header file)
|
|---|
| 1394 | </ulink>
|
|---|
| 1395 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/src/ExN03RunAction.cc">
|
|---|
| 1396 | (source file)
|
|---|
| 1397 | </ulink>
|
|---|
| 1398 |
|
|---|
| 1399 | <itemizedlist spacing="compact">
|
|---|
| 1400 | <listitem><para>
|
|---|
| 1401 | derived from <emphasis>G4VUserRunAction</emphasis>
|
|---|
| 1402 | </para></listitem>
|
|---|
| 1403 | <listitem><para>
|
|---|
| 1404 | draw detector and tracks
|
|---|
| 1405 | </para></listitem>
|
|---|
| 1406 | <listitem><para>
|
|---|
| 1407 | Interactivity: <emphasis>SetCut,</emphasis> process on/off.
|
|---|
| 1408 | </para></listitem>
|
|---|
| 1409 | <listitem><para>
|
|---|
| 1410 | Interactivity: change detector size, material, magnetic field.
|
|---|
| 1411 | </para></listitem>
|
|---|
| 1412 | </itemizedlist>
|
|---|
| 1413 | </para>
|
|---|
| 1414 |
|
|---|
| 1415 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1416 | <bridgehead renderas='sect4'>
|
|---|
| 1417 | ExN03EventAction
|
|---|
| 1418 | </bridgehead>
|
|---|
| 1419 |
|
|---|
| 1420 | <para>
|
|---|
| 1421 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN03EventAction.hh">
|
|---|
| 1422 | (header file)
|
|---|
| 1423 | </ulink>
|
|---|
| 1424 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN03EventAction.cc">
|
|---|
| 1425 | (source file)
|
|---|
| 1426 | </ulink>
|
|---|
| 1427 |
|
|---|
| 1428 | <itemizedlist spacing="compact">
|
|---|
| 1429 | <listitem><para>
|
|---|
| 1430 | derived from <emphasis>G4VUserEventAction</emphasis>
|
|---|
| 1431 | </para></listitem>
|
|---|
| 1432 | <listitem><para>
|
|---|
| 1433 | store trajectories
|
|---|
| 1434 | </para></listitem>
|
|---|
| 1435 | <listitem><para>
|
|---|
| 1436 | print end of event information (energy deposited, etc.)
|
|---|
| 1437 | </para></listitem>
|
|---|
| 1438 | </itemizedlist>
|
|---|
| 1439 | </para>
|
|---|
| 1440 |
|
|---|
| 1441 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1442 | <bridgehead renderas='sect4'>
|
|---|
| 1443 | ExN03SteppingAction
|
|---|
| 1444 | </bridgehead>
|
|---|
| 1445 |
|
|---|
| 1446 | <para>
|
|---|
| 1447 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/include/ExN03SteppingAction.hh">
|
|---|
| 1448 | (header file)
|
|---|
| 1449 | </ulink>
|
|---|
| 1450 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N03/src/ExN03SteppingAction.cc">
|
|---|
| 1451 | (source file)
|
|---|
| 1452 | </ulink>
|
|---|
| 1453 |
|
|---|
| 1454 | <itemizedlist spacing="compact">
|
|---|
| 1455 | <listitem><para>
|
|---|
| 1456 | derived from <emphasis>G4VUserSteppingAction</emphasis>
|
|---|
| 1457 | </para></listitem>
|
|---|
| 1458 | <listitem><para>
|
|---|
| 1459 | collect energy deposition, etc.
|
|---|
| 1460 | </para></listitem>
|
|---|
| 1461 | </itemizedlist>
|
|---|
| 1462 | </para>
|
|---|
| 1463 |
|
|---|
| 1464 | </sect2>
|
|---|
| 1465 |
|
|---|
| 1466 |
|
|---|
| 1467 | <!-- ******************* Section (Level#2) ****************** -->
|
|---|
| 1468 | <sect2 id="sect.ExmpNvc.Exmp04">
|
|---|
| 1469 | <title>
|
|---|
| 1470 | Example N04
|
|---|
| 1471 | </title>
|
|---|
| 1472 |
|
|---|
| 1473 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1474 | <bridgehead renderas='sect4'>
|
|---|
| 1475 | Basic concepts
|
|---|
| 1476 | </bridgehead>
|
|---|
| 1477 |
|
|---|
| 1478 | <para>
|
|---|
| 1479 | <itemizedlist spacing="compact">
|
|---|
| 1480 | <listitem><para>
|
|---|
| 1481 | Simplified collider experiment geometry
|
|---|
| 1482 | </para></listitem>
|
|---|
| 1483 | <listitem><para>
|
|---|
| 1484 | Full hits/digits/trigger
|
|---|
| 1485 | </para></listitem>
|
|---|
| 1486 | </itemizedlist>
|
|---|
| 1487 | </para>
|
|---|
| 1488 |
|
|---|
| 1489 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1490 | <bridgehead renderas='sect4'>
|
|---|
| 1491 | Classes
|
|---|
| 1492 | </bridgehead>
|
|---|
| 1493 |
|
|---|
| 1494 | <para>
|
|---|
| 1495 | <literal>main()</literal>
|
|---|
| 1496 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/exampleN04.cc">
|
|---|
| 1497 | (source file)
|
|---|
| 1498 | </ulink>
|
|---|
| 1499 |
|
|---|
| 1500 | <itemizedlist spacing="compact">
|
|---|
| 1501 | <listitem><para>
|
|---|
| 1502 | construction and deletion of <emphasis>ExN04RunManager</emphasis>
|
|---|
| 1503 | </para></listitem>
|
|---|
| 1504 | <listitem><para>
|
|---|
| 1505 | construction and deletion of (G)UI session and
|
|---|
| 1506 | <emphasis>VisManager</emphasis>
|
|---|
| 1507 | </para></listitem>
|
|---|
| 1508 | <listitem><para>
|
|---|
| 1509 | construction and set of user classes
|
|---|
| 1510 | </para></listitem>
|
|---|
| 1511 | </itemizedlist>
|
|---|
| 1512 | </para>
|
|---|
| 1513 |
|
|---|
| 1514 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1515 | <bridgehead renderas='sect4'>
|
|---|
| 1516 | ExN04DetectorConstruction
|
|---|
| 1517 | </bridgehead>
|
|---|
| 1518 |
|
|---|
| 1519 | <para>
|
|---|
| 1520 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04DetectorConstruction.hh">
|
|---|
| 1521 | (header file)
|
|---|
| 1522 | </ulink>
|
|---|
| 1523 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04DetectorConstruction.cc">
|
|---|
| 1524 | (source file)
|
|---|
| 1525 | </ulink>
|
|---|
| 1526 |
|
|---|
| 1527 | <itemizedlist spacing="compact">
|
|---|
| 1528 | <listitem><para>
|
|---|
| 1529 | derived from <emphasis>G4VUserDetectorConstruction</emphasis>
|
|---|
| 1530 | </para></listitem>
|
|---|
| 1531 | <listitem><para>
|
|---|
| 1532 | construction of <emphasis>ExN04MagneticField</emphasis>
|
|---|
| 1533 | </para></listitem>
|
|---|
| 1534 | <listitem><para>
|
|---|
| 1535 | definitions of mixture and compound materials
|
|---|
| 1536 | </para></listitem>
|
|---|
| 1537 | <listitem><para>
|
|---|
| 1538 | material-dependent CutOff
|
|---|
| 1539 | </para></listitem>
|
|---|
| 1540 | <listitem><para>
|
|---|
| 1541 | simplified collider geometry with Param/Replica
|
|---|
| 1542 | </para></listitem>
|
|---|
| 1543 | <listitem><para>
|
|---|
| 1544 | tracker/muon -- parametrised
|
|---|
| 1545 | </para></listitem>
|
|---|
| 1546 | <listitem><para>
|
|---|
| 1547 | calorimeter -- replica</para></listitem>
|
|---|
| 1548 | </itemizedlist>
|
|---|
| 1549 | </para>
|
|---|
| 1550 |
|
|---|
| 1551 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1552 | <bridgehead renderas='sect4'>
|
|---|
| 1553 | ExN04TrackerParametrisation
|
|---|
| 1554 | </bridgehead>
|
|---|
| 1555 |
|
|---|
| 1556 | <para>
|
|---|
| 1557 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04TrackerParametrisation.hh">
|
|---|
| 1558 | (header file)
|
|---|
| 1559 | </ulink>
|
|---|
| 1560 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04TrackerParametrisation.cc">
|
|---|
| 1561 | (source file)
|
|---|
| 1562 | </ulink>
|
|---|
| 1563 |
|
|---|
| 1564 | <itemizedlist spacing="compact">
|
|---|
| 1565 | <listitem><para>
|
|---|
| 1566 | derived from <emphasis>G4VPVParametrisation</emphasis>
|
|---|
| 1567 | </para></listitem>
|
|---|
| 1568 | <listitem><para>
|
|---|
| 1569 | parametrised sizes
|
|---|
| 1570 | </para></listitem>
|
|---|
| 1571 | </itemizedlist>
|
|---|
| 1572 | </para>
|
|---|
| 1573 |
|
|---|
| 1574 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1575 | <bridgehead renderas='sect4'>
|
|---|
| 1576 | ExN04CalorimeterParametrisation
|
|---|
| 1577 | </bridgehead>
|
|---|
| 1578 |
|
|---|
| 1579 | <para>
|
|---|
| 1580 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04CalorimeterParametrisation.hh">
|
|---|
| 1581 | (header file)
|
|---|
| 1582 | </ulink>
|
|---|
| 1583 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04CalorimeterParametrisation.cc">
|
|---|
| 1584 | (source file)
|
|---|
| 1585 | </ulink>
|
|---|
| 1586 |
|
|---|
| 1587 | <itemizedlist spacing="compact">
|
|---|
| 1588 | <listitem><para>
|
|---|
| 1589 | derived from <emphasis>G4VPVParametrisation</emphasis>
|
|---|
| 1590 | </para></listitem>
|
|---|
| 1591 | <listitem><para>
|
|---|
| 1592 | parametrized position/rotation
|
|---|
| 1593 | </para></listitem>
|
|---|
| 1594 | </itemizedlist>
|
|---|
| 1595 | </para>
|
|---|
| 1596 |
|
|---|
| 1597 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1598 | <bridgehead renderas='sect4'>
|
|---|
| 1599 | ExN04MagneticField
|
|---|
| 1600 | </bridgehead>
|
|---|
| 1601 |
|
|---|
| 1602 | <para>
|
|---|
| 1603 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04MagneticField.hh">
|
|---|
| 1604 | (header file)
|
|---|
| 1605 | </ulink>
|
|---|
| 1606 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04MagneticField.cc">
|
|---|
| 1607 | (source file)
|
|---|
| 1608 | </ulink>
|
|---|
| 1609 |
|
|---|
| 1610 | <itemizedlist spacing="compact">
|
|---|
| 1611 | <listitem><para>
|
|---|
| 1612 | derived from <emphasis>G4MagneticField</emphasis>
|
|---|
| 1613 | </para></listitem>
|
|---|
| 1614 | <listitem><para>
|
|---|
| 1615 | solenoid and toroidal fields
|
|---|
| 1616 | </para></listitem>
|
|---|
| 1617 | </itemizedlist>
|
|---|
| 1618 | </para>
|
|---|
| 1619 |
|
|---|
| 1620 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1621 | <bridgehead renderas='sect4'>
|
|---|
| 1622 | ExN04TrackerSD
|
|---|
| 1623 | </bridgehead>
|
|---|
| 1624 |
|
|---|
| 1625 | <para>
|
|---|
| 1626 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04TrackerSD.hh">
|
|---|
| 1627 | (header file)
|
|---|
| 1628 | </ulink>
|
|---|
| 1629 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/src/ExN04TrackerSD.cc">
|
|---|
| 1630 | (source file)
|
|---|
| 1631 | </ulink>
|
|---|
| 1632 |
|
|---|
| 1633 | <itemizedlist spacing="compact">
|
|---|
| 1634 | <listitem><para>
|
|---|
| 1635 | derived from <emphasis>G4VSensitiveDetector</emphasis>
|
|---|
| 1636 | </para></listitem>
|
|---|
| 1637 | <listitem><para>
|
|---|
| 1638 | tracker-type hit generation
|
|---|
| 1639 | </para></listitem>
|
|---|
| 1640 | </itemizedlist>
|
|---|
| 1641 | </para>
|
|---|
| 1642 |
|
|---|
| 1643 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1644 | <bridgehead renderas='sect4'>
|
|---|
| 1645 | ExN04TrackerHit
|
|---|
| 1646 | </bridgehead>
|
|---|
| 1647 |
|
|---|
| 1648 | <para>
|
|---|
| 1649 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04TrackerHit.hh">
|
|---|
| 1650 | (header file)
|
|---|
| 1651 | </ulink>
|
|---|
| 1652 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04TrackerHit.cc">
|
|---|
| 1653 | (source file)
|
|---|
| 1654 | </ulink>
|
|---|
| 1655 |
|
|---|
| 1656 | <itemizedlist spacing="compact">
|
|---|
| 1657 | <listitem><para>
|
|---|
| 1658 | derived from <emphasis>G4VHit</emphasis>
|
|---|
| 1659 | </para></listitem>
|
|---|
| 1660 | <listitem><para>
|
|---|
| 1661 | draw hit point
|
|---|
| 1662 | </para></listitem>
|
|---|
| 1663 | </itemizedlist>
|
|---|
| 1664 | </para>
|
|---|
| 1665 |
|
|---|
| 1666 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1667 | <bridgehead renderas='sect4'>
|
|---|
| 1668 | ExN04CalorimeterSD
|
|---|
| 1669 | </bridgehead>
|
|---|
| 1670 |
|
|---|
| 1671 | <para>
|
|---|
| 1672 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04CalorimeterSD.hh">
|
|---|
| 1673 | (header file)
|
|---|
| 1674 | </ulink>
|
|---|
| 1675 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04CalorimeterSD.cc">
|
|---|
| 1676 | (source file)
|
|---|
| 1677 | </ulink>
|
|---|
| 1678 |
|
|---|
| 1679 | <itemizedlist spacing="compact">
|
|---|
| 1680 | <listitem><para>
|
|---|
| 1681 | derived from <emphasis>G4VSensitiveDetector</emphasis>
|
|---|
| 1682 | </para></listitem>
|
|---|
| 1683 | <listitem><para>
|
|---|
| 1684 | calorimeter-type hit generation
|
|---|
| 1685 | </para></listitem>
|
|---|
| 1686 | </itemizedlist>
|
|---|
| 1687 | </para>
|
|---|
| 1688 |
|
|---|
| 1689 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1690 | <bridgehead renderas='sect4'>
|
|---|
| 1691 | ExN04CalorimeterHit
|
|---|
| 1692 | </bridgehead>
|
|---|
| 1693 |
|
|---|
| 1694 | <para>
|
|---|
| 1695 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04CalorimeterHit.hh">
|
|---|
| 1696 | (header file)
|
|---|
| 1697 | </ulink>
|
|---|
| 1698 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04CalorimeterHit.cc">
|
|---|
| 1699 | (source file)
|
|---|
| 1700 | </ulink>
|
|---|
| 1701 |
|
|---|
| 1702 | <itemizedlist spacing="compact">
|
|---|
| 1703 | <listitem><para>
|
|---|
| 1704 | derived from <emphasis>G4VHit</emphasis>
|
|---|
| 1705 | </para></listitem>
|
|---|
| 1706 | <listitem><para>
|
|---|
| 1707 | draw physical volume with variable color
|
|---|
| 1708 | </para></listitem>
|
|---|
| 1709 | </itemizedlist>
|
|---|
| 1710 | </para>
|
|---|
| 1711 |
|
|---|
| 1712 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1713 | <bridgehead renderas='sect4'>
|
|---|
| 1714 | ExN04MuonSD
|
|---|
| 1715 | </bridgehead>
|
|---|
| 1716 |
|
|---|
| 1717 | <para>
|
|---|
| 1718 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/include/ExN04MuonSD.hh">
|
|---|
| 1719 | (header file)
|
|---|
| 1720 | </ulink>
|
|---|
| 1721 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N01/src/ExN04MuonSD.cc">
|
|---|
| 1722 | (source file)
|
|---|
| 1723 | </ulink>
|
|---|
| 1724 |
|
|---|
| 1725 | <itemizedlist spacing="compact">
|
|---|
| 1726 | <listitem><para>
|
|---|
| 1727 | derived from <emphasis>G4VSensitiveDetector</emphasis>
|
|---|
| 1728 | </para></listitem>
|
|---|
| 1729 | <listitem><para>
|
|---|
| 1730 | Scintillator-type hit generation
|
|---|
| 1731 | </para></listitem>
|
|---|
| 1732 | </itemizedlist>
|
|---|
| 1733 | </para>
|
|---|
| 1734 |
|
|---|
| 1735 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1736 | <bridgehead renderas='sect4'>
|
|---|
| 1737 | ExN04MuonHit
|
|---|
| 1738 | </bridgehead>
|
|---|
| 1739 |
|
|---|
| 1740 | <para>
|
|---|
| 1741 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04MuonHit.hh">
|
|---|
| 1742 | (header file)
|
|---|
| 1743 | </ulink>
|
|---|
| 1744 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04MuonHit.cc">
|
|---|
| 1745 | (source file)
|
|---|
| 1746 | </ulink>
|
|---|
| 1747 |
|
|---|
| 1748 | <itemizedlist spacing="compact">
|
|---|
| 1749 | <listitem><para>
|
|---|
| 1750 | derived from <emphasis>G4VHit</emphasis>
|
|---|
| 1751 | </para></listitem>
|
|---|
| 1752 | <listitem><para>
|
|---|
| 1753 | draw physical volume with variable color
|
|---|
| 1754 | </para></listitem>
|
|---|
| 1755 | </itemizedlist>
|
|---|
| 1756 | </para>
|
|---|
| 1757 |
|
|---|
| 1758 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1759 | <bridgehead renderas='sect4'>
|
|---|
| 1760 | ExN04PrimaryGeneratorAction
|
|---|
| 1761 | </bridgehead>
|
|---|
| 1762 |
|
|---|
| 1763 | <para>
|
|---|
| 1764 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04PrimaryGeneratorAction.hh">
|
|---|
| 1765 | (header file)
|
|---|
| 1766 | </ulink>
|
|---|
| 1767 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04PrimaryGeneratorAction.cc">
|
|---|
| 1768 | (source file)
|
|---|
| 1769 | </ulink>
|
|---|
| 1770 |
|
|---|
| 1771 | <itemizedlist spacing="compact">
|
|---|
| 1772 | <listitem><para>
|
|---|
| 1773 | derived from <emphasis>G4VPrimaryGeneratorAction</emphasis>
|
|---|
| 1774 | </para></listitem>
|
|---|
| 1775 | <listitem><para>
|
|---|
| 1776 | construction of <emphasis>G4HEPEvtInterface</emphasis>
|
|---|
| 1777 | </para></listitem>
|
|---|
| 1778 | <listitem><para>
|
|---|
| 1779 | primary event generation with PYTHIA event
|
|---|
| 1780 | </para></listitem>
|
|---|
| 1781 | </itemizedlist>
|
|---|
| 1782 | </para>
|
|---|
| 1783 |
|
|---|
| 1784 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1785 | <bridgehead renderas='sect4'>
|
|---|
| 1786 | ExN04EventAction
|
|---|
| 1787 | </bridgehead>
|
|---|
| 1788 |
|
|---|
| 1789 | <para>
|
|---|
| 1790 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04EventAction.hh">
|
|---|
| 1791 | (header file)
|
|---|
| 1792 | </ulink>
|
|---|
| 1793 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04EventAction.cc">
|
|---|
| 1794 | (source file)
|
|---|
| 1795 | </ulink>
|
|---|
| 1796 |
|
|---|
| 1797 | <itemizedlist spacing="compact">
|
|---|
| 1798 | <listitem><para>
|
|---|
| 1799 | store the initial seeds
|
|---|
| 1800 | </para></listitem>
|
|---|
| 1801 | </itemizedlist>
|
|---|
| 1802 | </para>
|
|---|
| 1803 |
|
|---|
| 1804 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1805 | <bridgehead renderas='sect4'>
|
|---|
| 1806 | ExN04StackingAction
|
|---|
| 1807 | </bridgehead>
|
|---|
| 1808 |
|
|---|
| 1809 | <para>
|
|---|
| 1810 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04StackingAction.hh">
|
|---|
| 1811 | (header file)
|
|---|
| 1812 | </ulink>
|
|---|
| 1813 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04StackingAction.cc">
|
|---|
| 1814 | (source file)
|
|---|
| 1815 | </ulink>
|
|---|
| 1816 |
|
|---|
| 1817 | <itemizedlist spacing="compact">
|
|---|
| 1818 | <listitem><para>
|
|---|
| 1819 | derived from <emphasis>G4UserStackingAction</emphasis>
|
|---|
| 1820 | </para></listitem>
|
|---|
| 1821 | <listitem><para>
|
|---|
| 1822 | ``stage'' control and priority control
|
|---|
| 1823 | </para></listitem>
|
|---|
| 1824 | <listitem><para>
|
|---|
| 1825 | event abortion
|
|---|
| 1826 | </para></listitem>
|
|---|
| 1827 | </itemizedlist>
|
|---|
| 1828 | </para>
|
|---|
| 1829 |
|
|---|
| 1830 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1831 | <bridgehead renderas='sect4'>
|
|---|
| 1832 | ExN04StackingActionMessenger
|
|---|
| 1833 | </bridgehead>
|
|---|
| 1834 |
|
|---|
| 1835 | <para>
|
|---|
| 1836 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04StackingActionMessenger.hh">
|
|---|
| 1837 | (header file)
|
|---|
| 1838 | </ulink>
|
|---|
| 1839 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04StackingActionMessenger.cc">
|
|---|
| 1840 | (source file)
|
|---|
| 1841 | </ulink>
|
|---|
| 1842 |
|
|---|
| 1843 | <itemizedlist spacing="compact">
|
|---|
| 1844 | <listitem><para>
|
|---|
| 1845 | derived from <emphasis>G4UImessenger</emphasis>
|
|---|
| 1846 | </para></listitem>
|
|---|
| 1847 | <listitem><para>
|
|---|
| 1848 | define abortion conditions
|
|---|
| 1849 | </para></listitem>
|
|---|
| 1850 | </itemizedlist>
|
|---|
| 1851 | </para>
|
|---|
| 1852 |
|
|---|
| 1853 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1854 | <bridgehead renderas='sect4'>
|
|---|
| 1855 | ExN04TrackingAction
|
|---|
| 1856 | </bridgehead>
|
|---|
| 1857 |
|
|---|
| 1858 | <para>
|
|---|
| 1859 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/include/ExN04TrackingAction.hh">
|
|---|
| 1860 | (header file)
|
|---|
| 1861 | </ulink>
|
|---|
| 1862 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N04/src/ExN04TrackingAction.cc">
|
|---|
| 1863 | (source file)
|
|---|
| 1864 | </ulink>
|
|---|
| 1865 |
|
|---|
| 1866 | <itemizedlist spacing="compact">
|
|---|
| 1867 | <listitem><para>
|
|---|
| 1868 | derived from <emphasis>G4UserTrackingAction</emphasis>
|
|---|
| 1869 | </para></listitem>
|
|---|
| 1870 | <listitem><para>
|
|---|
| 1871 | select trajectories
|
|---|
| 1872 | </para></listitem>
|
|---|
| 1873 | <listitem><para>
|
|---|
| 1874 | select secondaries
|
|---|
| 1875 | </para></listitem>
|
|---|
| 1876 | </itemizedlist>
|
|---|
| 1877 | </para>
|
|---|
| 1878 |
|
|---|
| 1879 | </sect2>
|
|---|
| 1880 |
|
|---|
| 1881 |
|
|---|
| 1882 | <!-- ******************* Section (Level#2) ****************** -->
|
|---|
| 1883 | <sect2 id="sect.ExmpNvc.Exmp05">
|
|---|
| 1884 | <title>
|
|---|
| 1885 | Example N05
|
|---|
| 1886 | </title>
|
|---|
| 1887 |
|
|---|
| 1888 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1889 | <bridgehead renderas='sect4'>
|
|---|
| 1890 | Basic concepts
|
|---|
| 1891 | </bridgehead>
|
|---|
| 1892 |
|
|---|
| 1893 | <para>
|
|---|
| 1894 | <itemizedlist spacing="compact">
|
|---|
| 1895 | <listitem><para>
|
|---|
| 1896 | Use of shower parameterisation:
|
|---|
| 1897 | <itemizedlist spacing="compact">
|
|---|
| 1898 | <listitem><para>
|
|---|
| 1899 | definition of an EM shower model
|
|---|
| 1900 | </para></listitem>
|
|---|
| 1901 | <listitem><para>
|
|---|
| 1902 | assignment to a Logical Volume
|
|---|
| 1903 | </para></listitem>
|
|---|
| 1904 | <listitem><para>
|
|---|
| 1905 | (definition of ghost volume when ready)
|
|---|
| 1906 | </para></listitem>
|
|---|
| 1907 | </itemizedlist>
|
|---|
| 1908 | </para></listitem>
|
|---|
| 1909 | <listitem><para>
|
|---|
| 1910 | Interactivity: build of messengers classes
|
|---|
| 1911 | </para></listitem>
|
|---|
| 1912 | <listitem><para>
|
|---|
| 1913 | Hits/Digi: filled from detailed and parameterised simulation
|
|---|
| 1914 | (calorimeter type hits ?)
|
|---|
| 1915 | </para></listitem>
|
|---|
| 1916 | </itemizedlist>
|
|---|
| 1917 | </para>
|
|---|
| 1918 |
|
|---|
| 1919 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1920 | <bridgehead renderas='sect4'>
|
|---|
| 1921 | Classes
|
|---|
| 1922 | </bridgehead>
|
|---|
| 1923 |
|
|---|
| 1924 | <para>
|
|---|
| 1925 | <literal>main()</literal>
|
|---|
| 1926 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/exampleN05.cc">
|
|---|
| 1927 | (source file)
|
|---|
| 1928 | </ulink>
|
|---|
| 1929 |
|
|---|
| 1930 | <itemizedlist spacing="compact">
|
|---|
| 1931 | <listitem><para>
|
|---|
| 1932 | <literal>main()</literal> for interactive mode
|
|---|
| 1933 | </para></listitem>
|
|---|
| 1934 | <listitem><para>
|
|---|
| 1935 | construction and deletion of <emphasis>G4RunManager</emphasis>
|
|---|
| 1936 | </para></listitem>
|
|---|
| 1937 | <listitem><para>
|
|---|
| 1938 | construction and set of mandatory user classes
|
|---|
| 1939 | </para></listitem>
|
|---|
| 1940 | <listitem><para>
|
|---|
| 1941 | construction of the <emphasis>G4GlobalFastSimulationmanager</emphasis>
|
|---|
| 1942 | </para></listitem>
|
|---|
| 1943 | <listitem><para>
|
|---|
| 1944 | construction of a <emphasis>G4FastSimulationManager</emphasis> to assign fast
|
|---|
| 1945 | simulation model to a logical volume (envelope)
|
|---|
| 1946 | </para></listitem>
|
|---|
| 1947 | <listitem><para>
|
|---|
| 1948 | (definition of ghost volume for parameterisation)
|
|---|
| 1949 | </para></listitem>
|
|---|
| 1950 | <listitem><para>
|
|---|
| 1951 | construction EM physics shower fast simulation model
|
|---|
| 1952 | </para></listitem>
|
|---|
| 1953 | </itemizedlist>
|
|---|
| 1954 | </para>
|
|---|
| 1955 |
|
|---|
| 1956 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1957 | <bridgehead renderas='sect4'>
|
|---|
| 1958 | ExN05EMShowerModel
|
|---|
| 1959 | </bridgehead>
|
|---|
| 1960 |
|
|---|
| 1961 | <para>
|
|---|
| 1962 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/include/ExN05EMShowerModel.hh">
|
|---|
| 1963 | (header file)
|
|---|
| 1964 | </ulink>
|
|---|
| 1965 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/src/ExN05EMShowerModel.cc">
|
|---|
| 1966 | (source file)
|
|---|
| 1967 | </ulink>
|
|---|
| 1968 |
|
|---|
| 1969 | <itemizedlist spacing="compact">
|
|---|
| 1970 | <listitem><para>
|
|---|
| 1971 | derived from <emphasis>G4VFastSimulationModel</emphasis>
|
|---|
| 1972 | </para></listitem>
|
|---|
| 1973 | <listitem><para>
|
|---|
| 1974 | energy deposition in sensitive detector
|
|---|
| 1975 | </para></listitem>
|
|---|
| 1976 | </itemizedlist>
|
|---|
| 1977 | </para>
|
|---|
| 1978 |
|
|---|
| 1979 | <!-- ******* Bridgehead ******* -->
|
|---|
| 1980 | <bridgehead renderas='sect4'>
|
|---|
| 1981 | ExN05PionShowerModel
|
|---|
| 1982 | </bridgehead>
|
|---|
| 1983 |
|
|---|
| 1984 | <para>
|
|---|
| 1985 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/include/ExN05PionShowerModel.hh">
|
|---|
| 1986 | (header file)
|
|---|
| 1987 | </ulink>
|
|---|
| 1988 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/src/ExN05PionShowerModel.cc">
|
|---|
| 1989 | (source file)
|
|---|
| 1990 | </ulink>
|
|---|
| 1991 |
|
|---|
| 1992 | <itemizedlist spacing="compact">
|
|---|
| 1993 | <listitem><para>
|
|---|
| 1994 | derived from <emphasis>G4VFastSimulationModel</emphasis>
|
|---|
| 1995 | </para></listitem>
|
|---|
| 1996 | <listitem><para>
|
|---|
| 1997 | energy deposition in sensitive detector
|
|---|
| 1998 | </para></listitem>
|
|---|
| 1999 | </itemizedlist>
|
|---|
| 2000 | </para>
|
|---|
| 2001 |
|
|---|
| 2002 | <!-- ******* Bridgehead ******* -->
|
|---|
| 2003 | <bridgehead renderas='sect4'>
|
|---|
| 2004 | ExN05DetectorConstruction
|
|---|
| 2005 | </bridgehead>
|
|---|
| 2006 |
|
|---|
| 2007 | <para>
|
|---|
| 2008 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/include/ExN05DetectorConstruction.hh">
|
|---|
| 2009 | (header file)
|
|---|
| 2010 | </ulink>
|
|---|
| 2011 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/src/ExN05DetectorConstruction.cc">
|
|---|
| 2012 | (source file)
|
|---|
| 2013 | </ulink>
|
|---|
| 2014 |
|
|---|
| 2015 | <itemizedlist spacing="compact">
|
|---|
| 2016 | <listitem><para>
|
|---|
| 2017 | derived from <emphasis>G4VUserDetectorConstruction</emphasis>
|
|---|
| 2018 | </para></listitem>
|
|---|
| 2019 | <listitem><para>
|
|---|
| 2020 | definitions of single materials and mixtures
|
|---|
| 2021 | </para></listitem>
|
|---|
| 2022 | <listitem><para>
|
|---|
| 2023 | CSG solids
|
|---|
| 2024 | </para></listitem>
|
|---|
| 2025 | <listitem><para>
|
|---|
| 2026 | <emphasis>G4PVPlacement</emphasis>
|
|---|
| 2027 | </para></listitem>
|
|---|
| 2028 | </itemizedlist>
|
|---|
| 2029 | </para>
|
|---|
| 2030 |
|
|---|
| 2031 | <!-- ******* Bridgehead ******* -->
|
|---|
| 2032 | <bridgehead renderas='sect4'>
|
|---|
| 2033 | ExN05PhysicsList
|
|---|
| 2034 | </bridgehead>
|
|---|
| 2035 |
|
|---|
| 2036 | <para>
|
|---|
| 2037 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/include/ExN05PhysicsList.hh">
|
|---|
| 2038 | (header file)
|
|---|
| 2039 | </ulink>
|
|---|
| 2040 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/src/ExN05PhysicsList.cc">
|
|---|
| 2041 | (source file)
|
|---|
| 2042 | </ulink>
|
|---|
| 2043 |
|
|---|
| 2044 | <itemizedlist spacing="compact">
|
|---|
| 2045 | <listitem><para>
|
|---|
| 2046 | derived from <emphasis>G4VUserPhysicsList</emphasis>
|
|---|
| 2047 | </para></listitem>
|
|---|
| 2048 | <listitem><para>
|
|---|
| 2049 | assignment of <emphasis>G4FastSimulationManagerProcess</emphasis>
|
|---|
| 2050 | </para></listitem>
|
|---|
| 2051 | </itemizedlist>
|
|---|
| 2052 | </para>
|
|---|
| 2053 |
|
|---|
| 2054 | <!-- ******* Bridgehead ******* -->
|
|---|
| 2055 | <bridgehead renderas='sect4'>
|
|---|
| 2056 | ExN05PrimaryGeneratorAction
|
|---|
| 2057 | </bridgehead>
|
|---|
| 2058 |
|
|---|
| 2059 | <para>
|
|---|
| 2060 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/include/ExN05PrimaryGeneratorAction.hh">
|
|---|
| 2061 | (header file)
|
|---|
| 2062 | </ulink>
|
|---|
| 2063 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/src/ExN05PrimaryGeneratorAction.cc">
|
|---|
| 2064 | (source file)
|
|---|
| 2065 | </ulink>
|
|---|
| 2066 |
|
|---|
| 2067 | <itemizedlist spacing="compact">
|
|---|
| 2068 | <listitem><para>
|
|---|
| 2069 | derived from <emphasis>G4VPrimaryGeneratorAction</emphasis>
|
|---|
| 2070 | </para></listitem>
|
|---|
| 2071 | <listitem><para>
|
|---|
| 2072 | construction of <emphasis>G4ParticleGun</emphasis>
|
|---|
| 2073 | </para></listitem>
|
|---|
| 2074 | <listitem><para>
|
|---|
| 2075 | primary event generation via particle gun
|
|---|
| 2076 | </para></listitem>
|
|---|
| 2077 | </itemizedlist>
|
|---|
| 2078 | </para>
|
|---|
| 2079 |
|
|---|
| 2080 | <!-- ******* Bridgehead ******* -->
|
|---|
| 2081 | <bridgehead renderas='sect4'>
|
|---|
| 2082 | ExN05RunAction
|
|---|
| 2083 | </bridgehead>
|
|---|
| 2084 |
|
|---|
| 2085 | <para>
|
|---|
| 2086 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/include/ExN05RunAction.hh">
|
|---|
| 2087 | (header file)
|
|---|
| 2088 | </ulink>
|
|---|
| 2089 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/src/ExN05RunAction.cc">
|
|---|
| 2090 | (source file)
|
|---|
| 2091 | </ulink>
|
|---|
| 2092 |
|
|---|
| 2093 | <itemizedlist spacing="compact">
|
|---|
| 2094 | <listitem><para>
|
|---|
| 2095 | derived from <emphasis>G4VUserRunAction</emphasis>
|
|---|
| 2096 | </para></listitem>
|
|---|
| 2097 | <listitem><para>
|
|---|
| 2098 | draw detector
|
|---|
| 2099 | </para></listitem>
|
|---|
| 2100 | <listitem><para>
|
|---|
| 2101 | (activation/deactivation of parameterisation ?)
|
|---|
| 2102 | </para></listitem>
|
|---|
| 2103 | </itemizedlist>
|
|---|
| 2104 | </para>
|
|---|
| 2105 |
|
|---|
| 2106 | <!-- ******* Bridgehead ******* -->
|
|---|
| 2107 | <bridgehead renderas='sect4'>
|
|---|
| 2108 | ExN05EventAction
|
|---|
| 2109 | </bridgehead>
|
|---|
| 2110 |
|
|---|
| 2111 | <para>
|
|---|
| 2112 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/include/ExN05EventAction.hh">
|
|---|
| 2113 | (header file)
|
|---|
| 2114 | </ulink>
|
|---|
| 2115 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N05/src/ExN05EventAction.cc">
|
|---|
| 2116 | (source file)
|
|---|
| 2117 | </ulink>
|
|---|
| 2118 |
|
|---|
| 2119 | <itemizedlist spacing="compact">
|
|---|
| 2120 | <listitem><para>
|
|---|
| 2121 | derived from <emphasis>G4VUserEventAction</emphasis>
|
|---|
| 2122 | </para></listitem>
|
|---|
| 2123 | <listitem><para>
|
|---|
| 2124 | print time information
|
|---|
| 2125 | </para></listitem>
|
|---|
| 2126 | </itemizedlist>
|
|---|
| 2127 | </para>
|
|---|
| 2128 |
|
|---|
| 2129 | </sect2>
|
|---|
| 2130 |
|
|---|
| 2131 |
|
|---|
| 2132 | <!-- ******************* Section (Level#2) ****************** -->
|
|---|
| 2133 | <sect2 id="sect.ExmpNvc.Exmp06">
|
|---|
| 2134 | <title>
|
|---|
| 2135 | Example N06
|
|---|
| 2136 | </title>
|
|---|
| 2137 |
|
|---|
| 2138 | <!-- ******* Bridgehead ******* -->
|
|---|
| 2139 | <bridgehead renderas='sect4'>
|
|---|
| 2140 | Basic concepts
|
|---|
| 2141 | </bridgehead>
|
|---|
| 2142 |
|
|---|
| 2143 | <itemizedlist spacing="compact">
|
|---|
| 2144 | <listitem><para>
|
|---|
| 2145 | Interactivity : build messenger classes.
|
|---|
| 2146 | </para></listitem>
|
|---|
| 2147 | <listitem><para>
|
|---|
| 2148 | Event : Gun, shoot charge particle at Cerenkov Radiator and Scintillator.
|
|---|
| 2149 | </para></listitem>
|
|---|
| 2150 | <listitem><para>
|
|---|
| 2151 | PIIM : material/mixture with optical and scintillation properties.
|
|---|
| 2152 | </para></listitem>
|
|---|
| 2153 | <listitem><para>
|
|---|
| 2154 | Geometry : volumes filled with optical materials and possessing
|
|---|
| 2155 | surface properties.
|
|---|
| 2156 | </para></listitem>
|
|---|
| 2157 | <listitem><para>
|
|---|
| 2158 | Physics : define and initialize optical processes.
|
|---|
| 2159 | </para></listitem>
|
|---|
| 2160 | <listitem><para>
|
|---|
| 2161 | Tracking : generate Cerenkov radiation, collect energy
|
|---|
| 2162 | deposition to produce scintillation.
|
|---|
| 2163 | </para></listitem>
|
|---|
| 2164 | <listitem><para>
|
|---|
| 2165 | Hits/Digi : PMT as detector.
|
|---|
| 2166 | </para></listitem>
|
|---|
| 2167 | <listitem><para>
|
|---|
| 2168 | Visualization : geometry, optical photon trajectories.
|
|---|
| 2169 | </para></listitem>
|
|---|
| 2170 | </itemizedlist>
|
|---|
| 2171 |
|
|---|
| 2172 | <!-- ******* Bridgehead ******* -->
|
|---|
| 2173 | <bridgehead renderas='sect4'>
|
|---|
| 2174 | Classes
|
|---|
| 2175 | </bridgehead>
|
|---|
| 2176 |
|
|---|
| 2177 | <para>
|
|---|
| 2178 | <literal>main()</literal>
|
|---|
| 2179 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/exampleN06.cc">
|
|---|
| 2180 | (source file)
|
|---|
| 2181 | </ulink>
|
|---|
| 2182 |
|
|---|
| 2183 | <itemizedlist spacing="compact">
|
|---|
| 2184 | <listitem><para>
|
|---|
| 2185 | <literal>main()</literal> for interactive mode and batch mode via macro
|
|---|
| 2186 | file
|
|---|
| 2187 | </para></listitem>
|
|---|
| 2188 | <listitem><para>
|
|---|
| 2189 | random number engine
|
|---|
| 2190 | </para></listitem>
|
|---|
| 2191 | <listitem><para>
|
|---|
| 2192 | construction and deletion of <emphasis>G4RunManager</emphasis>
|
|---|
| 2193 | </para></listitem>
|
|---|
| 2194 | <listitem><para>
|
|---|
| 2195 | construction and set of mandatory user classes
|
|---|
| 2196 | </para></listitem>
|
|---|
| 2197 | <listitem><para>
|
|---|
| 2198 | hard coded <literal>beamOn</literal>
|
|---|
| 2199 | </para></listitem>
|
|---|
| 2200 | </itemizedlist>
|
|---|
| 2201 | </para>
|
|---|
| 2202 |
|
|---|
| 2203 | <!-- ******* Bridgehead ******* -->
|
|---|
| 2204 | <bridgehead renderas='sect4'>
|
|---|
| 2205 | ExN06DetectorConstruction
|
|---|
| 2206 | </bridgehead>
|
|---|
| 2207 |
|
|---|
| 2208 | <para>
|
|---|
| 2209 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/include/ExN06DetectorConstruction.hh">
|
|---|
| 2210 | (header file)
|
|---|
| 2211 | </ulink>
|
|---|
| 2212 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/src/ExN06DetectorConstruction.cc">
|
|---|
| 2213 | (source file)
|
|---|
| 2214 | </ulink>
|
|---|
| 2215 |
|
|---|
| 2216 | <itemizedlist spacing="compact">
|
|---|
| 2217 | <listitem><para>
|
|---|
| 2218 | derived from <emphasis>G4VUserDetectorConstruction</emphasis>
|
|---|
| 2219 | </para></listitem>
|
|---|
| 2220 | <listitem><para>
|
|---|
| 2221 | definitions of single materials and mixtures
|
|---|
| 2222 | </para></listitem>
|
|---|
| 2223 | <listitem><para>
|
|---|
| 2224 | generate and add Material Properties Table to materials
|
|---|
| 2225 | </para></listitem>
|
|---|
| 2226 | <listitem><para>
|
|---|
| 2227 | CSG and BREP solids
|
|---|
| 2228 | </para></listitem>
|
|---|
| 2229 | <listitem><para>
|
|---|
| 2230 | <emphasis>G4PVPlacement</emphasis> with rotation
|
|---|
| 2231 | </para></listitem>
|
|---|
| 2232 | <listitem><para>
|
|---|
| 2233 | definition of surfaces
|
|---|
| 2234 | </para></listitem>
|
|---|
| 2235 | <listitem><para>
|
|---|
| 2236 | generate and add Material Properties Table to surfaces
|
|---|
| 2237 | </para></listitem>
|
|---|
| 2238 | <listitem><para>
|
|---|
| 2239 | visualization
|
|---|
| 2240 | </para></listitem>
|
|---|
| 2241 | </itemizedlist>
|
|---|
| 2242 | </para>
|
|---|
| 2243 |
|
|---|
| 2244 | <!-- ******* Bridgehead ******* -->
|
|---|
| 2245 | <bridgehead renderas='sect4'>
|
|---|
| 2246 | ExN06PhysicsList
|
|---|
| 2247 | </bridgehead>
|
|---|
| 2248 |
|
|---|
| 2249 | <para>
|
|---|
| 2250 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/include/ExN06PhysicsList.hh">
|
|---|
| 2251 | (header file)
|
|---|
| 2252 | </ulink>
|
|---|
| 2253 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/src/ExN06PhysicsList.cc">
|
|---|
| 2254 | (source file)
|
|---|
| 2255 | </ulink>
|
|---|
| 2256 |
|
|---|
| 2257 | <itemizedlist spacing="compact">
|
|---|
| 2258 | <listitem><para>
|
|---|
| 2259 | derived from <emphasis>G4VUserPhysicsList</emphasis>
|
|---|
| 2260 | </para></listitem>
|
|---|
| 2261 | <listitem><para>
|
|---|
| 2262 | definition of gamma, leptons and optical photons
|
|---|
| 2263 | </para></listitem>
|
|---|
| 2264 | <listitem><para>
|
|---|
| 2265 | transportation, 'standard' EM-processes, decay, Cerenkov,
|
|---|
| 2266 | scintillation, 'standard' optical and boundary process
|
|---|
| 2267 | </para></listitem>
|
|---|
| 2268 | <listitem><para>
|
|---|
| 2269 | modify/augment optical process parameters
|
|---|
| 2270 | </para></listitem>
|
|---|
| 2271 | </itemizedlist>
|
|---|
| 2272 | </para>
|
|---|
| 2273 |
|
|---|
| 2274 | <!-- ******* Bridgehead ******* -->
|
|---|
| 2275 | <bridgehead renderas='sect4'>
|
|---|
| 2276 | ExN06PrimaryGeneratorAction
|
|---|
| 2277 | </bridgehead>
|
|---|
| 2278 |
|
|---|
| 2279 | <para>
|
|---|
| 2280 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/include/ExN06PrimaryGeneratorAction.hh">
|
|---|
| 2281 | (header file)
|
|---|
| 2282 | </ulink>
|
|---|
| 2283 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/src/ExN06PrimaryGeneratorAction.cc">
|
|---|
| 2284 | (source file)
|
|---|
| 2285 | </ulink>
|
|---|
| 2286 |
|
|---|
| 2287 | <itemizedlist spacing="compact">
|
|---|
| 2288 | <listitem><para>
|
|---|
| 2289 | derived from <emphasis>G4VPrimaryGeneratorAction</emphasis>
|
|---|
| 2290 | </para></listitem>
|
|---|
| 2291 | <listitem><para>
|
|---|
| 2292 | construction of <emphasis>G4ParticleGun</emphasis>
|
|---|
| 2293 | </para></listitem>
|
|---|
| 2294 | <listitem><para>
|
|---|
| 2295 | primary event generation via particle gun
|
|---|
| 2296 | </para></listitem>
|
|---|
| 2297 | </itemizedlist>
|
|---|
| 2298 | </para>
|
|---|
| 2299 |
|
|---|
| 2300 | <!-- ******* Bridgehead ******* -->
|
|---|
| 2301 | <bridgehead renderas='sect4'>
|
|---|
| 2302 | ExN06RunAction
|
|---|
| 2303 | </bridgehead>
|
|---|
| 2304 |
|
|---|
| 2305 | <para>
|
|---|
| 2306 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/include/ExN06RunAction.hh">
|
|---|
| 2307 | (header file)
|
|---|
| 2308 | </ulink>
|
|---|
| 2309 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N06/src/ExN06RunAction.cc">
|
|---|
| 2310 | (source file)
|
|---|
| 2311 | </ulink>
|
|---|
| 2312 |
|
|---|
| 2313 | <itemizedlist spacing="compact">
|
|---|
| 2314 | <listitem><para>
|
|---|
| 2315 | derived from <emphasis>G4VUserRunAction</emphasis>
|
|---|
| 2316 | </para></listitem>
|
|---|
| 2317 | <listitem><para>
|
|---|
| 2318 | draw detector
|
|---|
| 2319 | </para></listitem>
|
|---|
| 2320 | </itemizedlist>
|
|---|
| 2321 | </para>
|
|---|
| 2322 |
|
|---|
| 2323 | </sect2>
|
|---|
| 2324 |
|
|---|
| 2325 |
|
|---|
| 2326 | <!-- ******************* Section (Level#2) ****************** -->
|
|---|
| 2327 | <sect2 id="sect.ExmpNvc.Exmp07">
|
|---|
| 2328 | <title>
|
|---|
| 2329 | Example N07
|
|---|
| 2330 | </title>
|
|---|
| 2331 |
|
|---|
| 2332 | <!-- ******* Bridgehead ******* -->
|
|---|
| 2333 | <bridgehead renderas='sect4'>
|
|---|
| 2334 | Basic concepts
|
|---|
| 2335 | </bridgehead>
|
|---|
| 2336 |
|
|---|
| 2337 | <para>
|
|---|
| 2338 | <itemizedlist spacing="compact">
|
|---|
| 2339 | <listitem><para>
|
|---|
| 2340 | Geometry : Changing geometry of three simplified sandwitch
|
|---|
| 2341 | calorimeters without re-building a world volume.
|
|---|
| 2342 | </para></listitem>
|
|---|
| 2343 | <listitem><para>
|
|---|
| 2344 | Region : Defining geometrical regions ans setting production
|
|---|
| 2345 | thresholds for each region.
|
|---|
| 2346 | </para></listitem>
|
|---|
| 2347 | <listitem><para>
|
|---|
| 2348 | Run : Utilizing a concrete run class derived from G4Run base
|
|---|
| 2349 | class for accumulating physics quantities and hits as a run.
|
|---|
| 2350 | </para></listitem>
|
|---|
| 2351 | <listitem><para>
|
|---|
| 2352 | Hits : Demonstrating the use of primitive scorer and filter
|
|---|
| 2353 | classes without implementing sensitive detector class.
|
|---|
| 2354 | </para></listitem>
|
|---|
| 2355 | </itemizedlist>
|
|---|
| 2356 | </para>
|
|---|
| 2357 |
|
|---|
| 2358 | <!-- ******* Bridgehead ******* -->
|
|---|
| 2359 | <bridgehead renderas='sect4'>
|
|---|
| 2360 | Classes
|
|---|
| 2361 | </bridgehead>
|
|---|
| 2362 |
|
|---|
| 2363 | <para>
|
|---|
| 2364 | <literal>main()</literal>
|
|---|
| 2365 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/exampleN07.cc">
|
|---|
| 2366 | (source file)
|
|---|
| 2367 | </ulink>
|
|---|
| 2368 |
|
|---|
| 2369 | <itemizedlist spacing="compact">
|
|---|
| 2370 | <listitem><para>
|
|---|
| 2371 | <literal>main()</literal> for interactive mode and batch mode via macro
|
|---|
| 2372 | file
|
|---|
| 2373 | </para></listitem>
|
|---|
| 2374 | <listitem><para>
|
|---|
| 2375 | construction and deletion of <emphasis>G4RunManager</emphasis>
|
|---|
| 2376 | </para></listitem>
|
|---|
| 2377 | <listitem><para>
|
|---|
| 2378 | construction and deletion of <emphasis>G4VisExective</emphasis> and
|
|---|
| 2379 | <emphasis>G4UITerminal</emphasis>
|
|---|
| 2380 | </para></listitem>
|
|---|
| 2381 | <listitem><para>
|
|---|
| 2382 | construction and set of mandatory user classes
|
|---|
| 2383 | </para></listitem>
|
|---|
| 2384 | <listitem><para>
|
|---|
| 2385 | construction and set of <emphasis>ExN07RunAction</emphasis>
|
|---|
| 2386 | </para></listitem>
|
|---|
| 2387 | </itemizedlist>
|
|---|
| 2388 | </para>
|
|---|
| 2389 |
|
|---|
| 2390 | <!-- ******* Bridgehead ******* -->
|
|---|
| 2391 | <bridgehead renderas='sect4'>
|
|---|
| 2392 | ExN07DetectorConstruction
|
|---|
| 2393 | </bridgehead>
|
|---|
| 2394 |
|
|---|
| 2395 | <para>
|
|---|
| 2396 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/include/ExN07DetectorConstruction.hh">
|
|---|
| 2397 | (header file)
|
|---|
| 2398 | </ulink>
|
|---|
| 2399 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/src/ExN07DetectorConstruction.cc">
|
|---|
| 2400 | (source file)
|
|---|
| 2401 | </ulink>
|
|---|
| 2402 |
|
|---|
| 2403 | <itemizedlist spacing="compact">
|
|---|
| 2404 | <listitem><para>
|
|---|
| 2405 | derived from <emphasis>G4VUserDetectorConstruction</emphasis>
|
|---|
| 2406 | </para></listitem>
|
|---|
| 2407 | <listitem><para>
|
|---|
| 2408 | definitions of materials and mixtures
|
|---|
| 2409 | </para></listitem>
|
|---|
| 2410 | <listitem><para>
|
|---|
| 2411 | <emphasis>G4Box</emphasis> with <emphasis>G4PVPlacement</emphasis> and
|
|---|
| 2412 | <emphasis>G4PVReplica</emphasis>
|
|---|
| 2413 | </para></listitem>
|
|---|
| 2414 | <listitem><para>
|
|---|
| 2415 | Dynamic changing of size, position, orientation and number of
|
|---|
| 2416 | volumes
|
|---|
| 2417 | </para></listitem>
|
|---|
| 2418 | <listitem><para>
|
|---|
| 2419 | <emphasis>G4Region</emphasis> for each calorimeter tower
|
|---|
| 2420 | </para></listitem>
|
|---|
| 2421 | <listitem><para>
|
|---|
| 2422 | <emphasis>G4VPrimitiveScorer</emphasis> and
|
|---|
| 2423 | <emphasis>G4VSDFilter</emphasis>
|
|---|
| 2424 | </para></listitem>
|
|---|
| 2425 | <listitem><para>
|
|---|
| 2426 | visualization
|
|---|
| 2427 | </para></listitem>
|
|---|
| 2428 | </itemizedlist>
|
|---|
| 2429 | </para>
|
|---|
| 2430 |
|
|---|
| 2431 | <!-- ******* Bridgehead ******* -->
|
|---|
| 2432 | <bridgehead renderas='sect4'>
|
|---|
| 2433 | ExN07DetectorMessenger
|
|---|
| 2434 | </bridgehead>
|
|---|
| 2435 |
|
|---|
| 2436 | <para>
|
|---|
| 2437 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/include/ExN07DetectorMessenger.hh">
|
|---|
| 2438 | (header file)
|
|---|
| 2439 | </ulink>
|
|---|
| 2440 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/src/ExN07DetectorMessenger.cc">
|
|---|
| 2441 | (source file)
|
|---|
| 2442 | </ulink>
|
|---|
| 2443 |
|
|---|
| 2444 | <itemizedlist spacing="compact">
|
|---|
| 2445 | <listitem><para>
|
|---|
| 2446 | derived from <emphasis>G4UIMessenger</emphasis>
|
|---|
| 2447 | </para></listitem>
|
|---|
| 2448 | <listitem><para>
|
|---|
| 2449 | definition of example-specific geometry commands
|
|---|
| 2450 | </para></listitem>
|
|---|
| 2451 | </itemizedlist>
|
|---|
| 2452 | </para>
|
|---|
| 2453 |
|
|---|
| 2454 | <!-- ******* Bridgehead ******* -->
|
|---|
| 2455 | <bridgehead renderas='sect4'>
|
|---|
| 2456 | ExN07PhysicsList
|
|---|
| 2457 | </bridgehead>
|
|---|
| 2458 |
|
|---|
| 2459 | <para>
|
|---|
| 2460 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/include/ExN07PhysicsList.hh">
|
|---|
| 2461 | (header file)
|
|---|
| 2462 | </ulink>
|
|---|
| 2463 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/src/ExN07PhysicsList.cc">
|
|---|
| 2464 | (source file)
|
|---|
| 2465 | </ulink>
|
|---|
| 2466 |
|
|---|
| 2467 | <itemizedlist spacing="compact">
|
|---|
| 2468 | <listitem><para>
|
|---|
| 2469 | derived from <emphasis>G4VUserPhysicsList</emphasis>
|
|---|
| 2470 | </para></listitem>
|
|---|
| 2471 | <listitem><para>
|
|---|
| 2472 | difine all types of particles
|
|---|
| 2473 | </para></listitem>
|
|---|
| 2474 | <listitem><para>
|
|---|
| 2475 | define standard EM and decay processes
|
|---|
| 2476 | </para></listitem>
|
|---|
| 2477 | <listitem><para>
|
|---|
| 2478 | production thresholds for each region
|
|---|
| 2479 | </para></listitem>
|
|---|
| 2480 | </itemizedlist>
|
|---|
| 2481 | </para>
|
|---|
| 2482 |
|
|---|
| 2483 | <!-- ******* Bridgehead ******* -->
|
|---|
| 2484 | <bridgehead renderas='sect4'>
|
|---|
| 2485 | ExN07PrimaryGeneratorAction
|
|---|
| 2486 | </bridgehead>
|
|---|
| 2487 |
|
|---|
| 2488 | <para>
|
|---|
| 2489 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/include/ExN07PrimaryGeneratorAction.hh">
|
|---|
| 2490 | (header file)
|
|---|
| 2491 | </ulink>
|
|---|
| 2492 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/src/ExN07PrimaryGeneratorAction.cc">
|
|---|
| 2493 | (source file)
|
|---|
| 2494 | </ulink>
|
|---|
| 2495 |
|
|---|
| 2496 | <itemizedlist spacing="compact">
|
|---|
| 2497 | <listitem><para>
|
|---|
| 2498 | derived from <emphasis>G4VPrimaryGeneratorAction</emphasis>
|
|---|
| 2499 | </para></listitem>
|
|---|
| 2500 | <listitem><para>
|
|---|
| 2501 | construction of <emphasis>G4ParticleGun</emphasis>
|
|---|
| 2502 | </para></listitem>
|
|---|
| 2503 | <listitem><para>
|
|---|
| 2504 | primary event generation via particle gun
|
|---|
| 2505 | </para></listitem>
|
|---|
| 2506 | </itemizedlist>
|
|---|
| 2507 | </para>
|
|---|
| 2508 |
|
|---|
| 2509 | <!-- ******* Bridgehead ******* -->
|
|---|
| 2510 | <bridgehead renderas='sect4'>
|
|---|
| 2511 | ExN07RunAction
|
|---|
| 2512 | </bridgehead>
|
|---|
| 2513 |
|
|---|
| 2514 | <para>
|
|---|
| 2515 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/include/ExN07RunAction.hh">
|
|---|
| 2516 | (header file)
|
|---|
| 2517 | </ulink>
|
|---|
| 2518 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/src/ExN07RunAction.cc">
|
|---|
| 2519 | (source file)
|
|---|
| 2520 | </ulink>
|
|---|
| 2521 |
|
|---|
| 2522 | <itemizedlist spacing="compact">
|
|---|
| 2523 | <listitem><para>
|
|---|
| 2524 | derived from <emphasis>G4UserRunAction</emphasis>
|
|---|
| 2525 | </para></listitem>
|
|---|
| 2526 | <listitem><para>
|
|---|
| 2527 | constructing <emphasis>ExN07Run</emphasis> class object
|
|---|
| 2528 | </para></listitem>
|
|---|
| 2529 | <listitem><para>
|
|---|
| 2530 | print out a run summary with <emphasis>ExN07Run</emphasis> class object
|
|---|
| 2531 | </para></listitem>
|
|---|
| 2532 | </itemizedlist>
|
|---|
| 2533 | </para>
|
|---|
| 2534 |
|
|---|
| 2535 | <!-- ******* Bridgehead ******* -->
|
|---|
| 2536 | <bridgehead renderas='sect4'>
|
|---|
| 2537 | ExN07Run
|
|---|
| 2538 | </bridgehead>
|
|---|
| 2539 |
|
|---|
| 2540 | <para>
|
|---|
| 2541 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/include/ExN07Run.hh">
|
|---|
| 2542 | (header file)
|
|---|
| 2543 | </ulink>
|
|---|
| 2544 | <ulink url="http://geant4.web.cern.ch/geant4/geant4_public/source/geant4/examples/novice/N07/src/ExN07Run.cc">
|
|---|
| 2545 | (source file)
|
|---|
| 2546 | </ulink>
|
|---|
| 2547 |
|
|---|
| 2548 | <itemizedlist spacing="compact">
|
|---|
| 2549 | <listitem><para>
|
|---|
| 2550 | derived from <emphasis>G4Run</emphasis>
|
|---|
| 2551 | </para></listitem>
|
|---|
| 2552 | <listitem><para>
|
|---|
| 2553 | uses <emphasis>G4THitsMap</emphasis> template class to accumulate physics
|
|---|
| 2554 | quantities
|
|---|
| 2555 | </para></listitem>
|
|---|
| 2556 | <listitem><para>
|
|---|
| 2557 | extracts event data from <emphasis>G4Event</emphasis> and add up to run data
|
|---|
| 2558 | </para></listitem>
|
|---|
| 2559 | </itemizedlist>
|
|---|
| 2560 | </para>
|
|---|
| 2561 |
|
|---|
| 2562 |
|
|---|
| 2563 | </sect2>
|
|---|
| 2564 | </sect1> |
|---|