source: trunk/MagicSoft/Simulation/Detector/ReflectorII/Changelog@ 5139

Last change on this file since 5139 was 5139, checked in by moralejo, 20 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 6.4 KB
Line 
1** Add changes at the beginning! **
2
327/09/2004 A. Moralejo
4
5A bit of cleaning in Makefile (remove useless CERNLIB)
6
7
828/08/2004 A. Moralejo
9
10Changes in configuration files. Renamed Data/magic.def and Data/axisdev.dat
11to magic_no_chessboard.def and axisdev_no_chessboard.def. Now default
12axisdev.dat and magic.def contain 964 mirrors as in the present MAGIC
13configuration, and the panels are in a chessboard pattern
14
1530/04/2003 A. Moralejo
16
17ph2cph.c: Found out that the fix from yesterday, although it "patched" the
18loss of photons, did not remove the real cause for it. Actually in the
19determination of the intersection of the photon with the paraboloid there
20was an overflow which resulted in nonsense coordinates beyond 10 m from
21the mirror dish center. It has been fixed fixed by changing the following
22cut:
23
24 if ( fabs(a) < 1.e-3 ) {
25 xcut[2] = -c / b
26 }
27
28which was formerly < 1.e-6.
29
30I also noticed that the problem from yesterday was not so serious: it only
31removed a significant amount of the photons nearly paralel to the telescope
32axis, but globally, over a cer file there is no big difference.
33
3429/04/2003 A. Moralejo
35
36ph2cph.c:
37Changed determination of which mirror element is hit. Before there was a
38problem when going to very large distances from the mirror center, sometimes
39a wrong mirror was chosen, which was actually further away from the impact
40point than the mirror size, and therefore the photon was discarded later as
41"not hitting any mirror" (about 20% loss for eco1000) Now we measure the
42distance on the paraboloid. The new code is:
43
44 /* calculate the mirror to be used */
45
46 distmirr = 1000000.0f;
47
48 for (i=0; i<ct_NMirrors && distmirr>=ct_RMirror; ++i) {
49 distmirr2 = (float) sqrt(SQR(ct_data[i].sx - sx) +
50 SQR(ct_data[i].sy - sy));
51
52 if (distmirr2 < distmirr) {
53 i_mirror = i;
54 distmirr = distmirr2;
55 }
56 }
57
58Now the "distance" we calculate on the paraboloid is not a real distance,
59because sx,sy are measured along the cut between the paraboloid and planes
60containing the paraboloid axis and the x or y axis... but this should not
61matter much with such "flat" paraboloids. What cannot be done, as was before,
62is check the distance in the x,y,z space and then check whether the photon
63is inside the mirror in the sx,sy space, because then we lose photons for
64which a nearest mirror is chosen which in sx,sy is not close enough to
65contain the photon.
66
67geometry.c:
68Small change in calculation of ct_nax_radius (introduced fabs, but nothing
69changes)
70
7116/04/2003 A. Moralejo
72
73MagicSoft/Simulation/Detector/Data/ :
74Added eco1000.def and axisdev1000.dat for eco-1000 studies
75
764/04/2003 A. Moralejo
77
78init.h, geometry.c, ph2cph.c:
79introduced variable ct_max_radius, the maximum distance in x or y from the
80center to the edge of the telescope, measured on the parabolic dish. This
81is used in a fast check of whether the photon hits the disk in ph2cph.c
82
83ph2cph.c:
84in function Lin2Curv(float x), changed the calculation of the curvilinear
85coordinates (which before was only valid for ~17 m focus paraboloids).
86
8722/01/2003 A. Moralejo
88
89Fixed small bug in reflector.c. The end of run flag was not written to the
90output when the max_events option was used in the input card.
91
9221/01/2003 A. Moralejo
93
94Removed from the output a null byte written right after the ascii label
95containing the program version number which is at the beginning of the rfl
96file.
97
9819/12/2002 - 17/01/2003 A. Moralejo
99
100Lots of changes. Moved simulation of Mie scattering and Ozone absorption from
101attenu.f to atm.c, and changed the way it is done. Before it was not correct
102for large zenith angle (a variation like for Rayleigh scattering was assumed
103for both Mie scattering and Ozone absorption).
104
105
10613/12/2002 A. Moralejo
107
108attenu.f: Found mistake in Mie absorption calculation (height from sea
109level was taken as height above observation level). Changed optical depths
110table for Mie attenuation. Now they are no longer referred to 2 km height,
111but to sea level. Detector level is taken into account later in calculation.
112
11310/12/2002 A. Moralejo
114
115attenu.f: Added comments, removed old/unnecessary code, corrected small
116mistake in Elterman's table for ozone optical depth.
117
118atm.c,h : removed atmospheric model "ATM_ISOTHERMAL" which actually was
119not even implemented in the code, although it could be selected in the
120input card.
121
12215/11/2002 A. Moralejo
123
124ph2cph.c: Fixed BUG in timing calculation!!! The time to be subtracted
125(mirror till ground) had the wrong sign!!!
126
127reflector.c: in the wavelength range check, changed the range limits to
128the fixed values 290 and 600 nm. The StarFieldAdder cer files could not be
129processed otherwise, because the w range is not written in their headers.
130
131ph2cph.c: changed sign of phi angle to make it positive. This was necessary
132since now the vector indicating the reflected photon trajectory has also
133changed sign! (see note below, 11/11).
134
13514/11/2002 A. Moralejo
136reflector.c, parms.c: Added wobble mode option. Added wobble flag to the
137output and also an atmospheric_model flag.
138
13913/11/2002 A. Moralejo
140reflector.c, header.h: Introduced 3 counters to keep track of what proportion
141of the C-photons in each event have been produced by electrons, muons or
142other particles.
143
14411/11/2002 A. Moralejo
145ph2cph.c: BUG found! and fixed: the direction cosines in the cer files are
146those of the downgoing directions of photons, hence third component is
147negative. Before it was assumed positive. This, together with a wrong
148reflection in the individual mirrors (also changed) resulted in a subtle
149error which produced a quite de-focused reflector!
150
151reflector.c: for the same reason as above, the sign of theta in the calls
152to makeOmega had to be changed (+pi added to the phi argument).
153
154geometry.c, ph2cph.c, reflector.c, init.h: eliminated array ct_Focal[]
155which contained the focal lengths of individual mirrors. It was redundant
156since the same information is available in ct_data[].f
157
158Oct/2002 A. Moralejo
159added attach.c to attach the files magic.def, axisdev.dat and
160reflectivity.dat to the end of the reflector output.
161
162Sept/2002 A. Moralejo
163header.h, reflector.c: added run header (=Corsika's), changed event header.
164
1653/7/2002 A. Moralejo
166reflector.c: Introduced NaN check in the photon loop.
167If NAns are found in a photon data block, it is not processed.
168
169ph2cph.c: Introduced "check of positiveness" before taking the sqrt
170in the calculation of the photon trajectory intersection with the
171global paraboloid.
172
173
174
Note: See TracBrowser for help on using the repository browser.