Geant4 Cross Reference |
1 2 G4RayTracer version 1.0 (29/Jan/00) 3 4 1. Introduction 5 6 G4RayTracer is a "ray tracing" package which 7 of tracking/navigation. It visualizes any kind 8 kernel can navigate. 9 10 2. Building a library 11 12 G4RayTracer is one of visualization driver wh 13 a library of G4RayTracer (library name G4RayTr 14 variable G4VIS_BUILD_RAYTRACER_DRIVER. 15 16 $ setenv G4VIS_BUILD_RAYTRACER_DRIVER 1 17 18 3. Using G4RayTracer 19 20 To use G4RayTracer, set an environment variab 21 22 $ setenv G4VIS_USE_RAYTRACER 1 23 24 Also, G4RayTracer has to be registored to the 25 Refer an example given in 26 geant4/source/visualization/management/inclu 27 28 4. Notes 29 30 a) G4RayTracer generates JPEG file(s). To visu 31 local program such as NetScape or xview, etc. 32 33 b) The eye position must be inside of the defi 34 to draw your detector setup from very far posi 35 your world volume. 36 37 c) G4RayTracer ignores volumes without G4VisAt 38 set as "forced wire frame", and volumes which 39 40 d) In case you get unexpected figure, check 41 d.1) eye position and target position are pro 42 d.2) light direction is properly set (note li 43 illumination light source to the objects) 44 d.3) span angle (given by angle for 100 pixel 45 d.4) there is no surrounding volume(s) withou 46 47 e) G4RayTracer can be executed ONLY AT "Idle" 48 49 5. Basic UI commands 50 51 a) /vis/rayTracer/eyePosition x y z unit 52 eye position 53 54 b) /vis/rayTracer/target x y z unit 55 target position 56 in default it is set to the origine 57 58 c) /vis/rayTracer/lightDirection ex ey ez 59 vector of the illuminating light (need not 60 note light direction is from illumination 61 62 d) /vis/rayTracer/column nColumn 63 number of holizontal pixels 64 in default 640 pixels 65 66 e) /vis/rayTracer/row nRow 67 number of virtical pixels 68 in default 640 pixels 69 70 f) /vis/rayTracer/span angle unit 71 angle for 100 pixels 72 in default 5 degree 73 74 g) /vis/rayTracer/trace fileName 75 execution of G4RayTracer 76 "fileName" is the out put JPEG file name 77 in default "g4RayTracer.jpeg" 78 NOTE THAT THIS COMMAND IS AVAILABLE ONLY A 79 80 81 82