source: trunk/MagicSoft/Simulation/Detector/ReflectorII/header.h@ 1432

Last change on this file since 1432 was 1431, checked in by bigongia, 22 years ago
*** empty log message ***
File size: 3.8 KB
Line 
1#ifndef __RFL_HEADER__
2#define __RFL_HEADER__
3
4typedef struct /* EVTH from cerfile */
5{ char EVTH[4];
6 float EvtNumber;
7 float PrimaryID;
8 float Etotal;
9 float Thick0;
10 float FirstTarget;
11 float zFirstInt;
12 float p[3];
13 float Theta;
14 float Phi;
15
16 float NumRndSeq;
17 float RndData[10][3];
18
19 float RunNumber;
20 float DateRun;
21 float Corsika_version;
22
23 float NumObsLev;
24 float HeightLev[10];
25
26 float SlopeSpec;
27 float ELowLim;
28 float EUppLim;
29
30 float Ecutoffh;
31 float Ecutoffm;
32 float Ecutoffe;
33 float Ecutoffg;
34
35 float NFLAIN;
36 float NFLDIF;
37 float NFLPI0;
38 float NFLPIF;
39 float NFLCHE;
40 float NFRAGM;
41
42 float Bx;
43 float By;
44
45 float EGS4yn;
46 float NKGyn;
47 float GHEISHAyn;
48 float VENUSyn;
49 float CERENKOVyn;
50 float NEUTRINOyn;
51 float HORIZONTyn;
52 float COMPUTER;
53
54 float ThetaMin;
55 float ThetaMax;
56 float PhiMin;
57 float PhiMax;
58
59 float CBunchSize;
60 float CDetInX,CDetInY;
61 float CSpacInX,CSpacInY;
62 float CLenInX,CLenInY;
63 float COutput;
64
65 float AngleNorthX;
66 float MuonInfo;
67
68 float StepLength;
69 float CWaveLower;
70 float CWaveUpper;
71 float Multipl;
72 float CorePos[2][20];
73
74 float dmmy1[14];
75 float viewcone_angles[2]; /* (degrees) Inner and outer angles in
76 * Corsika's VIEWCONE option
77 */
78 float dmmy2[119];
79} CerHeader;
80
81typedef struct /* EVTH from rflfile */
82{ float EvtNumber;
83 float PrimaryID;
84 float Etotal;
85 float Thick0;
86 float FirstTarget;
87 float zFirstInt;
88 float p[3];
89 float Theta;
90 float Phi;
91
92 float NumRndSeq;
93 float RndData[10][3];
94
95 float RunNumber;
96 float DateRun;
97 float Corsika_version;
98
99 float NumObsLev; /* Should be 1 for MAGIC simulation */
100 float HeightLev; /* Observation Level */
101
102 /* Changed meaning of next 9 variables. June 2002, A.Moralejo: */
103 float num_mirrors;
104 float mean_reflectivity;
105 float longi_Nmax;
106 float longi_t0;
107 float longi_tmax;
108 float longi_a;
109 float longi_b;
110 float longi_c;
111 float longi_chi2;
112
113 float SlopeSpec;
114 float ELowLim;
115 float EUppLim;
116
117 float ThetaMin;
118 float ThetaMax;
119 float PhiMin;
120 float PhiMax;
121
122 float CWaveLower;
123 float CWaveUpper;
124 float CorePos[2][20];
125 float TimeFirst;
126 float TimeLast;
127
128 /* AM, 23/05/2002: Changed meaning of following
129 * three variables (which were unused before):
130 */
131 float telescopePhi; /* rad */
132 float telescopeTheta; /* rad */
133
134 float ViewConeRadius; /* Degrees.
135 * Radius of "view cone" when the primaries'
136 * directions generated by Corsika lie within
137 * a cone around a fixed direction. This is
138 * only possible with Corsika>6 versions. In
139 * that case, PhiMin=PhiMax and
140 * ThetaMin=ThetaMax (also in this header)
141 * indicate the axis of this cone.
142 * If ViewConeRadius==0, it means that
143 * the VIEWCONE option was not used.
144 */
145
146
147 float CORSIKAPhs; /* Original photons written by Corsika */
148 float AtmAbsPhs; /* Photons absorbed by the atmosphere */
149 float MirrAbsPhs; /* Photons absorbed by the mirror */
150 float OutOfMirrPhs; /* Photons outside the mirror */
151 float BlackSpotPhs; /* Photons lost in the "black spot" */
152 float OutOfChamPhs; /* Photons outside the camera */
153 float CPhotons; /* Photons reaching the camera */
154} RflHeader;
155
156
157typedef struct /* EVTE from cerfile */
158{
159 float dummy1[255];
160 float longi_Nmax;
161 float longi_t0;
162 float longi_tmax;
163 float longi_a;
164 float longi_b;
165 float longi_c;
166 float longi_chi2;
167 float dummy2[11];
168} Event_end;
169
170void TranslateHeader(RflHeader *r, CerHeader *c);
171
172#endif
Note: See TracBrowser for help on using the repository browser.