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

Last change on this file since 2046 was 2046, checked in by moralejo, 22 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 4.7 KB
Line 
1** Add changes at the beginning! **
2
329/04/2003 A. Moralejo
4
5ph2cph.c:
6Changed determination of which mirror element is hit. Before there was a
7problem when going to very large distances from the mirror center, sometimes
8a wrong mirror was chosen, which was actually further away from the impact
9point than the mirror size, and therefore the photon was discarded later as
10"not hitting any mirror". Now we measure the distance on the paraboloid. The
11new code is:
12
13 /* calculate the mirror to be used */
14
15 distmirr = 1000000.0f;
16
17 for (i=0; i<ct_NMirrors && distmirr>=ct_RMirror; ++i) {
18 distmirr2 = (float) sqrt(SQR(ct_data[i].sx - sx) +
19 SQR(ct_data[i].sy - sy));
20
21 if (distmirr2 < distmirr) {
22 i_mirror = i;
23 distmirr = distmirr2;
24 }
25 }
26
27geometry.c:
28Small change in calculation of ct_nax_radius (introduced fabs, but nothing
29changes)
30
3116/04/2003 A. Moralejo
32
33MagicSoft/Simulation/Detector/Data/ :
34Added eco1000.def and axisdev1000.dat for eco-1000 studies
35
364/04/2003 A. Moralejo
37
38init.h, geometry.c, ph2cph.c:
39introduced variable ct_max_radius, the maximum distance in x or y from the
40center to the edge of the telescope, measured on the parabolic dish. This
41is used in a fast check of whether the photon hits the disk in ph2cph.c
42
43ph2cph.c:
44in function Lin2Curv(float x), changed the calculation of the curvilinear
45coordinates (which before was only valid for ~17 m focus paraboloids).
46
4722/01/2003 A. Moralejo
48
49Fixed small bug in reflector.c. The end of run flag was not written to the
50output when the max_events option was used in the input card.
51
5221/01/2003 A. Moralejo
53
54Removed from the output a null byte written right after the ascii label
55containing the program version number which is at the beginning of the rfl
56file.
57
5819/12/2002 - 17/01/2003 A. Moralejo
59
60Lots of changes. Moved simulation of Mie scattering and Ozone absorption from
61attenu.f to atm.c, and changed the way it is done. Before it was not correct
62for large zenith angle (a variation like for Rayleigh scattering was assumed
63for both Mie scattering and Ozone absorption).
64
65
6613/12/2002 A. Moralejo
67
68attenu.f: Found mistake in Mie absorption calculation (height from sea
69level was taken as height above observation level). Changed optical depths
70table for Mie attenuation. Now they are no longer referred to 2 km height,
71but to sea level. Detector level is taken into account later in calculation.
72
7310/12/2002 A. Moralejo
74
75attenu.f: Added comments, removed old/unnecessary code, corrected small
76mistake in Elterman's table for ozone optical depth.
77
78atm.c,h : removed atmospheric model "ATM_ISOTHERMAL" which actually was
79not even implemented in the code, although it could be selected in the
80input card.
81
8215/11/2002 A. Moralejo
83
84ph2cph.c: Fixed BUG in timing calculation!!! The time to be subtracted
85(mirror till ground) had the wrong sign!!!
86
87reflector.c: in the wavelength range check, changed the range limits to
88the fixed values 290 and 600 nm. The StarFieldAdder cer files could not be
89processed otherwise, because the w range is not written in their headers.
90
91ph2cph.c: changed sign of phi angle to make it positive. This was necessary
92since now the vector indicating the reflected photon trajectory has also
93changed sign! (see note below, 11/11).
94
9514/11/2002 A. Moralejo
96reflector.c, parms.c: Added wobble mode option. Added wobble flag to the
97output and also an atmospheric_model flag.
98
9913/11/2002 A. Moralejo
100reflector.c, header.h: Introduced 3 counters to keep track of what proportion
101of the C-photons in each event have been produced by electrons, muons or
102other particles.
103
10411/11/2002 A. Moralejo
105ph2cph.c: BUG found! and fixed: the direction cosines in the cer files are
106those of the downgoing directions of photons, hence third component is
107negative. Before it was assumed positive. This, together with a wrong
108reflection in the individual mirrors (also changed) resulted in a subtle
109error which produced a quite de-focused reflector!
110
111reflector.c: for the same reason as above, the sign of theta in the calls
112to makeOmega had to be changed (+pi added to the phi argument).
113
114geometry.c, ph2cph.c, reflector.c, init.h: eliminated array ct_Focal[]
115which contained the focal lengths of individual mirrors. It was redundant
116since the same information is available in ct_data[].f
117
118Oct/2002 A. Moralejo
119added attach.c to attach the files magic.def, axisdev.dat and
120reflectivity.dat to the end of the reflector output.
121
122Sept/2002 A. Moralejo
123header.h, reflector.c: added run header (=Corsika's), changed event header.
124
1253/7/2002 A. Moralejo
126reflector.c: Introduced NaN check in the photon loop.
127If NAns are found in a photon data block, it is not processed.
128
129ph2cph.c: Introduced "check of positiveness" before taking the sqrt
130in the calculation of the photon trajectory intersection with the
131global paraboloid.
132
133
134
Note: See TracBrowser for help on using the repository browser.