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

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