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.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/optical/OpNovice/README (Version 11.3.0) and /examples/extended/optical/OpNovice/README (Version 6.0)


  1 ----------------------------------------------    
  2                                                   
  3      =========================================    
  4      Geant4 - an Object-Oriented Toolkit for S    
  5      =========================================    
  6                                                   
  7                             OpNovice              
  8                             --------              
  9                                                   
 10 This example presently illustrates the followi    
 11 particular (indicated with ***), how to use G4    
 12 generation and transport. Other extended examp    
 13 in Geant4 with optical photons can be found at    
 14 examples/extended/optical/LXe and wls.            
 15                                                   
 16 main()                                            
 17 ------                                            
 18                                                   
 19  ==> define Random Number generator initial se    
 20                                                   
 21 G4Optical Physics                                 
 22 -----------------                                 
 23                                                   
 24  The G4OpticalPhysics physics class is used. T    
 25  G4OpticalParametersMessenger class.              
 26                                                   
 27  ==> define particles; including *** G4Optical    
 28      define processes; including *** G4Cerenko    
 29                                  *** G4Scintil    
 30                                  *** G4OpAbsor    
 31                                  *** G4OpRayle    
 32                                  *** G4OpBound    
 33                                                   
 34  ==> A messenger command allows to define inte    
 35      verbose level and the maximum number of C    
 36      (see for instance OpNovice.in)               
 37                                                   
 38 G4VUserDetectorConstruction                       
 39 ---------------------------                       
 40                                                   
 41  ==> define material: Air and Water               
 42      define simple G4box geometry                 
 43      *** add G4MaterialPropertiesTable to G4Ma    
 44      *** define G4LogicalSurface(s)               
 45      *** define G4OpticalSurface                  
 46      *** add G4MaterialPropertiesTable to G4Op    
 47                                                   
 48 alternatively the Configuration can be read fr    
 49 The provided gdml file NoviceExample.gdml corr    
 50 defined in OpNoviceDetectorConstruction.          
 51                                                   
 52 G4VUserPrimaryGeneratorAction                     
 53 -----------------------------                     
 54                                                   
 55  ==> Use G4ParticleGun to shoot a charge parti    
 56                                                   
 57  ==> A messenger command allows to define inte    
 58      primary optical photon (see for instance     
 59                                                   
 60 G4UserRunAction and G4Run                         
 61 -------------------------                         
 62                                                   
 63  Used to accumulate statistics.                   
 64                                                   
 65 G4UserStackingAction and G4UserEventAction        
 66 ------------------------------------------        
 67                                                   
 68 ==> show how to count the number of secondary     
 69                                                   
 70 Visualisation                                     
 71 -------------                                     
 72                                                   
 73  The Visualization Manager is set in the main(    
 74  The initialisation of the drawing is done via    
 75  in the macro vis.mac. This macro is automatic    
 76  the main in case of interactive running mode.    
 77                                                   
 78  The detector has a default view which is a lo    
 79  The tracks are drawn at the end of event, and    
 80                                                   
 81  HOW TO START                                     
 82  ------------                                     
 83                                                   
 84  - compile and link to generate an executable     
 85                                                   
 86    This example handles the program arguments     
 87    It can be run with the following optional o    
 88    $ OpNovice [-g gdmlfile] [-m macro ] [-u UI    
 89                                                   
 90    The -t option is available only in multi-th    
 91    and it allows the user to override the Gean    
 92    threads. The number of threads can be also     
 93    environment variable which has the top prio    
 94                                                   
 95  - execute OpNovice in 'batch' mode from macro    
 96   $ OpNovice -m OpNovice.in                       
 97                                                   
 98  - execute OpNovice in 'batch' mode from macro    
 99    to define the geometry                         
100   $ OpNovice -g NoviceExample.gdml -m OpNovice    
101                                                   
102  - execute OpNovice in 'interactive mode' with    
103   $ OpNovice                                      
104   ....                                            
105   Idle> type your commands. For instance:         
106   Idle> /control/execute optPhoton.mac            
107   ....                                            
108   Idle> exit                                      
109                                                   
110 Macros                                            
111 ------                                            
112                                                   
113  The following macros are provided:               
114                                                   
115  - optPhoton.mac: Shoot optical photons with e    
116  - OpNovice.in: Shoot positrons with energy 50    
117  - gui.mac: Configure the graphical user inter    
118  - vis.mac: Configure visualization.              
119                                                   
120                                                   
121 gdml files                                        
122 ----------                                        
123 NoviceExample.gdml: example gdml file correspo    
124 OpNoviceDetectorConstruction