source: trunk/MagicSoft/Mars/datacenter/db/menu.php@ 9445

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