Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/extended/electromagnetic/TestEm0/README.md is written in an unsupported language. File is not indexed.

0001 \page ExampleTestEm0 Example TestEm0
0002 
0003   This program is not a simulation. It prints the cross sections and stopping
0004   power used by the standard electromagnetic package, via G4EmCalculator
0005   which extracts these data from the PhysicsTables.
0006         
0007   The program can be used in batch or interactively.    
0008  
0009   - execute TestEm0 in 'batch' mode from macro files :
0010 ```
0011 % ./TestEm0   TestEm0.in
0012 ```
0013                 
0014   - Interactively, a typical sequence will be :
0015 ```
0016 % ./TestEm0
0017 ....
0018 Idle> /run/initialize
0019 ...
0020 Idle> /testem/det/setMat Silicon
0021 Idle> /run/setCut 100 um
0022 Idle> /gun/particle e-
0023 Idle> /gun/energy 10 MeV
0024 Idle> /run/beamOn
0025 ```
0026          
0027   The last command triggers BuildPhysicsTable() and executes the program.
0028   
0029   Macros provided in this example:
0030   - muon.mac: muon incident
0031   - ion.mac: generic ion incident
0032   - xenonGas.mac: illustrate gas definition    
0033    
0034 ## DirectAccess
0035                             
0036   DirectAccess.cc is a small batch program which shows how to compute the same
0037   basic data directly from the processes (indeed the models).