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

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