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[ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /examples/extended/electromagnetic/TestEm4/README (Version 11.3.0) and /examples/extended/electromagnetic/TestEm4/README (Version 7.0.p1)


                                                   >>   1 $Id: README,v 1.15 2004/09/24 14:41:19 maire Exp $
  1 ----------------------------------------------      2 -------------------------------------------------------------------
  2                                                     3 
  3      =========================================      4      =========================================================
  4      Geant4 - an Object-Oriented Toolkit for S      5      Geant4 - an Object-Oriented Toolkit for Simulation in HEP
  5      =========================================      6      =========================================================
  6                                                     7 
  7                             TestEm4                 8                             TestEm4
  8                             -------                 9                             -------
  9                                                    10 
 10  Plot energy deposited by 9 MeV photon beam in <<  11   This example has been setup to test the low energy gamma processes. 
 11                                                    12   
 12  1- GEOMETRY DEFINITION                            13  1- GEOMETRY DEFINITION
 13                                                    14  
 14   It is a cylinder of 5 cm radius filled with      15   It is a cylinder of 5 cm radius filled with C6F6.
 15                                                    16   
 16  2- PHYSICS LIST                                   17  2- PHYSICS LIST
 17                                                    18  
 18   The particle list contains only gamma, elect     19   The particle list contains only gamma, electron,positron.
 19   The physics list contains the 'standard' ele     20   The physics list contains the 'standard' electromagnetic processes.
 20                                                    21    
 21  3- AN EVENT : THE PRIMARY GENERATOR               22  3- AN EVENT : THE PRIMARY GENERATOR
 22                                                    23  
 23   The primary kinematic is a single 9 MeV gamm     24   The primary kinematic is a single 9 MeV gamma randomly shooted at the
 24   middle of the cylinder.                          25   middle of the cylinder. 
 25                                                    26           
 26  4- VISUALIZATION                                  27  4- VISUALIZATION
 27                                                    28  
 28   The Visualization Manager is set in the main     29   The Visualization Manager is set in the main().
 29   The initialisation of the drawing is done vi     30   The initialisation of the drawing is done via the commands
 30   /vis/.. in the macro vis.mac. This macro is      31   /vis/.. in the macro vis.mac. This macro is
 31   automatically read from the main in case of      32   automatically read from the main in case of interactive running mode.
 32                                                    33   
 33   The detector has a default view which is a t     34   The detector has a default view which is a transversal view of the 
 34   cylinder.                                        35   cylinder.
 35                                                    36   
 36   The tracks are drawn at the end of event, an     37   The tracks are drawn at the end of event, and erased at the end of run.
 37   Optionaly one can choose to draw all particl     38   Optionaly one can choose to draw all particles, only the charged one,
 38   or none. This command is defined in EventAct     39   or none. This command is defined in EventActionMessenger class.
 39                                                    40   
 40  5- PHYSICS SURVEY                                 41  5- PHYSICS SURVEY
 41                                                    42  
 42    The energy deposited in C6F6 is histogramed     43    The energy deposited in C6F6 is histogramed.
 43                                                    44   
 44  6- HOW TO START ?                                 45  6- HOW TO START ?
 45                                                    46  
                                                   >>  47   - compile and link to generate an executable
                                                   >>  48     % cd examples/extended/electromagnetic/TestEm4
                                                   >>  49     % gmake
                                                   >>  50     
 46   - execute TestEm4 in 'batch' mode from macro     51   - execute TestEm4 in 'batch' mode from macro files
 47     % TestEm4   TestEm4.in                     <<  52     % TestEm4   run01.mac
 48                                                    53     
 49   - execute TestEm4 in 'interactive mode' with     54   - execute TestEm4 in 'interactive mode' with visualization
 50     % TestEm4                                      55     % TestEm4
 51     ....                                           56     ....
 52     Idle> type your commands                       57     Idle> type your commands
 53     ....                                           58     ....
 54     Idle> exit                                     59     Idle> exit
 55                                                <<  60     
 56          macro verbose.mac illustrate capabili <<  61   - visualize the histogram (paw)
                                                   >>  62     paw> h/file 1 testem4.paw
                                                   >>  63     paw> option stat
                                                   >>  64     paw> option logy
                                                   >>  65     paw> h/pl 1   
 57                                                    66 
 58  7- USING HISTOGRAMS                           <<  67  Note that, by default, histograms are disabled. To activate them, uncomment
                                                   >>  68  the flag G4ANALYSIS_USE  in GNUmakefile.
                                                   >>  69   
 59                                                    70 
 60  The format of the histogram file can be : roo <<  71  7- Using histograms
 61  xml, csv, by selecting g4nnn.hh in RunAction. <<  72  ------------------- 
 62                                                    73 
 63  8- RANDOM NUMBERS HANDLING                    <<  74 By default the histograms are not activated. To activate histograms
 64                                                <<  75 the environment variable G4ANALYSIS_USE should be defined. For instance
 65    CLHEP provides several random number engine <<  76 uncomment the flag G4ANALYSIS_USE in GNUmakefile.
 66    engine is choosen at beginning of the main  <<  77 
 67                                                <<  78 To use histograms any of implementations of AIDA interfaces should
 68    By default, G4RunManager does not save the  <<  79 be available (see http://aida.freehep.org).
 69    To do so the user must set in BeginOfRunAct <<  80 
 70    G4RunManager::GetRunManager()->SetRandomNum <<  81 A package including AIDA and extended interfaces also using Python
 71                                                <<  82 is PI, available from: http://cern.ch/pi .
 72    Then the rndm seed is systematically saved  <<  83 
 73    (currentRun.rndm) and beginning of event (c <<  84 Once installed PI or PI-Lite in a specified local area $MYPY, it is
 74    Therefore, in case of abnormal end, the see <<  85 required to add the installation path to $PATH, i.e. for example,
 75    is available in currentEvent.rndm           <<  86 for release 1.2.1 of PI:
 76                                                <<  87 
 77    Even in case of normal run processing, the  <<  88 setenv PATH ${PATH}:$MYPI/1.2.1/app/releases/PI/PI_1_2_1/rh73_gcc32/bin
 78    rndm seed of selected events. At any time i <<  89 
 79    following statement:                        <<  90 CERN users can use the PATH to the LCG area on AFS.
 80    if (condition) G4RunManager::GetRunManager( <<  91 
 81    currentEvent.rndm will be copied to runXXev <<  92 Before compilation of the example it is optimal to clean up old 
 82    (see SteppingAction::UserSteppingAction() ) <<  93 files:
 83                                                <<  94 
 84    To restart a run from a given rndm seed, us <<  95 gmake histclean
 85    /random/resetEngineFrom  fileName           <<  96 gmake
 86                                                <<  97 
 87    The macro rndmSeed.mac shows how to save an <<  98 Before running the example the command should be issued:
 88    seed between runs, from UI commands.        <<  99 
                                                   >> 100 eval `aida-config --runtime csh`
                                                   >> 101 
                                                   >> 102 It is possible to choose the format of the histogram file (hbook, root, XML):
                                                   >> 103 comment/uncomment 1 line in the constructor of RunAction.