source: trunk/source/geometry/solids/test/OpticalEscape/README

Last change on this file was 1350, checked in by garnier, 13 years ago

update to last version 4.9.4

File size: 2.3 KB
Line 
1$Id: README,v 1.1 2008/09/03 13:34:03 gcosmo Exp $
2-------------------------------------------------------------------
3
4In this directory you can find the test for Geant4 Solids with Optical Photons.
5The test was created from a user application in order to test the replay
6of the Solids.
7
8=============
9How it works :
10=============
11 - The Solid is situated in the center of the World Volume.
12   It can be choosen via macro command.
13 - The primary particle (e- of 20 veV) is shooting from Randomly Position on
14   the Shpere around the Solid to the center of the World Volume.
15 - This primary particle 'enters' in the Solid and create Optical Photons.
16   The boundary between Solid and World is declared as Boundary with Reflection.
17   If a optical Photon is going outside Solid, it is a Error.
18   This error is detected, warning or error message is printed.
19   This message also containts the information that can be useful for debugging:
20   -Position p and Direction v of the Point  (Global Coordinates), were Error
21    is detected.
22   -Inside(p):
23    If p is Inside, the DistanceToOut(p,v,norm) is given
24    If p is Outside,the DistanceToIn(p,-v) is given
25    If p is On the Surface, both values are given.
26
27=====================
28How to run this test :
29=====================       
30
31 To build the application, first setup your Geant4 environmental variables,
32 do not forget to setup the visualisation part.
33
34 and then do :                  make
35 
36 and to run it :                AXPETDemonstrator run1.mac
37                         
38
39==================================
40 Via command line user can choose :
41==================================
42
43 the solis :   /mydet/SelectDetector nameOfSolid   
44 the rotation: /mydet/RotateX angleInDegree
45               /mydet/RotateY angleInDegree
46               /mydet/RotateZ angleInDegree
47 In case of Error(Optical Photon escaping Solid)
48 warning or Abortion of the Run can be chosen.
49 It can be useful for large statistics.
50 Coomand for Abort Run : /mydet/AbortRun 1
51
52============               
53The examples are given in vis.mac(shooting 30 e- in all solids)
54============              run1.mac(shooting 3000 e- in shoosen solid, Ellipsoid)
55                          run2.mac(shooting 3000 e- in shoosen solid,
56                                   Shell=Subtraction of Spheres)   
Note: See TracBrowser for help on using the repository browser.