Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
25 | f9daq | 1 | 29/3/2014 |
2 | |||
3 | To run the detector, type in the terminal: |
||
4 | |||
5 | root -l examples/load.cxx |
||
6 | |||
7 | As default, this shows the light guide, draws 30 rays (out of 10000 simulated), and shows the statistics. |
||
8 | |||
9 | |||
10 | Main files: |
||
11 | |||
12 | 1) src/guide.cpp |
||
13 | The plane, ray, guide and detector classes and functions. Class DetectorParameters holds all the variables needed for the guide and detector: |
||
14 | a - the lower (smaller) side of the light guide |
||
15 | b - the upper side |
||
16 | M - magnification ratio = b/a |
||
17 | d - the length of the light guide |
||
18 | activeDetector - the side of the photon detector (SiPM) |
||
19 | |||
20 | All surfaces are refractive, the probability of reflection is calculated using the Fresnel equations: |
||
21 | n1 - the refractive index of the upper surface (default: air) |
||
22 | n2 - r. i. inside the detector (default: borosilicate glass K9 1.53 @ 404 nm) |
||
23 | n3 - r. i. on the lower surface (default: optical cement) |
||
24 | |||
25 | 2) src/raySimulator.cpp |
||
26 | One or multiple ray simulator functions. |
||
27 | |||
28 | 3) src/userFunctions.cpp |
||
29 | The main user functions. Draws rays in specified pattern (single, grid or isotropic) and calculates acceptance of the light guide. |
||
30 | |||
31 | 4) src/RTUtil.h |
||
32 | ROOT Utilites |
||
33 | |||
34 |