source: JEM-EUSO/esaf_lal/tags/v1_r0/esaf/packages/simulation/detector/optics/include/Ltrace_optF1v4.hh @ 117

Last change on this file since 117 was 117, checked in by moretto, 11 years ago

ESAF version compilable on mac OS

File size: 2.6 KB
Line 
1/* -------------------------------------------------------------------------
2 *   trace_optF1v4.h
3 *
4 *   --- header file for trace_optF1v4.h
5 *
6 * Copyright (c) 2000-2007 N.Sakaki, Y.Takizawa, Y.Kawasaki
7 * All rights reserved.
8 * $Id: Ltrace_optF1v4.hh,v 1.0 2007/11/13 Dmitry V.Naumov adapted for ESAF
9 * -------------------------------------------------------------------------
10 */
11#ifndef _LTRACE_OPTF1V4_H
12#define _LTRACE_OPTF1V4_H
13
14#include <stdio.h>
15#include "Ltracemain_optF1v4.hh"
16#include "Rtypes.h"
17
18
19#define CHECK_TIMING
20#include <TH1D.h>
21
22extern TH1D* thehisto;
23
24void CreateHisto();
25void DeleteHisto();
26
27
28/* the following numbers are related to the data files. */
29#define LAcryl_N 71
30#define LCytop_N 71
31#define LBg3_N   22
32
33
34/* error codes */
35
36#define RT_NO_SPINTERSECTION       -2
37#define RT_HIT_SIDE_WALL           -3
38#define RT_NO_INTERSECTION1        -4
39#define RT_NO_INTERSECTION2        -5
40#define RT_OUT_OF_SURFACE1         -6
41#define RT_OUT_OF_SURFACE2         -7
42#define RT_REFLECTION_DISCARDED    -8
43#define RT_NO_REFRACTED_LIGHT      -9
44#define RT_REFLECTED_IN_REF       -10
45#define RT_ABSORBED               -11
46#define RT_OUT_OF_IRIS            -12
47#define RT_STRAY_LIGHT            -13
48#define RT_ESCAPE_FROM_ENTRANCE   -14
49#define RT_EXCEED_ITER_MAX        -15
50#define RT_OUT_OF_DOES            -16
51
52#define RT_REFRACTED                1
53#define RT_REFLECTED                2
54
55#define SURFACE0                    0
56#define SURFACE1                -1000
57#define SURFACE2                -2000
58#define SURFACE3                -3000
59#define SURFACE4                -4000
60#define SURFACED                -5000
61#define SURFACE5                -5000
62#define SURFACE6                -6000
63#define SURFACE7                -7000
64#define SURFACE_FS             -8000
65
66/* speed of light in mm/ns */
67//#define C0 299.792458
68/* the current optics is designed to be put in air.
69Maybe little change for vacuum.  */
70#define LREFRACTIVE_IDX_MEDIA 1.0003   /* air */
71
72
73
74Int_t LReadLensData(tel_param *param, FILE *fplog);
75Double_t LGet_n_Acryl(Double_t lambda);
76Double_t LGet_n_Cytop(Double_t lambda);
77Double_t LGet_k_Acryl(Double_t lambda);
78Double_t LGet_k_Cytop(Double_t lambda);
79Int_t Lrefract(Double_t in_ph[3],Double_t nnn[3],Double_t n1,Double_t n2);
80Int_t Ltrace_lens(tel_param *param, Double_t ph_in[], Double_t ph_out[], FILE *fplog);
81Int_t LCalSpheVec(Double_t aX, Double_t aY, Double_t aZ, Double_t aCZ, Double_t nnnDIFF[3]);
82Int_t LReadDiffractData(char *dirname, FILE *fplog);
83Double_t LCal_D(Double_t r);
84Int_t Ldiffract(Int_t ID, Double_t in_phdir[3],
85             Double_t x3, Double_t y3, Double_t z3, Double_t Zc,
86             Double_t n1, Double_t n2, Double_t wl, Double_t wl0, Int_t m);
87
88#endif
Note: See TracBrowser for help on using the repository browser.