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

Last change on this file since 2047 was 2047, checked in by moralejo, 21 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 5.3 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" (about 20% loss for eco1000) Now we measure the
11distance on the paraboloid. The new 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
27Now the "distance" we calculate on the paraboloid is not a real distance,
28because sx,sy are measured along the cut between the paraboloid and planes
29containing the paraboloid axis and the x or y axis... but this should not
30matter much with such "flat" paraboloids. What cannot be done, as was before,
31is check the distance in the x,y,z space and then check whether the photon
32is inside the mirror in the sx,sy space, because then we lose photons for
33which a nearest mirror is chosen which in sx,sy is not close enough to
34contain the photon.
35
36geometry.c:
37Small change in calculation of ct_nax_radius (introduced fabs, but nothing
38changes)
39
4016/04/2003 A. Moralejo
41
42MagicSoft/Simulation/Detector/Data/ :
43Added eco1000.def and axisdev1000.dat for eco-1000 studies
44
454/04/2003 A. Moralejo
46
47init.h, geometry.c, ph2cph.c:
48introduced variable ct_max_radius, the maximum distance in x or y from the
49center to the edge of the telescope, measured on the parabolic dish. This
50is used in a fast check of whether the photon hits the disk in ph2cph.c
51
52ph2cph.c:
53in function Lin2Curv(float x), changed the calculation of the curvilinear
54coordinates (which before was only valid for ~17 m focus paraboloids).
55
5622/01/2003 A. Moralejo
57
58Fixed small bug in reflector.c. The end of run flag was not written to the
59output when the max_events option was used in the input card.
60
6121/01/2003 A. Moralejo
62
63Removed from the output a null byte written right after the ascii label
64containing the program version number which is at the beginning of the rfl
65file.
66
6719/12/2002 - 17/01/2003 A. Moralejo
68
69Lots of changes. Moved simulation of Mie scattering and Ozone absorption from
70attenu.f to atm.c, and changed the way it is done. Before it was not correct
71for large zenith angle (a variation like for Rayleigh scattering was assumed
72for both Mie scattering and Ozone absorption).
73
74
7513/12/2002 A. Moralejo
76
77attenu.f: Found mistake in Mie absorption calculation (height from sea
78level was taken as height above observation level). Changed optical depths
79table for Mie attenuation. Now they are no longer referred to 2 km height,
80but to sea level. Detector level is taken into account later in calculation.
81
8210/12/2002 A. Moralejo
83
84attenu.f: Added comments, removed old/unnecessary code, corrected small
85mistake in Elterman's table for ozone optical depth.
86
87atm.c,h : removed atmospheric model "ATM_ISOTHERMAL" which actually was
88not even implemented in the code, although it could be selected in the
89input card.
90
9115/11/2002 A. Moralejo
92
93ph2cph.c: Fixed BUG in timing calculation!!! The time to be subtracted
94(mirror till ground) had the wrong sign!!!
95
96reflector.c: in the wavelength range check, changed the range limits to
97the fixed values 290 and 600 nm. The StarFieldAdder cer files could not be
98processed otherwise, because the w range is not written in their headers.
99
100ph2cph.c: changed sign of phi angle to make it positive. This was necessary
101since now the vector indicating the reflected photon trajectory has also
102changed sign! (see note below, 11/11).
103
10414/11/2002 A. Moralejo
105reflector.c, parms.c: Added wobble mode option. Added wobble flag to the
106output and also an atmospheric_model flag.
107
10813/11/2002 A. Moralejo
109reflector.c, header.h: Introduced 3 counters to keep track of what proportion
110of the C-photons in each event have been produced by electrons, muons or
111other particles.
112
11311/11/2002 A. Moralejo
114ph2cph.c: BUG found! and fixed: the direction cosines in the cer files are
115those of the downgoing directions of photons, hence third component is
116negative. Before it was assumed positive. This, together with a wrong
117reflection in the individual mirrors (also changed) resulted in a subtle
118error which produced a quite de-focused reflector!
119
120reflector.c: for the same reason as above, the sign of theta in the calls
121to makeOmega had to be changed (+pi added to the phi argument).
122
123geometry.c, ph2cph.c, reflector.c, init.h: eliminated array ct_Focal[]
124which contained the focal lengths of individual mirrors. It was redundant
125since the same information is available in ct_data[].f
126
127Oct/2002 A. Moralejo
128added attach.c to attach the files magic.def, axisdev.dat and
129reflectivity.dat to the end of the reflector output.
130
131Sept/2002 A. Moralejo
132header.h, reflector.c: added run header (=Corsika's), changed event header.
133
1343/7/2002 A. Moralejo
135reflector.c: Introduced NaN check in the photon loop.
136If NAns are found in a photon data block, it is not processed.
137
138ph2cph.c: Introduced "check of positiveness" before taking the sqrt
139in the calculation of the photon trajectory intersection with the
140global paraboloid.
141
142
143
Note: See TracBrowser for help on using the repository browser.