1 | <?php
|
---|
2 |
|
---|
3 | function PrintCTAMCRunInfoMenu($host,$user,$pw,$db)
|
---|
4 | {
|
---|
5 | printf(" <div id='info' style='display:none'>");
|
---|
6 | printf(" <table>\n");
|
---|
7 | printf(" <tr valign='top'>\n");
|
---|
8 |
|
---|
9 | CheckBox("fNumEvents", "Num of events");
|
---|
10 |
|
---|
11 | printf(" <td>\n");
|
---|
12 | PrintPullDown($host, $user, $pw, $db, "ParticleType", "fParticleTypeName", "fParticleTypeKEY", "Particle type");
|
---|
13 | printf(" </td><td>\n");
|
---|
14 |
|
---|
15 | printf(" </tr>\n");
|
---|
16 | printf(" </table>\n");
|
---|
17 | printf(" </div><p>\n");
|
---|
18 | }
|
---|
19 |
|
---|
20 | function PrintCTAMCRunStatMenu()
|
---|
21 | {
|
---|
22 | printf(" <div id=\"stat\" style='display:none'>\n");
|
---|
23 | printf(" <table>\n");
|
---|
24 | printf(" <tr><td>\n");
|
---|
25 |
|
---|
26 | PrintStatusMenu("fCorsikaSimTelarray", "Corsika and Simtel");
|
---|
27 | printf(" </td><td>\n");
|
---|
28 | PrintStatusMenu("fChimp", "Chimp");
|
---|
29 | printf(" </td><td>\n");
|
---|
30 | PrintStatusMenu("fCTAStar", "Star");
|
---|
31 |
|
---|
32 | printf(" </td></tr><tr><td>\n");
|
---|
33 |
|
---|
34 | PrintStatusMenu("fStereoB", "StereoB");
|
---|
35 | printf(" </td><td>\n");
|
---|
36 | PrintStatusMenu("fStereoC", "StereoC");
|
---|
37 | printf(" </td><td>\n");
|
---|
38 | PrintStatusMenu("fStereoG", "StereoG");
|
---|
39 |
|
---|
40 | printf(" </td></tr></table>\n");
|
---|
41 | printf(" <p>\n");
|
---|
42 | printf(" </div><p>\n");
|
---|
43 | }
|
---|
44 |
|
---|
45 | function PrintRunInfoMenu()
|
---|
46 | {
|
---|
47 | printf(" <div id='info' style='display:none'>");
|
---|
48 | printf(" <table>\n");
|
---|
49 | printf(" <tr>\n");
|
---|
50 |
|
---|
51 | CheckBox("fRunStart", "Run start time");
|
---|
52 | CheckBox("fL2RatePresc", "L2 presc Rate");
|
---|
53 | CheckBox("fDaqStoreRate", "DAQ Storage Rate");
|
---|
54 | CheckBox("fAzimuth", "Azimuth");
|
---|
55 |
|
---|
56 | printf(" </tr><tr>\n");
|
---|
57 |
|
---|
58 | CheckBox("fRunStop", "Run stop time");
|
---|
59 | CheckBox("fL2RateUnpresc", "L2 unpresc Rate");
|
---|
60 | CheckBox("fDaqTriggerRate", "DAQ Trigger Rate");
|
---|
61 | CheckBox("fZenithDistance", "Zenith distance");
|
---|
62 |
|
---|
63 | printf(" </tr><tr>\n");
|
---|
64 |
|
---|
65 | // CheckBox("fFormatVersion", "File format");
|
---|
66 | CheckBox("fNumEvents", "Num of events");
|
---|
67 | CheckBox("fMeanTriggerRate", "Mean Trigger rate");
|
---|
68 | CheckBox("fSequenceFirst", "Sequence Number");
|
---|
69 |
|
---|
70 | printf(" </tr><tr>\n");
|
---|
71 |
|
---|
72 | CheckBox("fTest", "incl. TestSources");
|
---|
73 | CheckBox("fLinks", "Links");
|
---|
74 |
|
---|
75 | printf(" </tr>\n");
|
---|
76 | printf(" </table>\n");
|
---|
77 | printf(" </div><p>\n");
|
---|
78 | }
|
---|
79 |
|
---|
80 | function PrintRunStatMenu()
|
---|
81 | {
|
---|
82 | printf(" <div id=\"stat\" style='display:none'>\n");
|
---|
83 | printf(" <table>\n");
|
---|
84 | printf(" <tr><td>\n");
|
---|
85 |
|
---|
86 | PrintStatusMenu("fCCFileAvail", "CC File available");
|
---|
87 | printf(" </td><td>\n");
|
---|
88 | PrintStatusMenu("fCaCoFileAvail", "Caco File available");
|
---|
89 | printf(" </td><td>\n");
|
---|
90 | PrintStatusMenu("fRawFileAvail", "Rawfile available");
|
---|
91 |
|
---|
92 | printf(" </td></tr><tr><td>\n");
|
---|
93 |
|
---|
94 | PrintStatusMenu("fTimingCorrection", "Timing Correction");
|
---|
95 | printf(" </td><td>\n");
|
---|
96 | PrintStatusMenu("fCaCoFileFound", "Caco File");
|
---|
97 | printf(" </td><td>\n");
|
---|
98 | PrintStatusMenu("fDataCheckDone", "DataCheck");
|
---|
99 |
|
---|
100 | printf(" </td></tr></table>\n");
|
---|
101 | printf(" <p>\n");
|
---|
102 | printf(" </div><p>\n");
|
---|
103 | }
|
---|
104 |
|
---|
105 | function PrintRunInfo2Menu($host,$user,$pw,$db)
|
---|
106 | {
|
---|
107 | printf(" <div id='info2' style='display:none'>");
|
---|
108 | printf(" <table>\n");
|
---|
109 | printf(" <tr><td>\n");
|
---|
110 | PrintPullDown($host, $user, $pw, $db, "RunType", "fRunTypeName", "fRunTypeKEY", "Run type");
|
---|
111 | printf(" </td><td>\n");
|
---|
112 | PrintPullDown($host, $user, $pw, $db, "Source", "fSourceName", "fSourceKEY", "Source Name");
|
---|
113 | printf(" </td><td>\n");
|
---|
114 | PrintPullDown($host, $user, $pw, $db, "HvSettings", "fHvSettingsName", "fHvSettingsKEY", "HV Settings");
|
---|
115 | printf(" </td><td>\n");
|
---|
116 | PrintPullDown($host, $user, $pw, $db, "L1TriggerTable", "fL1TriggerTableName", "fL1TriggerTableKEY", "L1 Trigger Table");
|
---|
117 | printf(" </td></tr><tr><td>\n");
|
---|
118 | PrintPullDown($host, $user, $pw, $db, "TestFlag", "fTestFlagName", "fTestFlagKEY", "Test Flag");
|
---|
119 | printf(" </td><td>\n");
|
---|
120 | PrintPullDown($host, $user, $pw, $db, "Project", "fProjectName", "fProjectKEY", "Project Name");
|
---|
121 | printf(" </td><td>\n");
|
---|
122 | PrintPullDown($host, $user, $pw, $db, "DiscriminatorThresholdTable", "fDiscriminatorThresholdTableName", "fDiscriminatorThresholdTableKEY", "DT Table");
|
---|
123 | printf(" </td><td>\n");
|
---|
124 | PrintPullDown($host, $user, $pw, $db, "L2TriggerTable", "fL2TriggerTableName", "fL2TriggerTableKEY", "L2 Trigger Table");
|
---|
125 | printf(" </td></tr><tr><td>\n");
|
---|
126 | PrintPullDown($host, $user, $pw, $db, "ExcludedFDA", "fExcludedFDAName", "fExcludedFDAKEY", "Exclusions");
|
---|
127 | printf(" </td><td>\n");
|
---|
128 | PrintPullDown($host, $user, $pw, $db, "LightConditions", "fLightConditionsName", "fLightConditionsKEY", "Light Conditions");
|
---|
129 | printf(" </td><td>\n");
|
---|
130 | PrintPullDown($host, $user, $pw, $db, "CalibrationScript", "fCalibrationScriptName", "fCalibrationScriptKEY", "Cal Script");
|
---|
131 | printf(" </td><td>\n");
|
---|
132 | PrintPullDown($host, $user, $pw, $db, "TriggerDelayTable", "fTriggerDelayTableName", "fTriggerDelayTableKEY", "Trigger Delay Table");
|
---|
133 | printf(" </td></tr><tr><td>\n");
|
---|
134 | PrintPullDown($host, $user, $pw, $db, "MagicNumber", "fMagicNumberName", "fMagicNumberKEY", "Magic Number");
|
---|
135 | printf(" </td><td>\n");
|
---|
136 | PrintPullDown($host, $user, $pw, $db, "ObservationMode", "fObservationModeName", "fObservationModeKEY", "Obs. Mode");
|
---|
137 | printf(" </td><td>\n");
|
---|
138 | printf(" </td><td>\n");
|
---|
139 | PrintPullDown($host, $user, $pw, $db, "SumTriggerFlag", "fSumTriggerFlagName", "fSumTriggerFlagKEY", "SumTrigger Flag");
|
---|
140 | printf(" </td></tr></table>\n");
|
---|
141 | printf(" </div><p>\n");
|
---|
142 | }
|
---|
143 |
|
---|
144 | function PrintSequInfoMenu()
|
---|
145 | {
|
---|
146 | printf(" <div id='info' style='display:none'>");
|
---|
147 | printf(" <table>\n");
|
---|
148 |
|
---|
149 | printf("<tr><td align='center'>\n");
|
---|
150 | printf(" <tr>\n");
|
---|
151 |
|
---|
152 | CheckBox("fRunStart", "Start time");
|
---|
153 | CheckBox("fRunStop", "Stop time");
|
---|
154 | CheckBox("fNumEvents", "Num of events");
|
---|
155 | CheckBox("fRunTime/60", "Duration");
|
---|
156 |
|
---|
157 | printf(" </tr><tr>\n");
|
---|
158 |
|
---|
159 | CheckBox("fZenithDistanceMin", "Zenith distance min");
|
---|
160 | CheckBox("fZenithDistanceMax", "Zenith distance max");
|
---|
161 | CheckBox("fAzimuthMin", "Azimuth min");
|
---|
162 | CheckBox("fAzimuthMax", "Azimuth max");
|
---|
163 |
|
---|
164 | printf(" </tr><tr>\n");
|
---|
165 |
|
---|
166 | CheckBox("fSequenceLast", "Last run");
|
---|
167 | CheckBox("fLinks", "Links");
|
---|
168 |
|
---|
169 | printf(" </tr><tr>\n");
|
---|
170 |
|
---|
171 | CheckBox("fOnlySum", "only sumtrigger");
|
---|
172 | CheckBox("fTest", "incl. TestSources");
|
---|
173 | CheckBox("fOff", "incl. offsources");
|
---|
174 | CheckBox("fOnlyOff", "only offsources");
|
---|
175 |
|
---|
176 | printf(" </tr></table>\n");
|
---|
177 | printf(" </div><p>\n");
|
---|
178 | }
|
---|
179 |
|
---|
180 | function PrintSequInfo2Menu($host,$user,$pw,$db)
|
---|
181 | {
|
---|
182 | printf(" <div id='info2' style='display:none'>\n");
|
---|
183 | printf(" <table>\n");
|
---|
184 | printf(" <tr><td>\n");
|
---|
185 | PrintPullDown($host, $user, $pw, $db, "Source", "fSourceName", "fSourceKEY", "Source Name");
|
---|
186 | printf(" </td><td>\n");
|
---|
187 | PrintPullDown($host, $user, $pw, $db, "Project", "fProjectName", "fProjectKEY", "Project Name");
|
---|
188 | printf(" </td><td>\n");
|
---|
189 | PrintPullDown($host, $user, $pw, $db, "L1TriggerTable", "fL1TriggerTableName", "fL1TriggerTableKEY", "L1Trigger Table");
|
---|
190 | printf(" </td></tr><tr><td>\n");
|
---|
191 | PrintPullDown($host, $user, $pw, $db, "LightConditions", "fLightConditionsName", "fLightConditionsKEY", "Light Conditions");
|
---|
192 | printf(" </td><td>\n");
|
---|
193 | PrintPullDown($host, $user, $pw, $db, "HvSettings", "fHvSettingsName", "fHvSettingsKEY", "HV Settings");
|
---|
194 | printf(" </td><td>\n");
|
---|
195 | PrintPullDown($host, $user, $pw, $db, "L2TriggerTable", "fL2TriggerTableName", "fL2TriggerTableKEY", "L2Trigger Table");
|
---|
196 | printf(" </td></tr><tr><td>\n");
|
---|
197 | PrintPullDown($host, $user, $pw, $db, "ObservationMode", "fObservationModeName", "fObservationModeKEY", "Obs. Mode");
|
---|
198 | printf(" </td><td>\n");
|
---|
199 | PrintPullDown($host, $user, $pw, $db, "DiscriminatorThresholdTable", "fDiscriminatorThresholdTableName", "fDiscriminatorThresholdTableKEY", "DT Table");
|
---|
200 | printf(" </td><td>\n");
|
---|
201 | PrintPullDown($host, $user, $pw, $db, "TriggerDelayTable", "fTriggerDelayTableName", "fTriggerDelayTableKEY", "Trigger Delay Table");
|
---|
202 | printf(" </td></tr><tr><td>\n");
|
---|
203 | printf(" </td><td>\n");
|
---|
204 | printf(" </td><td>\n");
|
---|
205 | PrintPullDown($host, $user, $pw, $db, "SumTriggerFlag", "fSumTriggerFlagName", "fSumTriggerFlagKEY", "SumTrigger Flag");
|
---|
206 | // printf(" </td><td>\n");
|
---|
207 | // PrintPullDown($host, $user, $pw, $db, "ManuallyChanged", "fManuallyChangedName", "fManuallyChangedKEY", "Manually changed");
|
---|
208 | // printf(" </td><td>\n");
|
---|
209 | // PrintPullDown($host, $user, $pw, $db, "TestFlag", "fTestFlagName", "fTestFlagKEY", "Test Flag");
|
---|
210 | printf(" </td></tr>\n");
|
---|
211 | printf(" </table>\n");
|
---|
212 | printf(" </div><p>\n");
|
---|
213 | }
|
---|
214 |
|
---|
215 | function PrintLimitsMenu($limitsmean, $limitsmin, $limitsmax, $alias, $old)
|
---|
216 | {
|
---|
217 | printf("<div id='limits' style='display:none'>\n");
|
---|
218 | printf(" <table>\n");
|
---|
219 | printf(" <tr><th colspan='3'>Limits</th></tr>\n");
|
---|
220 | printf(" <tr><td valign='top'>\n");
|
---|
221 |
|
---|
222 | printf(" <table>\n");
|
---|
223 | printf(" <tr><th>Name </th><th> Mean </th><th> Rms </th></tr>\n");
|
---|
224 |
|
---|
225 | foreach($limitsmean as $key => $element)
|
---|
226 | {
|
---|
227 | printf("<tr><td>%s</td>\n", $alias[$key]);
|
---|
228 | $mean=$key . "Mean";
|
---|
229 | $limitmean=$_GET[$mean];
|
---|
230 | printf("<td><input name=\"%sMean\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limitmean);
|
---|
231 | $rms2=$key . "Rms";
|
---|
232 | $limitrms=$_GET[$rms2];
|
---|
233 | printf("<td><input name=\"%sRms\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limitrms);
|
---|
234 | printf("</tr>\n");
|
---|
235 | }
|
---|
236 |
|
---|
237 | if (empty($old))
|
---|
238 | {
|
---|
239 | printf(" </table>\n");
|
---|
240 | printf(" </td>\n");
|
---|
241 | printf(" <td valign='top'>\n");
|
---|
242 | printf(" <table>\n");
|
---|
243 | }
|
---|
244 |
|
---|
245 | printf(" <tr><th>Name </th><th> Min </th><th> Min2 </th></tr>\n");
|
---|
246 | foreach($limitsmin as $key => $element)
|
---|
247 | {
|
---|
248 | printf("<tr><td>%s</td>\n", $alias[$key]);
|
---|
249 | $level1=$key . "1";
|
---|
250 | $limit1=$_GET[$level1];
|
---|
251 | printf("<td><input name=\"%s1\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limit1);
|
---|
252 | $level2=$key . "2";
|
---|
253 | $limit2=$_GET[$level2];
|
---|
254 | printf("<td><input name=\"%s2\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limit2);
|
---|
255 | printf("</tr>\n");
|
---|
256 | }
|
---|
257 |
|
---|
258 | if (empty($old))
|
---|
259 | {
|
---|
260 | printf(" </table>\n");
|
---|
261 | printf(" </td>\n");
|
---|
262 | printf(" <td valign='top'>\n");
|
---|
263 | printf(" <table>\n");
|
---|
264 | }
|
---|
265 |
|
---|
266 | printf(" <tr><th>Name </th><th> Max </th><th> Max2 </th></tr>\n");
|
---|
267 | foreach($limitsmax as $key => $element)
|
---|
268 | {
|
---|
269 | printf("<tr><td>%s</td>\n", $alias[$key]);
|
---|
270 | $level1=$key . "1";
|
---|
271 | $limit1=$_GET[$level1];
|
---|
272 | printf("<td><input name=\"%s1\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limit1);
|
---|
273 | $level2=$key . "2";
|
---|
274 | $limit2=$_GET[$level2];
|
---|
275 | printf("<td><input name=\"%s2\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limit2);
|
---|
276 | printf("</tr>\n");
|
---|
277 | }
|
---|
278 | printf(" </table>\n");
|
---|
279 |
|
---|
280 | printf(" </td></tr></table>\n");
|
---|
281 | printf("<p>\n");
|
---|
282 | printf("</div>\n");
|
---|
283 | }
|
---|
284 |
|
---|
285 | function PrintSequStatMenu()
|
---|
286 | {
|
---|
287 | printf(" <div id='stat' style='display:none'>\n");
|
---|
288 | printf(" <table><tr><td>\n");
|
---|
289 |
|
---|
290 | PrintStatusMenu("fAllFilesAvail", "Files avail");
|
---|
291 | printf(" </td><td>\n");
|
---|
292 | PrintStatusMenu("fCallisto", "Callisto");
|
---|
293 | printf(" </td><td>\n");
|
---|
294 | PrintStatusMenu("fStar", "Star");
|
---|
295 | printf(" </td></tr><tr><td>\n");
|
---|
296 | PrintStatusMenu("fSequenceFileWritten", "Sequfile");
|
---|
297 | printf(" </td><td>\n");
|
---|
298 | PrintStatusMenu("fFillCallisto", "Fillcallisto");
|
---|
299 | printf(" </td><td>\n");
|
---|
300 | PrintStatusMenu("fFillStar", "Fillstar");
|
---|
301 |
|
---|
302 | printf("</td></tr> </table>\n");
|
---|
303 | printf(" </div><p>\n");
|
---|
304 | }
|
---|
305 |
|
---|
306 | function PrintFailMenu()
|
---|
307 | {
|
---|
308 | printf(" <div id='fail' style='display:none'>\n");
|
---|
309 | printf(" <table>\n");
|
---|
310 | printf(" <tr>\n");
|
---|
311 |
|
---|
312 | CheckBox("fStartTime", "ProcessTime");
|
---|
313 | CheckBox("fFailedTime", "FailTime");
|
---|
314 | CheckBox("fReturnCode", "RetCode");
|
---|
315 | CheckBox("fProgramId", "ProgramId");
|
---|
316 |
|
---|
317 | printf(" </tr>\n");
|
---|
318 | printf(" </table>\n");
|
---|
319 | printf(" </div><p>\n");
|
---|
320 | }
|
---|
321 |
|
---|
322 | function PrintCalMenu()
|
---|
323 | {
|
---|
324 | printf(" <div id='cal' style='display:none'>\n");
|
---|
325 | printf(" <table>\n");
|
---|
326 | printf(" <tr>\n");
|
---|
327 |
|
---|
328 | CheckBox("fUnsuitableInner", "Unsuitable inner");
|
---|
329 | CheckBox("fUnsuitableOuter", "Unsuitable outer");
|
---|
330 | CheckBox("fUnreliableInner", "Unreliable inner");
|
---|
331 | CheckBox("fUnreliableOuter", "Unreliable outer");
|
---|
332 |
|
---|
333 | printf(" </tr><tr>\n");
|
---|
334 |
|
---|
335 | CheckBox("fUnsuitable50", "Unsuitable (50%)");
|
---|
336 | CheckBox("fUnsuitable01", "Unsuitable (1%)");
|
---|
337 | CheckBox("fUnsuitableMax", "UnsuitableMax");
|
---|
338 | CheckBox("fDeadMax", "DeadMax");
|
---|
339 |
|
---|
340 | printf(" </tr><tr>\n");
|
---|
341 |
|
---|
342 | CheckBox("fIsolatedInner", "Isolated inner");
|
---|
343 | CheckBox("fIsolatedOuter", "Isolated outer");
|
---|
344 | CheckBox("fIsolatedMaxCluster", "IsolatedMaxCluster");
|
---|
345 |
|
---|
346 | printf(" </tr><tr>\n");
|
---|
347 |
|
---|
348 | CheckBox("fArrTimeMeanInner", "ArrTimeMean inner ");
|
---|
349 | CheckBox("fArrTimeMeanOuter", "ArrTimeMean outer ");
|
---|
350 | CheckBox("fArrTimeRmsInner", "ArrTimeRms inner ");
|
---|
351 | CheckBox("fArrTimeRmsOuter", "ArrTimeRms outer ");
|
---|
352 |
|
---|
353 | printf(" </tr><tr>\n");
|
---|
354 |
|
---|
355 | CheckBox("fMeanPedRmsInner", "MeanPedRms inner");
|
---|
356 | CheckBox("fMeanPedRmsOuter", "MeanPedRms outer");
|
---|
357 | CheckBox("fMeanSignalInner", "MeanSignal inner");
|
---|
358 | CheckBox("fMeanSignalOuter", "MeanSignal outer");
|
---|
359 |
|
---|
360 | printf(" </tr><tr>\n");
|
---|
361 |
|
---|
362 | CheckBox("fConvFactorInner", "Conv inner ");
|
---|
363 | CheckBox("fConvFactorOuter", "Conv outer ");
|
---|
364 | CheckBox("fPulsePosMean", "Mean PulsePos");
|
---|
365 | CheckBox("fPulsePosCalib", "Cal PulsePos");
|
---|
366 |
|
---|
367 | printf(" </tr><tr>\n");
|
---|
368 |
|
---|
369 | CheckBox("fRateTrigEvts", "Rate Trig evts");
|
---|
370 | CheckBox("fRateSumEvts", "Rate Sum Trig evts");
|
---|
371 | CheckBox("fRatePedEvts", "Rate Ped evts");
|
---|
372 | CheckBox("fRatePedTrigEvts", "Rate Ped Trig evts");
|
---|
373 |
|
---|
374 | printf(" </tr><tr>\n");
|
---|
375 |
|
---|
376 | CheckBox("fRateCalEvts", "Rate Cal evts");
|
---|
377 | CheckBox("fRateNullEvts", "Rate Null evts");
|
---|
378 | CheckBox("fRateUnknownEvts", "Rate Unknown evts");
|
---|
379 | CheckBox("fRatioCalEvents", "Ratio Cal evts");
|
---|
380 |
|
---|
381 | printf(" </tr></table>\n");
|
---|
382 | printf(" </div><p>\n");
|
---|
383 | }
|
---|
384 |
|
---|
385 | function PrintStarMenu()
|
---|
386 | {
|
---|
387 | printf(" <div id='star' style='display:none'>\n");
|
---|
388 | printf(" <table>\n");
|
---|
389 | printf(" <tr>\n");
|
---|
390 |
|
---|
391 | CheckBox("fDataRate", "CleanedEvtRate");
|
---|
392 | CheckBox("fMeanNumberIslands", "MeanNumIslands");
|
---|
393 | CheckBox("fMaxHumidity", "MaxHumidity");
|
---|
394 | CheckBox("fInhomogeneity", "Inhomogeneity");
|
---|
395 |
|
---|
396 | printf(" </tr><tr>\n");
|
---|
397 |
|
---|
398 | CheckBox("fMuonRate", "MuonRate");
|
---|
399 | CheckBox("fMuonNumber", "MuonNumber");
|
---|
400 | CheckBox("fRatio", "Ratio");
|
---|
401 | CheckBox("fPSF", "PSF");
|
---|
402 |
|
---|
403 | printf(" </tr><tr>\n");
|
---|
404 |
|
---|
405 | CheckBox("fSparkRate", "SparkRate");
|
---|
406 |
|
---|
407 | printf(" </tr><tr>\n");
|
---|
408 |
|
---|
409 | CheckBox("fEffOnTime", "EffOnTime");
|
---|
410 | CheckBox("fEffOnTime/fRunTime", "RelOnTime");
|
---|
411 | CheckBox("fBrightnessMed", "SkyBrightnessMed");
|
---|
412 | CheckBox("fBrightnessRMS", "SkyBrightnessRMS");
|
---|
413 |
|
---|
414 | printf(" </tr><tr>\n");
|
---|
415 |
|
---|
416 | CheckBox("fNumStarsMed", "# id. Stars");
|
---|
417 | CheckBox("fNumStarsRMS", "RMS id. Stars");
|
---|
418 | CheckBox("fNumStarsCorMed", "# cor. Stars");
|
---|
419 | CheckBox("fNumStarsCorRMS", "RMS cor. Stars");
|
---|
420 |
|
---|
421 | printf(" </tr><tr>\n");
|
---|
422 |
|
---|
423 | CheckBox("fAvgWindSpeed", "Avg wind speed");
|
---|
424 | CheckBox("fAvgTemperature", "Avg temperature");
|
---|
425 | CheckBox("fAvgHumidity", "Avg humidity");
|
---|
426 | CheckBox("fAvgTempSky", "Avg sky temperature");
|
---|
427 |
|
---|
428 | printf(" </tr><tr>\n");
|
---|
429 |
|
---|
430 | CheckBox("fAvgCloudiness", "Avg cloudiness");
|
---|
431 | CheckBox("fRmsCloudiness", "RMS cloudiness");
|
---|
432 |
|
---|
433 | printf(" </tr>\n");
|
---|
434 | printf(" </table>\n");
|
---|
435 | printf(" </div><p>\n");
|
---|
436 | }
|
---|
437 |
|
---|
438 | function PrintDataSetInfoMenu($host,$user,$pw,$db)
|
---|
439 | {
|
---|
440 | printf(" <div id=\"info\" style='display:none'>");
|
---|
441 | printf(" <table>\n");
|
---|
442 | printf(" <tr>\n");
|
---|
443 |
|
---|
444 | CheckBox("fDataSetName", "Name");
|
---|
445 | CheckBox("fComment", "Comment");
|
---|
446 | CheckBox("fRunTime", "Uptime");
|
---|
447 | CheckBox("fRunStart", "Start");
|
---|
448 | CheckBox("fRunStop", "Stop");
|
---|
449 |
|
---|
450 | printf(" </tr><tr>\n");
|
---|
451 |
|
---|
452 | CheckBox("fZenithDistanceMin", "ZdMin");
|
---|
453 | CheckBox("fZenithDistanceMax", "ZdMax");
|
---|
454 | CheckBox("fLinks", "Links");
|
---|
455 |
|
---|
456 | printf(" </tr><tr>\n");
|
---|
457 |
|
---|
458 | CheckBox("fEffOnTime/3600", "EffOnTime");
|
---|
459 | CheckBox("fExcessEvents", "ExcEvts");
|
---|
460 | CheckBox("fBackgroundEvents", "BgEvts");
|
---|
461 | CheckBox("fSignalEvents", "SignEvts");
|
---|
462 | CheckBox("fSignificance", "Sign");
|
---|
463 |
|
---|
464 | printf(" </tr><tr>\n");
|
---|
465 |
|
---|
466 | CheckBox("fScaleFactor", "Scale");
|
---|
467 | CheckBox("fExcessEvents*60/fEffOnTime", "ExcRate");
|
---|
468 | CheckBox("fBackgroundEvents*60/fEffOnTime", "BgRate");
|
---|
469 | CheckBox("fSignalEvents*60/fEffOnTime", "SignRate");
|
---|
470 | CheckBox("Round(fSignificance/Sqrt(fEffOnTime/3600),2)", "SignfRate");
|
---|
471 |
|
---|
472 | printf(" </tr>\n");
|
---|
473 | printf(" </table>\n");
|
---|
474 | printf(" </div><p>\n");
|
---|
475 | }
|
---|
476 |
|
---|
477 | function PrintDataSetInfoMenu2($host,$user,$pw,$db)
|
---|
478 | {
|
---|
479 | printf(" <div id='info2' style='display:none'>");
|
---|
480 | printf(" <table><tr><td>\n");
|
---|
481 | PrintPullDown($host, $user, $pw, $db, "Source", "fSourceName", "fSourceKEY", "Source Name");
|
---|
482 | printf(" </td><td>\n");
|
---|
483 | PrintPullDown($host, $user, $pw, $db, "ObservationMode", "fObservationModeName", "fObservationModeKEY", "Observation Mode");
|
---|
484 | printf(" </td><td>\n");
|
---|
485 | PrintPullDown($host, $user, $pw, $db, "User", "fUserName", "fUserKEY", "User");
|
---|
486 | printf(" </td></tr>\n");
|
---|
487 | printf(" </table>\n");
|
---|
488 | printf("</div>");
|
---|
489 | }
|
---|
490 |
|
---|
491 | function PrintDataSetStatMenu($host,$user,$pw,$db)
|
---|
492 | {
|
---|
493 | printf(" <div id=\"stat\" style='display:none'>\n");
|
---|
494 | printf(" <table>\n");
|
---|
495 | printf(" <tr>\n");
|
---|
496 |
|
---|
497 | printf(" <td>\n");
|
---|
498 | PrintStatusMenu("fDataSetInserted", "DataSet Inserted");
|
---|
499 | printf(" </td><td>\n");
|
---|
500 | PrintStatusMenu("fDataSetFileWritten", "DataSetFile");
|
---|
501 | printf(" </td><td>\n");
|
---|
502 | PrintStatusMenu("fStarFilesAvail", "FilesAvail");
|
---|
503 | printf(" </td><td>\n");
|
---|
504 | PrintStatusMenu("fGanymed", "Ganymed");
|
---|
505 | printf(" </td><td>\n");
|
---|
506 | PrintStatusMenu("fFillGanymed", "FillGanymed");
|
---|
507 | printf(" </tr>\n");
|
---|
508 | printf(" </table>\n");
|
---|
509 | printf(" </div><p>\n");
|
---|
510 | }
|
---|
511 |
|
---|
512 | function PrintRunRangeMenu($host,$user,$pw,$db)
|
---|
513 | {
|
---|
514 | if (empty($_GET["fRunMin"]))
|
---|
515 | $min = GetMin("fRunNumber", "RunData", $host, $user, $pw, $db);
|
---|
516 | else
|
---|
517 | $min = $_GET["fRunMin"];
|
---|
518 |
|
---|
519 | if (empty($_GET["fRunMax"]))
|
---|
520 | $max = GetMax("fRunNumber", "RunData", $host, $user, $pw, $db);
|
---|
521 | else
|
---|
522 | $max = $_GET["fRunMax"];
|
---|
523 |
|
---|
524 | printf("Runs from <input name=\"fRunMin\" type=\"text\" size=\"8\" maxlength=\"8\" value=\"%s\">\n", $min);
|
---|
525 | printf("to <input name=\"fRunMax\" type=\"text\" size=\"8\" maxlength=\"8\" value=\"%s\"> \n", $max);
|
---|
526 | }
|
---|
527 |
|
---|
528 | function PrintCTAMCRunRangeMenu($host,$user,$pw,$db)
|
---|
529 | {
|
---|
530 | if (empty($_GET["fRunMin"]))
|
---|
531 | $min = GetMin("fMCRunNumber", "MCRunData", $host, $user, $pw, $db);
|
---|
532 | else
|
---|
533 | $min = $_GET["fRunMin"];
|
---|
534 |
|
---|
535 | if (empty($_GET["fRunMax"]))
|
---|
536 | $max = GetMax("fMCRunNumber", "MCRunData", $host, $user, $pw, $db);
|
---|
537 | else
|
---|
538 | $max = $_GET["fRunMax"];
|
---|
539 |
|
---|
540 | printf("Runs from <input name=\"fRunMin\" type=\"text\" size=\"8\" maxlength=\"8\" value=\"%s\">\n", $min);
|
---|
541 | printf("to <input name=\"fRunMax\" type=\"text\" size=\"8\" maxlength=\"8\" value=\"%s\"> \n", $max);
|
---|
542 | }
|
---|
543 |
|
---|
544 | function PrintSequRangeMenu($host,$user,$pw,$db)
|
---|
545 | {
|
---|
546 | if (empty($_GET["fRunMin"]))
|
---|
547 | $min = GetMin("fSequenceFirst", "Sequences", $host, $user, $pw, $db);
|
---|
548 | else
|
---|
549 | $min = $_GET["fRunMin"];
|
---|
550 |
|
---|
551 | if (empty($_GET["fRunMax"]))
|
---|
552 | $max = GetMax("fSequenceFirst", "Sequences", $host, $user, $pw, $db);
|
---|
553 | else
|
---|
554 | $max = $_GET["fRunMax"];
|
---|
555 |
|
---|
556 | printf("Sequences from <input name=\"fRunMin\" type=\"text\" size=\"8\" maxlength=\"8\" value=\"%s\">\n", $min);
|
---|
557 | printf("to <input name=\"fRunMax\" type=\"text\" size=\"8\" maxlength=\"8\" value=\"%s\"> \n", $max);
|
---|
558 | }
|
---|
559 |
|
---|
560 | function PrintDataSetRangeMenu($host,$user,$pw,$db)
|
---|
561 | {
|
---|
562 | if (empty($_GET["fRunMin"]))
|
---|
563 | $min = GetMin("fDataSetNumber", "DataSets", $host, $user, $pw, $db);
|
---|
564 | else
|
---|
565 | $min = $_GET["fRunMin"];
|
---|
566 |
|
---|
567 | if (empty($_GET["fRunMax"]))
|
---|
568 | $max = GetMax("fDataSetNumber", "DataSets", $host, $user, $pw, $db);
|
---|
569 | else
|
---|
570 | $max = $_GET["fRunMax"];
|
---|
571 |
|
---|
572 | printf("DataSets from <input name=\"fRunMin\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\">\n", $min);
|
---|
573 | printf("to <input name=\"fRunMax\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"> \n", $max);
|
---|
574 | }
|
---|
575 |
|
---|
576 | function PrintZdRangeMenu($host,$user,$pw,$db)
|
---|
577 | {
|
---|
578 | if (empty($_GET["fZDMin"]))
|
---|
579 | $zdmin = GetMin("fZenithDistanceMin", "Sequences", $host, $user, $pw, $db);
|
---|
580 | else
|
---|
581 | $zdmin = $_GET["fZDMin"];
|
---|
582 |
|
---|
583 | if (empty($_GET["fZDMax"]))
|
---|
584 | $zdmax = GetMax("fZenithDistanceMax", "Sequences", $host, $user, $pw, $db);
|
---|
585 | else
|
---|
586 | $zdmax = $_GET["fZDMax"];
|
---|
587 |
|
---|
588 | printf("ZenithDistance from <input name=\"fZDMin\" type=\"text\" size=\"2\" maxlength=\"2\" value=\"%s\">\n", $zdmin);
|
---|
589 | printf("to <input name=\"fZDMax\" type=\"text\" size=\"2\" maxlength=\"2\" value=\"%s\"> \n", $zdmax);
|
---|
590 | }
|
---|
591 |
|
---|
592 | function PrintNightRangeMenu($host,$user,$pw,$db, $table)
|
---|
593 | {
|
---|
594 | if (empty($_GET["fStartDate"]))
|
---|
595 | $timemin = GetMin("fRunStart", $table, $host, $user, $pw, $db);
|
---|
596 | else
|
---|
597 | $timemin = $_GET["fStartDate"];
|
---|
598 |
|
---|
599 | if (empty($_GET["fStopDate"]))
|
---|
600 | $timemax = GetMaxDate("fRunStart", $table, $host, $user, $pw, $db);
|
---|
601 | else
|
---|
602 | $timemax = $_GET["fStopDate"];
|
---|
603 |
|
---|
604 | printf("Night (yyyy-mm-dd) from <input name=\"fStartDate\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"%s\">\n", $timemin);
|
---|
605 | printf("to <input name=\"fStopDate\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"%s\"> \n", $timemax);
|
---|
606 | }
|
---|
607 |
|
---|
608 | function PrintStarRangeMenu($host,$user,$pw,$db)
|
---|
609 | {
|
---|
610 | if (empty($_GET["fStarStart"]))
|
---|
611 | $starmin = GetMin("fStar", "SequenceProcessStatus", $host, $user, $pw, $db);
|
---|
612 | else
|
---|
613 | $starmin = $_GET["fStarStart"];
|
---|
614 |
|
---|
615 | if (empty($_GET["fStarStop"]))
|
---|
616 | $starmax = GetMax("fStar", "SequenceProcessStatus", $host, $user, $pw, $db);
|
---|
617 | else
|
---|
618 | $starmax = $_GET["fStarStop"];
|
---|
619 |
|
---|
620 | printf("<p>StarDone (yyyy-mm-dd) from <input name=\"fStarStart\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"%s\">\n", $starmin);
|
---|
621 | printf("to <input name=\"fStarStop\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"%s\"> \n", $starmax);
|
---|
622 | }
|
---|
623 |
|
---|
624 | function PrintGroupByDateMenu()
|
---|
625 | {
|
---|
626 | printf("Group by Date ");
|
---|
627 | printf("<select name='fGroupByDate' size='1' class='Width'>\n");
|
---|
628 | if (empty($_GET["fGroupByDate"]) || $_GET["fGroupByDate"]==0)
|
---|
629 | printf(" <option value='0' selected>--- NO GROUP BY ---</option>\n");
|
---|
630 | else
|
---|
631 | printf(" <option value='0'>--- NO GROUP BY ---</option>\n");
|
---|
632 | $dates=array("Year", "Month","Night");
|
---|
633 | foreach ($dates as $date)
|
---|
634 | {
|
---|
635 | if ($_GET["fGroupByDate"]==$date)
|
---|
636 | printf(" <option value='%s' selected> %s </option>\n", $date, $date);
|
---|
637 | else
|
---|
638 | printf(" <option value='%s'> %s </option>\n", $date, $date);
|
---|
639 | }
|
---|
640 | printf(" </select>\n");
|
---|
641 | }
|
---|
642 |
|
---|
643 | function PrintSourceMenu($host,$user,$pw,$db)
|
---|
644 | {
|
---|
645 | printf("Source (<A HREF=\"regexp.html\">regexp</A>) <input name=\"fSourceN\" type=\"text\" size=\"15\" maxlength=\"15\" value=\"");
|
---|
646 | if (!empty($_GET["fSourceN"]))
|
---|
647 | printf("%s", $_GET["fSourceN"]);
|
---|
648 | printf("\"> \n");
|
---|
649 | }
|
---|
650 | function PrintSequMenu($host,$user,$pw,$db)
|
---|
651 | {
|
---|
652 | printf("Sequ# <input name=\"fSequenceNo\" type=\"text\" size=\"8\" maxlength=\"8\" value=\"");
|
---|
653 | if (!empty($_GET["fSequenceNo"]))
|
---|
654 | printf("%s", $_GET["fSequenceNo"]);
|
---|
655 | printf("\"> \n");
|
---|
656 | }
|
---|
657 |
|
---|
658 | function PrintNumResPullDown()
|
---|
659 | {
|
---|
660 | printf(" Results:\n");
|
---|
661 | printf(" <select name=\"fNumResults\">\n");
|
---|
662 |
|
---|
663 | $numres = array("10", "20", "50", "100", "200", "500", "1000", "2000");
|
---|
664 | foreach ($numres as $element)
|
---|
665 | {
|
---|
666 | if ($element==$_GET["fNumResults"])
|
---|
667 | printf("<option value=\"%s\" selected>%3s</option>\n", $element, $element);
|
---|
668 | else
|
---|
669 | printf("<option value=\"%s\">%3s</option>\n", $element, $element);
|
---|
670 | }
|
---|
671 | printf(" </select>\n");
|
---|
672 | printf(" \n");
|
---|
673 | }
|
---|
674 |
|
---|
675 | function PrintButtons($page)
|
---|
676 | {
|
---|
677 | printf("<input class='Width' type='submit' value='Query Table'> \n");
|
---|
678 | printf("<input class='Width' type='button' value='Reset' onClick='self.location.href=\"%s\"'> \n", $page);
|
---|
679 | // printf("<p>");
|
---|
680 | if (strchr($_SERVER["REQUEST_URI"], '?')!=FALSE)
|
---|
681 | {
|
---|
682 | printf("<input class='Width' type='button' value='Get .txt' onClick='self.location.href=\"%s&fSendTxt=1\"'> \n", htmlspecialchars($_SERVER["REQUEST_URI"]));
|
---|
683 | printf("<input class='Width' type='button' value='Print' onClick='self.location.href=\"%s&fPrintTable=1\"'> \n", htmlspecialchars($_SERVER["REQUEST_URI"]));
|
---|
684 | printf("MySqlQuery: <img id='showquerybutton' src='../plus.png' alt='+' onClick='showhide(\"showquery\")'>\n");
|
---|
685 | }
|
---|
686 | }
|
---|
687 |
|
---|
688 | function InitFailInfo($_GET, $first)
|
---|
689 | {
|
---|
690 | if (empty($_GET["fStartTime"]))
|
---|
691 | $_GET["fStartTime"]="Off";
|
---|
692 |
|
---|
693 | if (empty($_GET["fFailedTime"]))
|
---|
694 | $_GET["fFailedTime"]="Off";
|
---|
695 |
|
---|
696 | if (empty($_GET["fReturnCode"]))
|
---|
697 | $_GET["fReturnCode"]="Off";
|
---|
698 |
|
---|
699 | if (empty($_GET["fProgramId"]))
|
---|
700 | $_GET["fProgramId"]="Off";
|
---|
701 | }
|
---|
702 |
|
---|
703 | function InitInfo($_GET, $first)
|
---|
704 | {
|
---|
705 | if (empty($_GET["fNumResults"]))
|
---|
706 | $_GET["fNumResults"]="20";
|
---|
707 |
|
---|
708 | if (empty($_GET["fNumEvents"]))
|
---|
709 | $_GET["fNumEvents"]="Off";
|
---|
710 |
|
---|
711 | if (empty($_GET["fRunStart"]))
|
---|
712 | $_GET["fRunStart"]="Off";
|
---|
713 |
|
---|
714 | if (empty($_GET["fRunStop"]))
|
---|
715 | $_GET["fRunStop"]="Off";
|
---|
716 |
|
---|
717 | if (empty($_GET["fTest"]))
|
---|
718 | $_GET["fTest"]="Off";
|
---|
719 |
|
---|
720 | if (empty($_GET["fSourceName"]))
|
---|
721 | $_GET["fSourceName"]="Off";
|
---|
722 |
|
---|
723 | if (empty($_GET["fProjectName"]))
|
---|
724 | $_GET["fProjectName"]="Off";
|
---|
725 |
|
---|
726 | if (empty($_GET["fL1TriggerTableName"]))
|
---|
727 | $_GET["fL1TriggerTableName"]="Off";
|
---|
728 |
|
---|
729 | if (empty($_GET["fL2TriggerTableName"]))
|
---|
730 | $_GET["fL2TriggerTableName"]="Off";
|
---|
731 |
|
---|
732 | if (empty($_GET["fHvSettingsName"]))
|
---|
733 | $_GET["fHvSettingsName"]="Off";
|
---|
734 |
|
---|
735 | if (empty($_GET["fDiscriminatorThresholdTableName"]))
|
---|
736 | $_GET["fDiscriminatorThresholdTableName"]="Off";
|
---|
737 |
|
---|
738 | if (empty($_GET["fTriggerDelayTableName"]))
|
---|
739 | $_GET["fTriggerDelayTableName"]="Off";
|
---|
740 |
|
---|
741 | if (empty($_GET["fLightConditionsName"]))
|
---|
742 | $_GET["fLightConditionsName"]="Off";
|
---|
743 |
|
---|
744 | if (empty($_GET["fTestFlagName"]))
|
---|
745 | $_GET["fTestFlagName"]="Off";
|
---|
746 | }
|
---|
747 |
|
---|
748 | function InitRunStatus($_GET, $first)
|
---|
749 | {
|
---|
750 | if (empty($_GET["fDataCheckDone"]))
|
---|
751 | $_GET["fDataCheckDone"]="Off";
|
---|
752 |
|
---|
753 | if (empty($_GET["fDataCheckDoneStatus"]))
|
---|
754 | $_GET["fDataCheckDoneStatus"]="0";
|
---|
755 |
|
---|
756 | if (empty($_GET["fCCFileAvail"]))
|
---|
757 | $_GET["fCCFileAvail"]="Off";
|
---|
758 |
|
---|
759 | if (empty($_GET["fCCFileAvailStatus"]))
|
---|
760 | $_GET["fCCFileAvailStatus"]="0";
|
---|
761 |
|
---|
762 | if (empty($_GET["fCaCoFileAvail"]))
|
---|
763 | $_GET["fCaCoFileAvail"]=$first?"On":"";
|
---|
764 |
|
---|
765 | if (empty($_GET["fCaCoFileAvailStatus"]))
|
---|
766 | $_GET["fCaCoFileAvailStatus"]="0";
|
---|
767 |
|
---|
768 | if (empty($_GET["fCaCoFileFound"]))
|
---|
769 | $_GET["fCaCoFileFound"]="Off";
|
---|
770 |
|
---|
771 | if (empty($_GET["fCaCoFileFoundStatus"]))
|
---|
772 | $_GET["fCaCoFileFoundStatus"]="0";
|
---|
773 |
|
---|
774 | if (empty($_GET["fRawFileAvail"]))
|
---|
775 | $_GET["fRawFileAvail"]="Off";
|
---|
776 |
|
---|
777 | if (empty($_GET["fRawFileAvailStatus"]))
|
---|
778 | $_GET["fRawFileAvailStatus"]="0";
|
---|
779 |
|
---|
780 | if (empty($_GET["fTimingCorrection"]))
|
---|
781 | $_GET["fTimingCorrection"]="Off";
|
---|
782 |
|
---|
783 | if (empty($_GET["fTimingCorrectionStatus"]))
|
---|
784 | $_GET["fTimingCorrectionStatus"]="0";
|
---|
785 | }
|
---|
786 |
|
---|
787 | function InitRunInfo($_GET, $first)
|
---|
788 | {
|
---|
789 | InitRunStatus($_GET, $first);
|
---|
790 | InitInfo($_GET, $first);
|
---|
791 | InitFailInfo($_GET, $first);
|
---|
792 |
|
---|
793 | if (empty($_GET["fLinks"]))
|
---|
794 | $_GET["fLinks"]=$first?"On":"";
|
---|
795 |
|
---|
796 | if (empty($_GET["fFormatVersion"]))
|
---|
797 | $_GET["fFormatVersion"]="Off";
|
---|
798 |
|
---|
799 | if (empty($_GET["fAzimuth"]))
|
---|
800 | $_GET["fAzimuth"]="Off";
|
---|
801 |
|
---|
802 | if (empty($_GET["fZenithDistance"]))
|
---|
803 | $_GET["fZenithDistance"]="Off";
|
---|
804 |
|
---|
805 | if (empty($_GET["fRunTypeName"]))
|
---|
806 | $_GET["fRunTypeName"]="Off";
|
---|
807 |
|
---|
808 | if (empty($_GET["fExcludedFDAName"]))
|
---|
809 | $_GET["fExcludedFDAName"]="Off";
|
---|
810 |
|
---|
811 | if (empty($_GET["fMagicNumberName"]))
|
---|
812 | $_GET["fMagicNumberName"]="Off";
|
---|
813 |
|
---|
814 | if (empty($_GET["fObservationModeName"]))
|
---|
815 | $_GET["fObservationModeName"]="Off";
|
---|
816 |
|
---|
817 | if (empty($_GET["fSumTriggerFlagName"]))
|
---|
818 | $_GET["fSumTriggerFlagName"]="Off";
|
---|
819 |
|
---|
820 | if (empty($_GET["fMeanTriggerRate"]))
|
---|
821 | $_GET["fMeanTriggerRate"]="Off";
|
---|
822 |
|
---|
823 | if (empty($_GET["fCalibrationScriptName"]))
|
---|
824 | $_GET["fCalibrationScriptName"]="Off";
|
---|
825 |
|
---|
826 | if (empty($_GET["fTestFlagName"]))
|
---|
827 | $_GET["fTestFlagName"]="Off";
|
---|
828 |
|
---|
829 | if (empty($_GET["fDaqStoreRate"]))
|
---|
830 | $_GET["fDaqStoreRate"]="Off";
|
---|
831 |
|
---|
832 | if (empty($_GET["fDaqTriggerRate"]))
|
---|
833 | $_GET["fDaqTriggerRate"]="Off";
|
---|
834 |
|
---|
835 | if (empty($_GET["fL2RatePresc"]))
|
---|
836 | $_GET["fL2RatePresc"]="Off";
|
---|
837 |
|
---|
838 | if (empty($_GET["fL2RateUnpresc"]))
|
---|
839 | $_GET["fL2RateUnpresc"]="Off";
|
---|
840 |
|
---|
841 | if (empty($_GET["fSequenceFirst"]))
|
---|
842 | $_GET["fSequenceFirst"]="Off";
|
---|
843 |
|
---|
844 | if (empty($_GET["fSequenceNo"]))
|
---|
845 | $_GET["fSequenceNo"]="";
|
---|
846 | }
|
---|
847 |
|
---|
848 | function InitSequStatus($_GET, $first)
|
---|
849 | {
|
---|
850 | if (empty($_GET["fSequenceFileWritten"]))
|
---|
851 | $_GET["fSequenceFileWritten"]="Off";
|
---|
852 |
|
---|
853 | if (empty($_GET["fSequenceFileWrittenStatus"]))
|
---|
854 | $_GET["fSequenceFileWrittenStatus"]="0";
|
---|
855 |
|
---|
856 | if (empty($_GET["fAllFilesAvail"]))
|
---|
857 | $_GET["fAllFilesAvail"]="Off";
|
---|
858 |
|
---|
859 | if (empty($_GET["fAllFilesAvailStatus"]))
|
---|
860 | $_GET["fAllFilesAvailStatus"]="0";
|
---|
861 |
|
---|
862 | if (empty($_GET["fCallisto"]))
|
---|
863 | $_GET["fCallisto"]="Off";
|
---|
864 |
|
---|
865 | if (empty($_GET["fCallistoStatus"]))
|
---|
866 | $_GET["fCallistoStatus"]="0";
|
---|
867 |
|
---|
868 | if (empty($_GET["fFillCallisto"]))
|
---|
869 | $_GET["fFillCallisto"]="Off";
|
---|
870 |
|
---|
871 | if (empty($_GET["fFillCallistoStatus"]))
|
---|
872 | $_GET["fFillCallistoStatus"]="0";
|
---|
873 |
|
---|
874 | if (empty($_GET["fStar"]))
|
---|
875 | $_GET["fStar"]="Off";
|
---|
876 |
|
---|
877 | if (empty($_GET["fStarStatus"]))
|
---|
878 | $_GET["fStarStatus"]="0";
|
---|
879 |
|
---|
880 | if (empty($_GET["fFillStar"]))
|
---|
881 | $_GET["fFillStar"]="Off";
|
---|
882 |
|
---|
883 | if (empty($_GET["fFillStarStatus"]))
|
---|
884 | $_GET["fFillStarStatus"]="0";
|
---|
885 | }
|
---|
886 |
|
---|
887 | function InitStarInfo($_GET, $first)
|
---|
888 | {
|
---|
889 | if (empty($_GET["fMeanNumberIslands"]))
|
---|
890 | $_GET["fMeanNumberIslands"]="Off";
|
---|
891 |
|
---|
892 | if (empty($_GET["fPSF"]))
|
---|
893 | $_GET["fPSF"]="Off";
|
---|
894 |
|
---|
895 | if (empty($_GET["fRatio"]))
|
---|
896 | $_GET["fRatio"]="Off";
|
---|
897 |
|
---|
898 | if (empty($_GET["fMuonNumber"]))
|
---|
899 | $_GET["fMuonNumber"]="Off";
|
---|
900 |
|
---|
901 | if (empty($_GET["fEffOnTime"]))
|
---|
902 | $_GET["fEffOnTime"]="Off";
|
---|
903 |
|
---|
904 | if (empty($_GET["fEffOnTime/fRunTime"]))
|
---|
905 | $_GET["fEffOnTime/fRunTime"]="Off";
|
---|
906 |
|
---|
907 | if (empty($_GET["fMuonRate"]))
|
---|
908 | $_GET["fMuonRate"]="Off";
|
---|
909 |
|
---|
910 | if (empty($_GET["fInhomogeneity"]))
|
---|
911 | $_GET["fInhomogeneity"]="Off";
|
---|
912 |
|
---|
913 | if (empty($_GET["fDataRate"]))
|
---|
914 | $_GET["fDataRate"]="Off";
|
---|
915 |
|
---|
916 | if (empty($_GET["fSparkRate"]))
|
---|
917 | $_GET["fSparkRate"]="Off";
|
---|
918 |
|
---|
919 | if (empty($_GET["fMaxHumidity"]))
|
---|
920 | $_GET["fMaxHumidity"]="Off";
|
---|
921 |
|
---|
922 | if (empty($_GET["fBrightnessMed"]))
|
---|
923 | $_GET["fBrightnessMed"]="Off";
|
---|
924 |
|
---|
925 | if (empty($_GET["fBrightnessRMS"]))
|
---|
926 | $_GET["fBrightnessRMS"]="Off";
|
---|
927 |
|
---|
928 | if (empty($_GET["fNumStarsMed"]))
|
---|
929 | $_GET["fNumStarsMed"]="Off";
|
---|
930 |
|
---|
931 | if (empty($_GET["fNumStarsRMS"]))
|
---|
932 | $_GET["fNumStarsRMS"]="Off";
|
---|
933 |
|
---|
934 | if (empty($_GET["fNumStarsCorMed"]))
|
---|
935 | $_GET["fNumStarsCorMed"]="Off";
|
---|
936 |
|
---|
937 | if (empty($_GET["fNumStarsCorRMS"]))
|
---|
938 | $_GET["fNumStarsCorRMS"]="Off";
|
---|
939 |
|
---|
940 | if (empty($_GET["fAvgWindSpeed"]))
|
---|
941 | $_GET["fAvgWindSpeed"]="Off";
|
---|
942 |
|
---|
943 | if (empty($_GET["fAvgTemperature"]))
|
---|
944 | $_GET["fAvgTemperature"]="Off";
|
---|
945 |
|
---|
946 | if (empty($_GET["fAvgHumidity"]))
|
---|
947 | $_GET["fAvgHumidity"]="Off";
|
---|
948 |
|
---|
949 | if (empty($_GET["fAvgTempSky"]))
|
---|
950 | $_GET["fAvgTempSky"]="Off";
|
---|
951 |
|
---|
952 | if (empty($_GET["fAvgCloudiness"]))
|
---|
953 | $_GET["fAvgCloudiness"]="Off";
|
---|
954 |
|
---|
955 | if (empty($_GET["fRmsCloudiness"]))
|
---|
956 | $_GET["fRmsCloudiness"]="Off";
|
---|
957 | }
|
---|
958 |
|
---|
959 | function InitCalInfo($_GET, $first)
|
---|
960 | {
|
---|
961 | if (empty($_GET["fUnreliableInner"]))
|
---|
962 | $_GET["fUnreliableInner"]="Off";
|
---|
963 |
|
---|
964 | if (empty($_GET["fUnsuitableOuter"]))
|
---|
965 | $_GET["fUnsuitableOuter"]="Off";
|
---|
966 |
|
---|
967 | if (empty($_GET["fUnreliableOuter"]))
|
---|
968 | $_GET["fUnreliableOuter"]="Off";
|
---|
969 |
|
---|
970 | if (empty($_GET["fUnsuitableInner"]))
|
---|
971 | $_GET["fUnsuitableInner"]="Off";
|
---|
972 |
|
---|
973 | if (empty($_GET["fUnsuitable50"]))
|
---|
974 | $_GET["fUnsuitable50"]="Off";
|
---|
975 |
|
---|
976 | if (empty($_GET["fUnsuitable01"]))
|
---|
977 | $_GET["fUnsuitable01"]="Off";
|
---|
978 |
|
---|
979 | if (empty($_GET["fUnsuitableMax"]))
|
---|
980 | $_GET["fUnsuitableMax"]="Off";
|
---|
981 |
|
---|
982 | if (empty($_GET["fDeadMax"]))
|
---|
983 | $_GET["fDeadMax"]="Off";
|
---|
984 |
|
---|
985 | if (empty($_GET["fRateTrigEvts"]))
|
---|
986 | $_GET["fRateTrigEvts"]="Off";
|
---|
987 |
|
---|
988 | if (empty($_GET["fRateSumEvts"]))
|
---|
989 | $_GET["fRateSumEvts"]="Off";
|
---|
990 |
|
---|
991 | if (empty($_GET["fRatePedEvts"]))
|
---|
992 | $_GET["fRatePedEvts"]="Off";
|
---|
993 |
|
---|
994 | if (empty($_GET["fRatePedTrigEvts"]))
|
---|
995 | $_GET["fRatePedTrigEvts"]="Off";
|
---|
996 |
|
---|
997 | if (empty($_GET["fRateCalEvts"]))
|
---|
998 | $_GET["fRateCalEvts"]="Off";
|
---|
999 |
|
---|
1000 | if (empty($_GET["fRateNullEvts"]))
|
---|
1001 | $_GET["fRateNullEvts"]="Off";
|
---|
1002 |
|
---|
1003 | if (empty($_GET["fRateUnknownEvts"]))
|
---|
1004 | $_GET["fRateUnknownEvts"]="Off";
|
---|
1005 |
|
---|
1006 | if (empty($_GET["fRatioCalEvents"]))
|
---|
1007 | $_GET["fRatioCalEvents"]="Off";
|
---|
1008 |
|
---|
1009 | if (empty($_GET["fPulsePosCalib"]))
|
---|
1010 | $_GET["fPulsePosCalib"]="Off";
|
---|
1011 |
|
---|
1012 | if (empty($_GET["fIsolatedInner"]))
|
---|
1013 | $_GET["fIsolatedInner"]="Off";
|
---|
1014 |
|
---|
1015 | if (empty($_GET["fIsolatedOuter"]))
|
---|
1016 | $_GET["fIsolatedOuter"]="Off";
|
---|
1017 |
|
---|
1018 | if (empty($_GET["fMeanPedRmsInner"]))
|
---|
1019 | $_GET["fMeanPedRmsInner"]="Off";
|
---|
1020 |
|
---|
1021 | if (empty($_GET["fMeanPedRmsOuter"]))
|
---|
1022 | $_GET["fMeanPedRmsOuter"]="Off";
|
---|
1023 |
|
---|
1024 | if (empty($_GET["fIsolatedMaxCluster"]))
|
---|
1025 | $_GET["fIsolatedMaxCluster"]="Off";
|
---|
1026 |
|
---|
1027 | if (empty($_GET["fArrTimeMeanInner"]))
|
---|
1028 | $_GET["fArrTimeMeanInner"]="Off";
|
---|
1029 |
|
---|
1030 | if (empty($_GET["fArrTimeMeanOuter"]))
|
---|
1031 | $_GET["fArrTimeMeanOuter"]="Off";
|
---|
1032 |
|
---|
1033 | if (empty($_GET["fArrTimeRmsInner"]))
|
---|
1034 | $_GET["fArrTimeRmsInner"]="Off";
|
---|
1035 |
|
---|
1036 | if (empty($_GET["fArrTimeRmsOuter"]))
|
---|
1037 | $_GET["fArrTimeRmsOuter"]="Off";
|
---|
1038 |
|
---|
1039 | if (empty($_GET["fMeanSignalInner"]))
|
---|
1040 | $_GET["fMeanSignalInner"]=$first?"Off":"";
|
---|
1041 |
|
---|
1042 | if (empty($_GET["fMeanSignalOuter"]))
|
---|
1043 | $_GET["fMeanSignalOuter"]=$first?"Off":"";
|
---|
1044 |
|
---|
1045 | if (empty($_GET["fPulsePosMean"]))
|
---|
1046 | $_GET["fPulsePosMean"]=$first?"Off":"";
|
---|
1047 |
|
---|
1048 | if (empty($_GET["fConvFactorInner"]))
|
---|
1049 | $_GET["fConvFactorInner"]="Off";
|
---|
1050 |
|
---|
1051 | if (empty($_GET["fConvFactorOuter"]))
|
---|
1052 | $_GET["fConvFactorOuter"]="Off";
|
---|
1053 | }
|
---|
1054 |
|
---|
1055 | function InitSequInfo($_GET, $first)
|
---|
1056 | {
|
---|
1057 | InitInfo($_GET, $first);
|
---|
1058 | InitSequStatus($_GET, $first);
|
---|
1059 | InitFailInfo($_GET, $first);
|
---|
1060 | InitCalInfo($_GET, $first);
|
---|
1061 | InitStarInfo($_GET, $first);
|
---|
1062 |
|
---|
1063 | if (empty($_GET["fRunTime/60"]))
|
---|
1064 | $_GET["fRunTime/60"]="Off";
|
---|
1065 |
|
---|
1066 | if (empty($_GET["fSequenceLast"]))
|
---|
1067 | $_GET["fSequenceLast"]="Off";
|
---|
1068 |
|
---|
1069 | if (empty($_GET["fAzimuthMin"]))
|
---|
1070 | $_GET["fAzimuthMin"]="Off";
|
---|
1071 |
|
---|
1072 | if (empty($_GET["fAzimuthMax"]))
|
---|
1073 | $_GET["fAzimuthMax"]="Off";
|
---|
1074 |
|
---|
1075 | if (empty($_GET["fZenithDistanceMin"]))
|
---|
1076 | $_GET["fZenithDistanceMin"]="Off";
|
---|
1077 |
|
---|
1078 | if (empty($_GET["fZenithDistanceMax"]))
|
---|
1079 | $_GET["fZenithDistanceMax"]="Off";
|
---|
1080 |
|
---|
1081 | if (empty($_GET["fObservationModeName"]))
|
---|
1082 | $_GET["fObservationModeName"]="Off";
|
---|
1083 |
|
---|
1084 | if (empty($_GET["fSumTriggerFlagName"]))
|
---|
1085 | $_GET["fSumTriggerFlagName"]="Off";
|
---|
1086 |
|
---|
1087 | // if (empty($_GET["fManuallyChangedName"]))
|
---|
1088 | // $_GET["fManuallyChangedName"]="Off";
|
---|
1089 | }
|
---|
1090 |
|
---|
1091 | function InitDataSetStatus($_GET, $first)
|
---|
1092 | {
|
---|
1093 | if (empty($_GET["fDataSetInserted"]))
|
---|
1094 | $_GET["fDataSetInserted"]="Off";
|
---|
1095 |
|
---|
1096 | if (empty($_GET["fDataSetInsertedStatus"]))
|
---|
1097 | $_GET["fDataSetInsertedStatus"]="0";
|
---|
1098 |
|
---|
1099 | if (empty($_GET["fDataSetFileWritten"]))
|
---|
1100 | $_GET["fDataSetFileWritten"]=$first?"On":"";
|
---|
1101 |
|
---|
1102 | if (empty($_GET["fDataSetFileWrittenStatus"]))
|
---|
1103 | $_GET["fDataSetFileWrittenStatus"]="0";
|
---|
1104 |
|
---|
1105 | if (empty($_GET["fStarFilesAvail"]))
|
---|
1106 | $_GET["fStarFilesAvail"]="Off";
|
---|
1107 |
|
---|
1108 | if (empty($_GET["fStarFilesAvailStatus"]))
|
---|
1109 | $_GET["fStarFilesAvailStatus"]="0";
|
---|
1110 |
|
---|
1111 | if (empty($_GET["fGanymed"]))
|
---|
1112 | $_GET["fGanymed"]=$first?"On":"";
|
---|
1113 |
|
---|
1114 | if (empty($_GET["fGanymedStatus"]))
|
---|
1115 | $_GET["fGanymedStatus"]="0";
|
---|
1116 |
|
---|
1117 | if (empty($_GET["fFillGanymed"]))
|
---|
1118 | $_GET["fFillGanymed"]="Off";
|
---|
1119 |
|
---|
1120 | if (empty($_GET["fFillGanymedStatus"]))
|
---|
1121 | $_GET["fFillGanymedStatus"]="0";
|
---|
1122 | }
|
---|
1123 |
|
---|
1124 | function InitDataSetInfo($_GET, $first)
|
---|
1125 | {
|
---|
1126 | InitDataSetStatus($_GET, $first);
|
---|
1127 | InitFailInfo($_GET, $first);
|
---|
1128 |
|
---|
1129 | if (empty($_GET["fNumResults"]))
|
---|
1130 | $_GET["fNumResults"]="50";
|
---|
1131 |
|
---|
1132 | if (empty($_GET["fLinks"]))
|
---|
1133 | $_GET["fLinks"]=$first?"On":"";
|
---|
1134 |
|
---|
1135 | if (empty($_GET["fExcessEvents"]))
|
---|
1136 | $_GET["fExcessEvents"]=$first?"On":"";
|
---|
1137 |
|
---|
1138 | if (empty($_GET["fBackgroundEvents*60/fEffOnTime"]))
|
---|
1139 | $_GET["fBackgroundEvents*60/fEffOnTime"]=$first?"On":"";
|
---|
1140 |
|
---|
1141 | if (empty($_GET["fBackgroundEvents"]))
|
---|
1142 | $_GET["fBackgroundEvents"]=$first?"On":"";
|
---|
1143 |
|
---|
1144 | if (empty($_GET["fSignalEvents"]))
|
---|
1145 | $_GET["fSignalEvents"]=$first?"On":"";
|
---|
1146 |
|
---|
1147 | if (empty($_GET["fSignificance"]))
|
---|
1148 | $_GET["fSignificance"]=$first?"On":"";
|
---|
1149 |
|
---|
1150 | if (empty($_GET["fScaleFactor"]))
|
---|
1151 | $_GET["fScaleFactor"]=$first?"On":"";
|
---|
1152 |
|
---|
1153 | if (empty($_GET["fEffOnTime/3600"]))
|
---|
1154 | $_GET["fEffOnTime/3600"]=$first?"On":"";
|
---|
1155 |
|
---|
1156 | if (empty($_GET["fSourceName"]))
|
---|
1157 | $_GET["fSourceName"]=$first?"On":"";
|
---|
1158 |
|
---|
1159 | if (empty($_GET["fObservationModeName"]))
|
---|
1160 | $_GET["fObservationModeName"]=$first?"On":"";
|
---|
1161 |
|
---|
1162 | if (empty($_GET["fComment"]))
|
---|
1163 | $_GET["fComment"]="Off";
|
---|
1164 |
|
---|
1165 | if (empty($_GET["fUserName"]))
|
---|
1166 | $_GET["fUserName"]="Off";
|
---|
1167 |
|
---|
1168 | if (empty($_GET["fRunStart"]))
|
---|
1169 | $_GET["fRunStart"]="Off";
|
---|
1170 |
|
---|
1171 | if (empty($_GET["fRunStop"]))
|
---|
1172 | $_GET["fRunStop"]="Off";
|
---|
1173 |
|
---|
1174 | if (empty($_GET["fZenithDistanceMin"]))
|
---|
1175 | $_GET["fZenithDistanceMin"]=$first?"On":"";
|
---|
1176 |
|
---|
1177 | if (empty($_GET["fZenithDistanceMax"]))
|
---|
1178 | $_GET["fZenithDistanceMax"]=$first?"On":"";
|
---|
1179 |
|
---|
1180 | if (empty($_GET["fRunTime"]))
|
---|
1181 | $_GET["fRunTime"]="Off";
|
---|
1182 |
|
---|
1183 | if (empty($_GET["fDataSetName"]))
|
---|
1184 | $_GET["fDataSetName"]=$first?"On":"";
|
---|
1185 |
|
---|
1186 | if (empty($_GET["fExcessEvents*60/fEffOnTime"]))
|
---|
1187 | $_GET["fExcessEvents*60/fEffOnTime"]="Off";
|
---|
1188 |
|
---|
1189 | if (empty($_GET["fSignalEvents*60/fEffOnTime"]))
|
---|
1190 | $_GET["fSignalEvents*60/fEffOnTime"]="Off";
|
---|
1191 |
|
---|
1192 | if (empty($_GET["Round(fSignificance/Sqrt(fEffOnTime/3600),2)"]))
|
---|
1193 | $_GET["Round(fSignificance/Sqrt(fEffOnTime/3600),2)"]="Off";
|
---|
1194 |
|
---|
1195 | }
|
---|
1196 |
|
---|
1197 | function InitFindOffData($_GET, $first)
|
---|
1198 | {
|
---|
1199 | InitSequInfo($_GET, $first);
|
---|
1200 |
|
---|
1201 | //init for limits
|
---|
1202 |
|
---|
1203 | if (empty($_GET["fArrTimeLimitMean"]))
|
---|
1204 | $_GET["fArrTimeLimitMean"]="";
|
---|
1205 |
|
---|
1206 | if (empty($_GET["fArrTimeLimitRms"]))
|
---|
1207 | $_GET["fArrTimeLimitRms"]="";
|
---|
1208 |
|
---|
1209 | if (empty($_GET["fSkyBrightLimitMean"]))
|
---|
1210 | $_GET["fSkyBrightLimitMean"]="";
|
---|
1211 |
|
---|
1212 | if (empty($_GET["fSkyBrightLimitRms"]))
|
---|
1213 | $_GET["fSkyBrightLimitRms"]="";
|
---|
1214 |
|
---|
1215 | if (empty($_GET["fMaxHumLimit1"]))
|
---|
1216 | $_GET["fMaxHumLimit1"]="";
|
---|
1217 |
|
---|
1218 | if (empty($_GET["fMaxHumLimit2"]))
|
---|
1219 | $_GET["fMaxHumLimit2"]="";
|
---|
1220 |
|
---|
1221 | //values that differ for different data
|
---|
1222 | if (empty($_GET["fPSFLimitMean"]))
|
---|
1223 | $_GET["fPSFLimitMean"]="";
|
---|
1224 |
|
---|
1225 | if (empty($_GET["fPedRmsInLimitMean"]))
|
---|
1226 | $_GET["fPedRmsInLimitMean"]="";
|
---|
1227 |
|
---|
1228 | if (empty($_GET["fZdMinLimit1"]))
|
---|
1229 | $_GET["fZdMinLimit1"]="";
|
---|
1230 |
|
---|
1231 | if (empty($_GET["fZdMinLimit2"]))
|
---|
1232 | $_GET["fZdMinLimit2"]="";
|
---|
1233 |
|
---|
1234 | if (empty($_GET["fZdMaxLimit1"]))
|
---|
1235 | $_GET["fZdMaxLimit1"]="";
|
---|
1236 |
|
---|
1237 | if (empty($_GET["fZdMaxLimit2"]))
|
---|
1238 | $_GET["fZdMaxLimit2"]="";
|
---|
1239 |
|
---|
1240 | // values taken from distribution or from experience
|
---|
1241 | if (empty($_GET["fUnsInLimit1"]))
|
---|
1242 | $_GET["fUnsInLimit1"]=$first?"12":"";
|
---|
1243 |
|
---|
1244 | if (empty($_GET["fUnsInLimit2"]))
|
---|
1245 | $_GET["fUnsInLimit2"]=$first?"20":"";
|
---|
1246 |
|
---|
1247 | if (empty($_GET["fRunTimeLimit1"]))
|
---|
1248 | $_GET["fRunTimeLimit1"]=$first?"5":"";
|
---|
1249 |
|
---|
1250 | if (empty($_GET["fRunTimeLimit2"]))
|
---|
1251 | $_GET["fRunTimeLimit2"]=$first?"2":"";
|
---|
1252 |
|
---|
1253 | if (empty($_GET["fPSFLimitRms"]))
|
---|
1254 | $_GET["fPSFLimitRms"]=$first?"1.0":"";
|
---|
1255 |
|
---|
1256 | if (empty($_GET["fPedRmsInLimitRms"]))
|
---|
1257 | $_GET["fPedRmsInLimitRms"]=$first?"0.08":"";
|
---|
1258 |
|
---|
1259 | if (empty($_GET["fNumIslLimitMean"]))
|
---|
1260 | $_GET["fNumIslLimitMean"]=$first?"1.230":"";
|
---|
1261 |
|
---|
1262 | if (empty($_GET["fNumIslLimitRms"]))
|
---|
1263 | $_GET["fNumIslLimitRms"]=$first?"0.013":"";
|
---|
1264 |
|
---|
1265 | if (empty($_GET["fMuonCalLimitMean"]))
|
---|
1266 | $_GET["fMuonCalLimitMean"]=$first?"100.0":"";
|
---|
1267 |
|
---|
1268 | if (empty($_GET["fMuonCalLimitRms"]))
|
---|
1269 | $_GET["fMuonCalLimitRms"]=$first?"1.6":"";
|
---|
1270 |
|
---|
1271 | if (empty($_GET["fRelTimeMaxLimit1"]))
|
---|
1272 | $_GET["fRelTimeMaxLimit1"]=$first?"1.0":"";
|
---|
1273 |
|
---|
1274 | if (empty($_GET["fRelTimeMaxLimit2"]))
|
---|
1275 | $_GET["fRelTimeMaxLimit2"]=$first?"1.02":"";
|
---|
1276 |
|
---|
1277 | if (empty($_GET["fRelTimeMinLimit1"]))
|
---|
1278 | $_GET["fRelTimeMinLimit1"]=$first?"0.97":"";
|
---|
1279 |
|
---|
1280 | if (empty($_GET["fRelTimeMinLimit2"]))
|
---|
1281 | $_GET["fRelTimeMinLimit2"]=$first?"0.93":"";
|
---|
1282 |
|
---|
1283 | if (empty($_GET["fIMCLimit1"]))
|
---|
1284 | $_GET["fIMCLimit1"]=$first?"00":"";
|
---|
1285 |
|
---|
1286 | if (empty($_GET["fIMCLimit2"]))
|
---|
1287 | $_GET["fIMCLimit2"]=$first?"00":"";
|
---|
1288 |
|
---|
1289 | if (empty($_GET["fIsoInLimit1"]))
|
---|
1290 | $_GET["fIsoInLimit1"]=$first?"00":"";
|
---|
1291 |
|
---|
1292 | if (empty($_GET["fIsoInLimit2"]))
|
---|
1293 | $_GET["fIsoInLimit2"]=$first?"00":"";
|
---|
1294 |
|
---|
1295 | if (empty($_GET["fInhomLimitMean"]))
|
---|
1296 | $_GET["fInhomLimitMean"]=$first?"10":"";
|
---|
1297 |
|
---|
1298 | if (empty($_GET["fInhomLimitRms"]))
|
---|
1299 | $_GET["fInhomLimitRms"]=$first?"3":"";
|
---|
1300 |
|
---|
1301 | if (empty($_GET["fImgRateLimitMean"]))
|
---|
1302 | $_GET["fImgRateLimitMean"]=$first?"180":"";
|
---|
1303 |
|
---|
1304 | if (empty($_GET["fImgRateLimitRms"]))
|
---|
1305 | $_GET["fImgRateLimitRms"]=$first?"30":"";
|
---|
1306 |
|
---|
1307 | if (empty($_GET["fMuonRateLimitMean"]))
|
---|
1308 | $_GET["fMuonRateLimitMean"]=$first?"1":"";
|
---|
1309 |
|
---|
1310 | if (empty($_GET["fMuonRateLimitRms"]))
|
---|
1311 | $_GET["fMuonRateLimitRms"]=$first?"0.1":"";
|
---|
1312 |
|
---|
1313 | if (empty($_GET["fMuonNumLimit1"]))
|
---|
1314 | $_GET["fMuonNumLimit1"]=$first?"180":"";
|
---|
1315 |
|
---|
1316 | if (empty($_GET["fMuonNumLimit2"]))
|
---|
1317 | $_GET["fMuonNumLimit2"]=$first?"120":"";
|
---|
1318 |
|
---|
1319 | if (empty($_GET["fPulsePosLimit1"]))
|
---|
1320 | $_GET["fPulsePosLimit1"]=$first?"3.5":"";
|
---|
1321 |
|
---|
1322 | if (empty($_GET["fPulsePosLimit2"]))
|
---|
1323 | $_GET["fPulsePosLimit2"]=$first?"2.5":"";
|
---|
1324 |
|
---|
1325 | if (empty($_GET["fNumStarsLimit1"]))
|
---|
1326 | $_GET["fNumStarsLimit1"]=$first?"30":"";
|
---|
1327 |
|
---|
1328 | if (empty($_GET["fNumStarsLimit2"]))
|
---|
1329 | $_GET["fNumStarsLimit2"]=$first?"20":"";
|
---|
1330 |
|
---|
1331 | if (empty($_GET["fNumStarsCorLimit1"]))
|
---|
1332 | $_GET["fNumStarsCorLimit1"]=$first?"10":"";
|
---|
1333 |
|
---|
1334 | if (empty($_GET["fNumStarsCorLimit2"]))
|
---|
1335 | $_GET["fNumStarsCorLimit2"]=$first?"5":"";
|
---|
1336 |
|
---|
1337 | }
|
---|
1338 |
|
---|
1339 | function InitCTAMCRunStatus($_GET, $first)
|
---|
1340 | {
|
---|
1341 | if (empty($_GET["fCorsikaSimTelarray"]))
|
---|
1342 | $_GET["fCorsikaSimTelarray"]="On";
|
---|
1343 |
|
---|
1344 | if (empty($_GET["fCorsikaSimTelarrayStatus"]))
|
---|
1345 | $_GET["fCorsikaSimTelarrayStatus"]="0";
|
---|
1346 |
|
---|
1347 | if (empty($_GET["fChimp"]))
|
---|
1348 | $_GET["fChimp"]="Off";
|
---|
1349 |
|
---|
1350 | if (empty($_GET["fChimpStatus"]))
|
---|
1351 | $_GET["fChimpStatus"]="0";
|
---|
1352 |
|
---|
1353 | if (empty($_GET["fCTAStar"]))
|
---|
1354 | $_GET["fCTAStar"]="Off";
|
---|
1355 |
|
---|
1356 | if (empty($_GET["fCTAStarStatus"]))
|
---|
1357 | $_GET["fCTAStarStatus"]="0";
|
---|
1358 |
|
---|
1359 | if (empty($_GET["fStereoB"]))
|
---|
1360 | $_GET["fStereoB"]="Off";
|
---|
1361 |
|
---|
1362 | if (empty($_GET["fStereoBStatus"]))
|
---|
1363 | $_GET["fStereoBStatus"]="0";
|
---|
1364 |
|
---|
1365 | if (empty($_GET["fStereoC"]))
|
---|
1366 | $_GET["fStereoC"]="Off";
|
---|
1367 |
|
---|
1368 | if (empty($_GET["fStereoCStatus"]))
|
---|
1369 | $_GET["fStereoCStatus"]="0";
|
---|
1370 |
|
---|
1371 | if (empty($_GET["fStereoG"]))
|
---|
1372 | $_GET["fStereoG"]="Off";
|
---|
1373 |
|
---|
1374 | if (empty($_GET["fStereoGStatus"]))
|
---|
1375 | $_GET["fStereoGStatus"]="0";
|
---|
1376 |
|
---|
1377 | }
|
---|
1378 |
|
---|
1379 | function InitCTAMCRunInfo($_GET, $first)
|
---|
1380 | {
|
---|
1381 | if (empty($_GET["fNumResults"]))
|
---|
1382 | $_GET["fNumResults"]="50";
|
---|
1383 |
|
---|
1384 | InitCTAMCRunStatus($_GET, $first);
|
---|
1385 | InitInfo($_GET, $first);
|
---|
1386 | InitFailInfo($_GET, $first);
|
---|
1387 |
|
---|
1388 | if (empty($_GET["fNumEvents"]))
|
---|
1389 | $_GET["fNumEvents"]="On";
|
---|
1390 |
|
---|
1391 | if (empty($_GET["fParticleTypeName"]))
|
---|
1392 | $_GET["fParticleTypeName"]="On";
|
---|
1393 |
|
---|
1394 | if (empty($_GET["fNumEvents"]))
|
---|
1395 | $_GET["fNumEvents"]=$first?"On":"";
|
---|
1396 |
|
---|
1397 | }
|
---|
1398 |
|
---|
1399 |
|
---|
1400 | ?>
|
---|