Geant4 Cross Reference |
1 ------------------------------------------------------------------- 2 3 ========================================================= 4 Geant4 - an Object-Oriented Toolkit for Simulation in HEP 5 ========================================================= 6 7 ExUCN 8 ----- 9 Peter Gumplinger 10 TRIUMF, Vancouver, Canada 11 12 This example exhibits the functionality of UCN physics 13 14 15 1- GEOMETRY DEFINITION 16 17 The geometry consists of a single hollow pipe (cylinder) 18 placed in a world. 19 20 Default World Size: G4Box - 1m x 1m x 100m 21 22 The pipe wall is made of G4_Ni while the world and, hence, 23 the inside of the pipe is made from G4_Galactic 24 25 The G4UCNMaterialPropertiesTable properties are: 26 27 "REFLECTIVITY" = 1 28 "DIFFUSION" = 0.1 29 "FERMIPOT" = 252.0 neV 30 "SPINFLIP"= 0. 31 "LOSS" = 12.5e-5 32 "LOSSCS" = 0. 33 "ABSCS"= 4.49 // 1/v loss cross-section at room temp. 34 "SCATCS" = 18.5 // (incoherent) "elastic" scattering cross-section 35 36 The MicroRoughnessParameters are: 37 38 Roughness correlation length w = 30nm 39 Surface roughness b = 1nm 40 # of angles theta_i in the look-up tables: 180 41 # of energie bins in the look-up tables: 1000 42 min. and max. values of theta_i: 0*degree and 90*degree 43 min. and max values of Energy: 1neV and 1000neV 44 # of angles theta_o in the look-up table calculation: 15 45 # of angels phi_o in the look-up table calculation: 15 46 angular cut: 0.01*degree 47 48 The default step limits in the vacuum is 1mm and maxTime is 100s 49 50 The simulation is in a G4UniformGravityField 51 52 2- PHYSICS LIST 53 54 The ExUCNPhysicsList defines only G4Neutron, G4Proton, G4Electron, 55 G4AntiNeutrinoE, G4MuonPlus, G4MuonMinus and G4GenericIon 56 57 Through ExUCNExtraPhysics the following processes are instantiated: 58 59 G4StepLimiter 60 G4UserSpecialCuts 61 62 and in ConstructUCN() 63 64 G4UCNLoss 65 G4UCNAbsorption 66 G4UCNMultiScattering 67 68 3- AN EVENT : THE PRIMARY GENERATOR 69 70 The primary kinematic consists of a single ultra-cold neutron, 71 uniform between 1neV and 100neV, from the origin and uniform 72 into 4pi solid angle. 73 74 A RUN is a set of events. 75 76 77 4- VISUALIZATION 78 79 The Visualization Manager is set in the main() for interactive session. 80 The initialisation of the drawing is done via the command 81 /control/execute vis.mac 82 83 5- HOW TO START ? 84 85 This example handles the program arguments in a new way. 86 It can be run with the following optional arguments: 87 % ExUCN [-m macro ] [-u UIsession] [-t nThreads] 88 89 The -t option is available only in multi-threading mode 90 and it allows the user to override the Geant4 default number of 91 threads. The number of threads can be also set via G4FORCENUMBEROFTHREADS 92 environment variable which has the top priority. 93 94 - execute ExUCN in 'batch' mode from macro files e.g. 95 % ExUCN -m ExUCN.in > ExUCN.out & 96 97 - execute ExUCN in 'interactive' mode with visualization e.g. 98 % ExUCN 99 .... 100 Idle> type your commands, for example: 101 Idle> run/beamOn 1 102 .... 103 104 6- HISTOGRAMS 105 106 - no histograms for now