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

Last change on this file since 7905 was 7873, checked in by Daniela Dorner, 19 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 29.9 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 CheckBox("fTest", "incl. TestSources");
28
29 printf(" </tr>\n");
30 printf(" </table>\n");
31 printf(" </div><p>\n");
32}
33
34function PrintRunStatMenu()
35{
36 printf(" <div id=\"stat\" style='display:none'>\n");
37 printf(" <table>\n");
38 printf(" <tr><td>\n");
39
40 PrintStatusMenu("fCCFileAvail", "CC File available");
41 printf(" </td><td>\n");
42 PrintStatusMenu("fCaCoFileAvail", "Caco File available");
43 printf(" </td><td>\n");
44 PrintStatusMenu("fRawFileAvail", "Rawfile available");
45
46 printf(" </td></tr><tr><td>\n");
47
48 PrintStatusMenu("fTimingCorrection", "Timing Correction");
49 printf(" </td><td>\n");
50 PrintStatusMenu("fCaCoFileFound", "Caco File");
51 printf(" </td><td>\n");
52 PrintStatusMenu("fDataCheckDone", "DataCheck");
53
54 printf(" </td></tr></table>\n");
55 printf(" <p>\n");
56 printf(" </div><p>\n");
57}
58
59function PrintRunInfo2Menu($host,$user,$pw,$db)
60{
61 printf(" <div id=\"info2\" style='display:none'>");
62 printf(" <table>\n");
63 printf(" <tr><td>\n");
64 PrintPullDown($host, $user, $pw, $db, "RunType", "fRunTypeName", "fRunTypeKEY", "Run type");
65 printf(" </td><td>\n");
66 PrintPullDown($host, $user, $pw, $db, "Source", "fSourceName", "fSourceKEY", "Source Name");
67 printf(" </td><td>\n");
68 PrintPullDown($host, $user, $pw, $db, "HvSettings", "fHvSettingsName", "fHvSettingsKEY", "HV Settings");
69 printf(" </td><td>\n");
70 PrintPullDown($host, $user, $pw, $db, "L1TriggerTable", "fL1TriggerTableName", "fL1TriggerTableKEY", "L1 Trigger Table");
71 printf(" </td></tr><tr><td>\n");
72 PrintPullDown($host, $user, $pw, $db, "TestFlag", "fTestFlagName", "fTestFlagKEY", "Test Flag");
73 printf(" </td><td>\n");
74 PrintPullDown($host, $user, $pw, $db, "Project", "fProjectName", "fProjectKEY", "Project Name");
75 printf(" </td><td>\n");
76 PrintPullDown($host, $user, $pw, $db, "DiscriminatorThresholdTable", "fDiscriminatorThresholdTableName", "fDiscriminatorThresholdTableKEY", "DT Table");
77 printf(" </td><td>\n");
78 PrintPullDown($host, $user, $pw, $db, "L2TriggerTable", "fL2TriggerTableName", "fL2TriggerTableKEY", "L2 Trigger Table");
79 printf(" </td></tr><tr><td>\n");
80 PrintPullDown($host, $user, $pw, $db, "ExcludedFDA", "fExcludedFDAName", "fExcludedFDAKEY", "Exclusions");
81 printf(" </td><td>\n");
82 PrintPullDown($host, $user, $pw, $db, "LightConditions", "fLightConditionsName", "fLightConditionsKEY", "Light Conditions");
83 printf(" </td><td>\n");
84 PrintPullDown($host, $user, $pw, $db, "CalibrationScript", "fCalibrationScriptName", "fCalibrationScriptKEY", "Cal Script");
85 printf(" </td><td>\n");
86 PrintPullDown($host, $user, $pw, $db, "TriggerDelayTable", "fTriggerDelayTableName", "fTriggerDelayTableKEY", "Trigger Delay Table");
87 printf(" </td></tr><tr><td>\n");
88 PrintPullDown($host, $user, $pw, $db, "MagicNumber", "fMagicNumberName", "fMagicNumberKEY", "Magic Number");
89 printf(" </td></tr></table>\n");
90 printf(" </div><p>\n");
91}
92
93function PrintSequInfoMenu()
94{
95 printf(" <table>\n");
96
97 printf("<tr><td align='center'>\n");
98 printf(" <tr>\n");
99
100 CheckBox("fRunStart", "Start time");
101 CheckBox("fAzimuthMin", "Azimuth min");
102 CheckBox("fAzimuthMax", "Azimuth max");
103 CheckBox("fZenithDistanceMin", "Zenith distance min");
104 CheckBox("fZenithDistanceMax", "Zenith distance max");
105
106 printf(" </tr><tr>\n");
107
108 CheckBox("fNumEvents", "Num of events");
109 CheckBox("fRunTime/60", "Duration");
110 CheckBox("fSequenceLast", "Last run");
111 CheckBox("fLinks", "Links");
112 CheckBox("fTest", "incl. TestSources");
113
114 printf(" </tr></table>\n");
115}
116
117function PrintSequInfo2Menu($host,$user,$pw,$db)
118{
119 printf(" <div id='info2' style='display:none'>\n");
120 printf(" <table>\n");
121 printf(" <tr><td>\n");
122 PrintPullDown($host, $user, $pw, $db, "Source", "fSourceName", "fSourceKEY", "Source Name");
123 printf(" </td><td>\n");
124 PrintPullDown($host, $user, $pw, $db, "L1TriggerTable", "fL1TriggerTableName", "fL1TriggerTableKEY", "L1Trigger Table");
125 printf(" </td><td>\n");
126 PrintPullDown($host, $user, $pw, $db, "L2TriggerTable", "fL2TriggerTableName", "fL2TriggerTableKEY", "L2Trigger Table");
127 printf(" </td><td>\n");
128 PrintPullDown($host, $user, $pw, $db, "TriggerDelayTable", "fTriggerDelayTableName", "fTriggerDelayTableKEY", "Trigger Delay Table");
129 printf(" </td></tr><tr><td>\n");
130 PrintPullDown($host, $user, $pw, $db, "LightConditions", "fLightConditionsName", "fLightConditionsKEY", "Light Conditions");
131 printf(" </td><td>\n");
132 PrintPullDown($host, $user, $pw, $db, "Project", "fProjectName", "fProjectKEY", "Project Name");
133 printf(" </td><td>\n");
134 PrintPullDown($host, $user, $pw, $db, "HvSettings", "fHvSettingsName", "fHvSettingsKEY", "HV Settings");
135 printf(" </td><td>\n");
136 PrintPullDown($host, $user, $pw, $db, "DiscriminatorThresholdTable", "fDiscriminatorThresholdTableName", "fDiscriminatorThresholdTableKEY", "DT Table");
137 printf(" </td></tr><tr><td>\n");
138 PrintPullDown($host, $user, $pw, $db, "ManuallyChanged", "fManuallyChangedName", "fManuallyChangedKEY", "Manually changed");
139 printf(" </td><td>\n");
140 PrintPullDown($host, $user, $pw, $db, "TestFlag", "fTestFlagName", "fTestFlagKEY", "Test Flag");
141 printf(" </td></tr>\n");
142 printf(" </table>\n");
143 printf(" </div><p>\n");
144}
145
146function PrintLimitsMenu($limitsmean, $limitsmin, $limitsmax, $alias, $old)
147{
148 printf(" <table>\n");
149 printf(" <tr><th colspan='3'>Limits</th></tr>\n");
150 printf(" <tr><td valign='top'>\n");
151
152 printf(" <table>\n");
153 printf(" <tr><th>Name </th><th> Mean </th><th> Rms </th></tr>\n");
154
155 foreach($limitsmean as $key => $element)
156 {
157 printf("<tr><td>%s</td>\n", $alias[$key]);
158 $mean=$key . "Mean";
159 $limitmean=$_GET[$mean];
160 printf("<td><input name=\"%sMean\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limitmean);
161 $rms2=$key . "Rms";
162 $limitrms=$_GET[$rms2];
163 printf("<td><input name=\"%sRms\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limitrms);
164 printf("</tr>\n");
165 }
166
167 if (empty($old))
168 {
169 printf(" </table>\n");
170 printf(" </td>\n");
171 printf(" <td valign='top'>\n");
172 printf(" <table>\n");
173 }
174
175 printf(" <tr><th>Name </th><th> Min </th><th> Min2 </th></tr>\n");
176 foreach($limitsmin as $key => $element)
177 {
178 printf("<tr><td>%s</td>\n", $alias[$key]);
179 $level1=$key . "1";
180 $limit1=$_GET[$level1];
181 printf("<td><input name=\"%s1\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limit1);
182 $level2=$key . "2";
183 $limit2=$_GET[$level2];
184 printf("<td><input name=\"%s2\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limit2);
185 printf("</tr>\n");
186 }
187
188 if (empty($old))
189 {
190 printf(" </table>\n");
191 printf(" </td>\n");
192 printf(" <td valign='top'>\n");
193 printf(" <table>\n");
194 }
195
196 printf(" <tr><th>Name </th><th> Max </th><th> Max2 </th></tr>\n");
197 foreach($limitsmax as $key => $element)
198 {
199 printf("<tr><td>%s</td>\n", $alias[$key]);
200 $level1=$key . "1";
201 $limit1=$_GET[$level1];
202 printf("<td><input name=\"%s1\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limit1);
203 $level2=$key . "2";
204 $limit2=$_GET[$level2];
205 printf("<td><input name=\"%s2\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limit2);
206 printf("</tr>\n");
207 }
208 printf(" </table>\n");
209
210 printf(" </td></tr></table>\n");
211 printf("<p>\n");
212
213}
214
215function PrintSequStatMenu()
216{
217 printf(" <div id=\"stat\" style='display:none'>\n");
218 printf(" <table><tr><td>\n");
219
220 PrintStatusMenu("fAllFilesAvail", "Files avail");
221 printf(" </td><td>\n");
222 PrintStatusMenu("fCallisto", "Callisto");
223 printf(" </td><td>\n");
224 PrintStatusMenu("fStar", "Star");
225 printf(" </td></tr><tr><td>\n");
226 PrintStatusMenu("fSequenceFileWritten", "Sequfile");
227 printf(" </td><td>\n");
228 PrintStatusMenu("fFillCallisto", "Fillcallisto");
229 printf(" </td><td>\n");
230 PrintStatusMenu("fFillStar", "Fillstar");
231
232 printf("</td></tr> </table>\n");
233 printf(" </div><p>\n");
234}
235
236function PrintFailMenu()
237{
238 printf(" <div id=\"fail\" style='display:none'>\n");
239 printf(" <table>\n");
240 printf(" <tr>\n");
241
242 CheckBox("fStartTime", "StartTime");
243 CheckBox("fFailedTime", "FailedTime");
244 CheckBox("fReturnCode", "ErrCode");
245 CheckBox("fFailedCode", "RetCode");
246 CheckBox("fFailedCodeAdd", "CodeAdd");
247
248 printf(" </tr>\n");
249 printf(" </table>\n");
250 printf(" </div><p>\n");
251}
252
253function PrintCalMenu()
254{
255 printf(" <table>\n");
256 printf(" <tr>\n");
257
258 CheckBox("fUnsuitableInner", "Unsuitable inner");
259 CheckBox("fUnsuitableOuter", "Unsuitable outer");
260 CheckBox("fUnreliableInner", "Unreliable inner");
261 CheckBox("fUnreliableOuter", "Unreliable outer");
262
263 printf(" </tr><tr>\n");
264
265 CheckBox("fIsolatedInner", "Isolated inner");
266 CheckBox("fIsolatedOuter", "Isolated outer");
267 CheckBox("fIsolatedMaxCluster", "IsolatedMaxCluster");
268
269 printf(" </tr><tr>\n");
270
271 CheckBox("fArrTimeMeanInner", "ArrTimeMean inner ");
272 CheckBox("fArrTimeMeanOuter", "ArrTimeMean outer ");
273 CheckBox("fArrTimeRmsInner", "ArrTimeRms inner ");
274 CheckBox("fArrTimeRmsOuter", "ArrTimeRms outer ");
275
276 printf(" </tr><tr>\n");
277
278 CheckBox("fMeanPedRmsInner", "MeanPedRms inner");
279 CheckBox("fMeanPedRmsOuter", "MeanPedRms outer");
280 CheckBox("fMeanSignalInner", "MeanSignal inner");
281 CheckBox("fMeanSignalOuter", "MeanSignal outer");
282
283 printf(" </tr><tr>\n");
284
285 CheckBox("fConvFactorInner", "Conv inner ");
286 CheckBox("fConvFactorOuter", "Conv outer ");
287 CheckBox("fPulsePosMean", "Mean PulsePos");
288
289 printf(" </tr></table>\n");
290}
291
292function PrintStarMenu()
293{
294 printf(" <table>\n");
295 printf(" <tr>\n");
296
297 CheckBox("fDataRate", "CleanedEvtRate");
298 CheckBox("fMeanNumberIslands", "MeanNumIslands");
299 CheckBox("fMaxHumidity", "MaxHumidity");
300 CheckBox("fInhomogeneity", "Inhomogeneity");
301
302 printf(" </tr><tr>\n");
303
304 CheckBox("fMuonRate", "MuonRate");
305 CheckBox("fMuonNumber", "MuonNumber");
306 CheckBox("fRatio", "Ratio");
307 CheckBox("fPSF", "PSF");
308
309 printf(" </tr><tr>\n");
310
311 CheckBox("fEffOnTime", "EffOnTime");
312 CheckBox("fEffOnTime/fRunTime", "RelOnTime");
313 CheckBox("fBrightnessMed", "SkyBrightnessMed");
314 CheckBox("fBrightnessRMS", "SkyBrightnessRMS");
315
316 printf(" </tr><tr>\n");
317
318 CheckBox("fNumStarsMed", "# id. Stars");
319 CheckBox("fNumStarsRMS", "RMS id. Stars");
320 CheckBox("fNumStarsCorMed", "# cor. Stars");
321 CheckBox("fNumStarsCorRMS", "RMS cor. Stars");
322
323 printf(" </tr>\n");
324 printf(" </table>\n");
325}
326
327function PrintDataSetInfoMenu($host,$user,$pw,$db)
328{
329 printf(" <div id=\"info\" style='display:none'>");
330 printf(" <table>\n");
331 printf(" <tr>\n");
332
333 CheckBox("fWobble", "Wobble");
334 CheckBox("fComment", "Comment");
335 CheckBox("fScaleFactor", "Scale");
336 CheckBox("fEffOnTime/3600", "EffOnTime");
337 CheckBox("fLinks", "Links");
338
339 printf(" </tr><tr>\n");
340
341 CheckBox("fExcessEvents", "ExcEvts");
342 CheckBox("fBackgroundEvents", "BgEvts");
343 CheckBox("fSignalEvents", "SignEvts");
344 CheckBox("fSignificance", "Sign");
345
346 printf(" </tr><tr>\n");
347
348 CheckBox("fExcessEvents*60/fEffOnTime", "ExcRate");
349 CheckBox("fBackgroundEvents*60/fEffOnTime", "BgRate");
350 CheckBox("fSignalEvents*60/fEffOnTime", "SignRate");
351 CheckBox("Round(fSignificance/Sqrt(fEffOnTime/3600),2)", "SignfRate");
352
353 printf(" </tr>\n");
354 printf(" </table>\n");
355 printf(" </div><p>\n");
356}
357
358function PrintDataSetStatMenu($host,$user,$pw,$db)
359{
360 printf(" <div id=\"stat\" style='display:none'>\n");
361 printf(" <table>\n");
362 printf(" <tr>\n");
363
364 printf(" <td>\n");
365 PrintStatusMenu("fDataSetInserted", "DataSet Inserted");
366 printf(" </td><td>\n");
367 PrintStatusMenu("fStarFilesAvail", "FilesAvail");
368 printf(" </td><td>\n");
369 PrintStatusMenu("fGanymed", "Ganymed");
370 printf(" </td><td>\n");
371 PrintStatusMenu("fFillGanymed", "FillGanymed");
372 printf(" </tr>\n");
373 printf(" </table>\n");
374 printf(" </div><p>\n");
375}
376
377function PrintRunRangeMenu($host,$user,$pw,$db)
378{
379 if (empty($_GET["fRunMin"]))
380 $min = GetMin("fRunNumber", "RunData", $host, $user, $pw, $db);
381 else
382 $min = $_GET["fRunMin"];
383
384 if (empty($_GET["fRunMax"]))
385 $max = GetMax("fRunNumber", "RunData", $host, $user, $pw, $db);
386 else
387 $max = $_GET["fRunMax"];
388
389 printf("Runs&nbsp;from&nbsp;<input name=\"fRunMin\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\">\n", $min);
390 printf("to&nbsp;<input name=\"fRunMax\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\">&nbsp;&nbsp;&nbsp;\n", $max);
391}
392
393function PrintSequRangeMenu($host,$user,$pw,$db)
394{
395 if (empty($_GET["fRunMin"]))
396 $min = GetMin("fSequenceFirst", "Sequences", $host, $user, $pw, $db);
397 else
398 $min = $_GET["fRunMin"];
399
400 if (empty($_GET["fRunMax"]))
401 $max = GetMax("fSequenceFirst", "Sequences", $host, $user, $pw, $db);
402 else
403 $max = $_GET["fRunMax"];
404
405 printf("Sequences&nbsp;from&nbsp;<input name=\"fRunMin\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\">\n", $min);
406 printf("to&nbsp;<input name=\"fRunMax\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\">&nbsp;&nbsp;&nbsp;\n", $max);
407}
408
409function PrintDataSetRangeMenu($host,$user,$pw,$db)
410{
411 if (empty($_GET["fRunMin"]))
412 $min = GetMin("fDataSetNumber", "DataSets", $host, $user, $pw, $db);
413 else
414 $min = $_GET["fRunMin"];
415
416 if (empty($_GET["fRunMax"]))
417 $max = GetMax("fDataSetNumber", "DataSets", $host, $user, $pw, $db);
418 else
419 $max = $_GET["fRunMax"];
420
421 printf("DataSets&nbsp;from&nbsp;<input name=\"fRunMin\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\">\n", $min);
422 printf("to&nbsp;<input name=\"fRunMax\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\">&nbsp;&nbsp;&nbsp;\n", $max);
423}
424
425function PrintZdRangeMenu($host,$user,$pw,$db)
426{
427 if (empty($_GET["fZDMin"]))
428 $zdmin = GetMin("fZenithDistanceMin", "Sequences", $host, $user, $pw, $db);
429 else
430 $zdmin = $_GET["fZDMin"];
431
432 if (empty($_GET["fZDMax"]))
433 $zdmax = GetMax("fZenithDistanceMax", "Sequences", $host, $user, $pw, $db);
434 else
435 $zdmax = $_GET["fZDMax"];
436
437 printf("ZenithDistance&nbsp;from&nbsp;<input name=\"fZDMin\" type=\"text\" size=\"2\" maxlength=\"2\" value=\"%s\">\n", $zdmin);
438 printf("to&nbsp;<input name=\"fZDMax\" type=\"text\" size=\"2\" maxlength=\"2\" value=\"%s\">&nbsp;&nbsp;&nbsp;\n", $zdmax);
439}
440
441function PrintNightRangeMenu($host,$user,$pw,$db)
442{
443 if (empty($_GET["fStartDate"]))
444 $timemin = GetMin("fRunStart", "Sequences", $host, $user, $pw, $db);
445 else
446 $timemin = $_GET["fStartDate"];
447
448 if (empty($_GET["fStopDate"]))
449 $timemax = GetMax("fRunStart", "Sequences", $host, $user, $pw, $db);
450 else
451 $timemax = $_GET["fStopDate"];
452
453 printf("Night&nbsp;(yyyy-mm-dd)&nbsp;from&nbsp;<input name=\"fStartDate\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"%s\">\n", $timemin);
454 printf("to&nbsp;<input name=\"fStopDate\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"%s\">&nbsp;&nbsp;&nbsp;&nbsp;\n", $timemax);
455}
456
457function PrintSourceMenu($host,$user,$pw,$db)
458{
459 printf("Source&nbsp;(<A HREF=\"regexp.html\">regexp</A>)&nbsp;<input name=\"fSourceN\" type=\"text\" size=\"15\" maxlength=\"15\" value=\"");
460 if (!empty($_GET["fSourceN"]))
461 printf("%s", $_GET["fSourceN"]);
462 printf("\">&nbsp;&nbsp;&nbsp;\n");
463}
464function PrintSequMenu($host,$user,$pw,$db)
465{
466 printf("Sequ#&nbsp;<input name=\"fSequenceNo\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"");
467 if (!empty($_GET["fSequenceNo"]))
468 printf("%s", $_GET["fSequenceNo"]);
469 printf("\">&nbsp;&nbsp;&nbsp;\n");
470}
471
472function PrintNumResPullDown()
473{
474 printf(" Results:\n");
475 printf(" <select name=\"fNumResults\">\n");
476
477 $numres = array("10", "20", "50", "100", "200", "500");
478 foreach ($numres as $element)
479 {
480 if ($element==$_GET["fNumResults"])
481 printf("<option value=\"%s\" selected>%3s</option>\n", $element, $element);
482 else
483 printf("<option value=\"%s\">%3s</option>\n", $element, $element);
484 }
485 printf(" </select>\n");
486 printf(" &nbsp;&nbsp;&nbsp;\n");
487}
488
489function PrintButtons($page)
490{
491 printf("<input class='Width' type='submit' value='Query Table'>&nbsp;&nbsp;&nbsp;\n");
492 printf("<input class='Width' type='button' value='Reset' onClick='self.location.href=\"%s\"'>&nbsp;&nbsp;&nbsp;\n", $page);
493// printf("<p>");
494 if (strchr($_SERVER["REQUEST_URI"], '?')!=FALSE)
495 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"]));
496 if (strchr($_SERVER["REQUEST_URI"], '?')!=FALSE)
497 {
498 printf("<input class='Width' type='button' value='Print' onClick='self.location.href=\"%s&amp;fPrintTable=1\"'>&nbsp;&nbsp;&nbsp;\n", htmlspecialchars($_SERVER["REQUEST_URI"]));
499 printf("MySqlQuery: <img id='showquerybutton' src='../plus.png' alt='+' onClick='showhide(\"showquery\")'>\n");
500 }
501}
502
503function InitFailInfo($_GET)
504{
505 if (empty($_GET["fStartTime"]))
506 $_GET["fStartTime"]="Off";
507
508 if (empty($_GET["fFailedTime"]))
509 $_GET["fFailedTime"]="Off";
510
511 if (empty($_GET["fReturnCode"]))
512 $_GET["fReturnCode"]="Off";
513
514 if (empty($_GET["fFailedCode"]))
515 $_GET["fFailedCode"]="Off";
516
517 if (empty($_GET["fFailedCodeAdd"]))
518 $_GET["fFailedCodeAdd"]="Off";
519}
520
521function InitInfo($_GET)
522{
523 if (empty($_GET["fNumResults"]))
524 $_GET["fNumResults"]="20";
525
526 if (empty($_GET["fNumEvents"]))
527 $_GET["fNumEvents"]="Off";
528
529 if (empty($_GET["fRunStart"]))
530 $_GET["fRunStart"]="Off";
531
532 if (empty($_GET["fTest"]))
533 $_GET["fTest"]="Off";
534
535 if (empty($_GET["fSourceName"]))
536 $_GET["fSourceName"]="Off";
537
538 if (empty($_GET["fProjectName"]))
539 $_GET["fProjectName"]="Off";
540
541 if (empty($_GET["fL1TriggerTableName"]))
542 $_GET["fL1TriggerTableName"]="Off";
543
544 if (empty($_GET["fL2TriggerTableName"]))
545 $_GET["fL2TriggerTableName"]="Off";
546
547 if (empty($_GET["fHvSettingsName"]))
548 $_GET["fHvSettingsName"]="Off";
549
550 if (empty($_GET["fDiscriminatorThresholdTableName"]))
551 $_GET["fDiscriminatorThresholdTableName"]="Off";
552
553 if (empty($_GET["fTriggerDelayTableName"]))
554 $_GET["fTriggerDelayTableName"]="Off";
555
556 if (empty($_GET["fLightConditionsName"]))
557 $_GET["fLightConditionsName"]="Off";
558
559 if (empty($_GET["fTestFlagName"]))
560 $_GET["fTestFlagName"]="Off";
561}
562
563function InitRunStatus($_GET)
564{
565 if (empty($_GET["fDataCheckDone"]))
566 $_GET["fDataCheckDone"]="Off";
567
568 if (empty($_GET["fDataCheckDoneStatus"]))
569 $_GET["fDataCheckDoneStatus"]="0";
570
571 if (empty($_GET["fCCFileAvail"]))
572 $_GET["fCCFileAvail"]="Off";
573
574 if (empty($_GET["fCCFileAvailStatus"]))
575 $_GET["fCCFileAvailStatus"]="0";
576
577 if (empty($_GET["fCaCoFileAvail"]))
578 $_GET["fCaCoFileAvail"]=$first?"On":"";
579
580 if (empty($_GET["fCaCoFileAvailStatus"]))
581 $_GET["fCaCoFileAvailStatus"]="0";
582
583 if (empty($_GET["fCaCoFileFound"]))
584 $_GET["fCaCoFileFound"]="Off";
585
586 if (empty($_GET["fCaCoFileFoundStatus"]))
587 $_GET["fCaCoFileFoundStatus"]="0";
588
589 if (empty($_GET["fRawFileAvail"]))
590 $_GET["fRawFileAvail"]="Off";
591
592 if (empty($_GET["fRawFileAvailStatus"]))
593 $_GET["fRawFileAvailStatus"]="0";
594
595 if (empty($_GET["fTimingCorrection"]))
596 $_GET["fTimingCorrection"]="Off";
597
598 if (empty($_GET["fTimingCorrectionStatus"]))
599 $_GET["fTimingCorrectionStatus"]="0";
600}
601
602function InitRunInfo($_GET)
603{
604 InitRunStatus($_GET);
605 InitInfo($_GET);
606 InitFailInfo($_GET);
607
608 if (empty($_GET["fFormatVersion"]))
609 $_GET["fFormatVersion"]="Off";
610
611 if (empty($_GET["fRunStop"]))
612 $_GET["fRunStop"]="Off";
613
614 if (empty($_GET["fAzimuth"]))
615 $_GET["fAzimuth"]="Off";
616
617 if (empty($_GET["fZenithDistance"]))
618 $_GET["fZenithDistance"]="Off";
619
620 if (empty($_GET["fRunTypeName"]))
621 $_GET["fRunTypeName"]="Off";
622
623 if (empty($_GET["fExcludedFDAName"]))
624 $_GET["fExcludedFDAName"]="Off";
625
626 if (empty($_GET["fMagicNumberName"]))
627 $_GET["fMagicNumberName"]="Off";
628
629 if (empty($_GET["fMeanTriggerRate"]))
630 $_GET["fMeanTriggerRate"]="Off";
631
632 if (empty($_GET["fCalibrationScriptName"]))
633 $_GET["fCalibrationScriptName"]="Off";
634
635 if (empty($_GET["fTestFlagName"]))
636 $_GET["fTestFlagName"]="Off";
637
638 if (empty($_GET["fDaqStoreRate"]))
639 $_GET["fDaqStoreRate"]="Off";
640
641 if (empty($_GET["fDaqTriggerRate"]))
642 $_GET["fDaqTriggerRate"]="Off";
643
644 if (empty($_GET["fL2RatePresc"]))
645 $_GET["fL2RatePresc"]="Off";
646
647 if (empty($_GET["fL2RateUnpresc"]))
648 $_GET["fL2RateUnpresc"]="Off";
649
650 if (empty($_GET["fSequenceFirst"]))
651 $_GET["fSequenceFirst"]="Off";
652
653 if (empty($_GET["fSequenceNo"]))
654 $_GET["fSequenceNo"]="";
655}
656
657function InitSequStatus($_GET)
658{
659 if (empty($_GET["fSequenceFileWritten"]))
660 $_GET["fSequenceFileWritten"]="Off";
661
662 if (empty($_GET["fSequenceFileWrittenStatus"]))
663 $_GET["fSequenceFileWrittenStatus"]="0";
664
665 if (empty($_GET["fAllFilesAvail"]))
666 $_GET["fAllFilesAvail"]="Off";
667
668 if (empty($_GET["fAllFilesAvailStatus"]))
669 $_GET["fAllFilesAvailStatus"]="0";
670
671 if (empty($_GET["fCallisto"]))
672 $_GET["fCallisto"]="Off";
673
674 if (empty($_GET["fCallistoStatus"]))
675 $_GET["fCallistoStatus"]="0";
676
677 if (empty($_GET["fFillCallisto"]))
678 $_GET["fFillCallisto"]="Off";
679
680 if (empty($_GET["fFillCallistoStatus"]))
681 $_GET["fFillCallistoStatus"]="0";
682
683 if (empty($_GET["fStar"]))
684 $_GET["fStar"]="Off";
685
686 if (empty($_GET["fStarStatus"]))
687 $_GET["fStarStatus"]="0";
688
689 if (empty($_GET["fFillStar"]))
690 $_GET["fFillStar"]="Off";
691
692 if (empty($_GET["fFillStarStatus"]))
693 $_GET["fFillStarStatus"]="0";
694}
695
696function InitStarInfo($_GET)
697{
698 if (empty($_GET["fMeanNumberIslands"]))
699 $_GET["fMeanNumberIslands"]="Off";
700
701 if (empty($_GET["fPSF"]))
702 $_GET["fPSF"]="Off";
703
704 if (empty($_GET["fRatio"]))
705 $_GET["fRatio"]="Off";
706
707 if (empty($_GET["fMuonNumber"]))
708 $_GET["fMuonNumber"]="Off";
709
710 if (empty($_GET["fEffOnTime"]))
711 $_GET["fEffOnTime"]="Off";
712
713 if (empty($_GET["fEffOnTime/fRunTime"]))
714 $_GET["fEffOnTime/fRunTime"]="Off";
715
716 if (empty($_GET["fMuonRate"]))
717 $_GET["fMuonRate"]="Off";
718
719 if (empty($_GET["fInhomogeneity"]))
720 $_GET["fInhomogeneity"]="Off";
721
722 if (empty($_GET["fDataRate"]))
723 $_GET["fDataRate"]="Off";
724
725 if (empty($_GET["fMaxHumidity"]))
726 $_GET["fMaxHumidity"]="Off";
727}
728
729function InitCalInfo($_GET)
730{
731 if (empty($_GET["fUnreliableInner"]))
732 $_GET["fUnreliableInner"]="Off";
733
734 if (empty($_GET["fUnsuitableOuter"]))
735 $_GET["fUnsuitableOuter"]="Off";
736
737 if (empty($_GET["fUnreliableOuter"]))
738 $_GET["fUnreliableOuter"]="Off";
739
740 if (empty($_GET["fUnsuitableInner"]))
741 $_GET["fUnsuitableInner"]="Off";
742
743 if (empty($_GET["fIsolatedInner"]))
744 $_GET["fIsolatedInner"]="Off";
745
746 if (empty($_GET["fIsolatedOuter"]))
747 $_GET["fIsolatedOuter"]="Off";
748
749 if (empty($_GET["fMeanPedRmsInner"]))
750 $_GET["fMeanPedRmsInner"]="Off";
751
752 if (empty($_GET["fMeanPedRmsOuter"]))
753 $_GET["fMeanPedRmsOuter"]="Off";
754
755 if (empty($_GET["fIsolatedMaxCluster"]))
756 $_GET["fIsolatedMaxCluster"]="Off";
757
758 if (empty($_GET["fArrTimeMeanInner"]))
759 $_GET["fArrTimeMeanInner"]="Off";
760
761 if (empty($_GET["fArrTimeMeanOuter"]))
762 $_GET["fArrTimeMeanOuter"]="Off";
763
764 if (empty($_GET["fArrTimeRmsInner"]))
765 $_GET["fArrTimeRmsInner"]="Off";
766
767 if (empty($_GET["fArrTimeRmsOuter"]))
768 $_GET["fArrTimeRmsOuter"]="Off";
769
770 if (empty($_GET["fMeanSignalInner"]))
771 $_GET["fMeanSignalInner"]=$first?"Off":"";
772
773 if (empty($_GET["fMeanSignalOuter"]))
774 $_GET["fMeanSignalOuter"]=$first?"Off":"";
775
776 if (empty($_GET["fPulsePosMean"]))
777 $_GET["fPulsePosMean"]=$first?"Off":"";
778
779 if (empty($_GET["fConvFactorInner"]))
780 $_GET["fConvFactorInner"]="Off";
781
782 if (empty($_GET["fConvFactorOuter"]))
783 $_GET["fConvFactorOuter"]="Off";
784}
785
786function InitSequInfo($_GET)
787{
788 InitInfo($_GET);
789 InitSequStatus($_GET);
790 InitFailInfo($_GET);
791 InitCalInfo($_GET);
792 InitStarInfo($_GET);
793
794 if (empty($_GET["fRunTime/60"]))
795 $_GET["fRunTime/60"]="Off";
796
797 if (empty($_GET["fSequenceLast"]))
798 $_GET["fSequenceLast"]="Off";
799
800 if (empty($_GET["fLinks"]))
801 $_GET["fLinks"]="Off";
802
803 if (empty($_GET["fAzimuthMin"]))
804 $_GET["fAzimuthMin"]="Off";
805
806 if (empty($_GET["fAzimuthMax"]))
807 $_GET["fAzimuthMax"]="Off";
808
809 if (empty($_GET["fZenithDistanceMin"]))
810 $_GET["fZenithDistanceMin"]="Off";
811
812 if (empty($_GET["fZenithDistanceMax"]))
813 $_GET["fZenithDistanceMax"]="Off";
814
815 if (empty($_GET["fManuallyChangedName"]))
816 $_GET["fManuallyChangedName"]="Off";
817}
818
819function InitDataSetStatus($_GET)
820{
821 if (empty($_GET["fDataSetInserted"]))
822 $_GET["fDataSetInserted"]="Off";
823
824 if (empty($_GET["fDataSetInsertedStatus"]))
825 $_GET["fDataSetInsertedStatus"]="0";
826
827 if (empty($_GET["fStarFilesAvail"]))
828 $_GET["fStarFilesAvail"]="Off";
829
830 if (empty($_GET["fStarFilesAvailStatus"]))
831 $_GET["fStarFilesAvailStatus"]="0";
832
833 if (empty($_GET["fGanymed"]))
834 $_GET["fGanymed"]=$first?"On":"";
835
836 if (empty($_GET["fGanymedStatus"]))
837 $_GET["fGanymedStatus"]="0";
838
839 if (empty($_GET["fFillGanymed"]))
840 $_GET["fFillGanymed"]="Off";
841
842 if (empty($_GET["fFillGanymedStatus"]))
843 $_GET["fFillGanymedStatus"]="0";
844}
845
846function InitDataSetInfo($_GET)
847{
848 InitDataSetStatus($_GET);
849 InitFailInfo($_GET);
850
851 if (empty($_GET["fNumResults"]))
852 $_GET["fNumResults"]="50";
853
854 if (empty($_GET["fSourceName"]))
855 $_GET["fSourceName"]="Off";
856
857 if (empty($_GET["fLinks"]))
858 $_GET["fLinks"]="Off";
859
860 if (empty($_GET["fComment"]))
861 $_GET["fComment"]="Off";
862
863 if (empty($_GET["fWobble"]))
864 $_GET["fWobble"]="Off";
865
866 if (empty($_GET["fExcessEvents"]))
867 $_GET["fExcessEvents"]="Off";
868
869 if (empty($_GET["fExcessEvents*60/fEffOnTime"]))
870 $_GET["fExcessEvents*60/fEffOnTime"]="Off";
871
872 if (empty($_GET["fBackgroundEvents*60/fEffOnTime"]))
873 $_GET["fBackgroundEvents*60/fEffOnTime"]="Off";
874
875 if (empty($_GET["fBackgroundEvents"]))
876 $_GET["fBackgroundEvents"]="Off";
877
878 if (empty($_GET["fSignalEvents"]))
879 $_GET["fSignalEvents"]="Off";
880
881 if (empty($_GET["fSignalEvents*60/fEffOnTime"]))
882 $_GET["fSignalEvents*60/fEffOnTime"]="Off";
883
884 if (empty($_GET["fSignificance"]))
885 $_GET["fSignificance"]="Off";
886
887 if (empty($_GET["Round(fSignificance/Sqrt(fEffOnTime/3600),2)"]))
888 $_GET["Round(fSignificance/Sqrt(fEffOnTime/3600),2)"]="Off";
889
890 if (empty($_GET["fScaleFactor"]))
891 $_GET["fScaleFactor"]="Off";
892
893 if (empty($_GET["fEffOnTime/3600"]))
894 $_GET["fEffOnTime/3600"]="Off";
895}
896
897function InitFindOffData($_GET)
898{
899 InitSequInfo($_GET);
900
901 if (empty($_GET["fArrTimeLimitMean"]))
902 $_GET["fArrTimeLimitMean"]="";
903
904 if (empty($_GET["fArrTimeLimitRms"]))
905 $_GET["fArrTimeLimitRms"]="";
906
907 if (empty($_GET["fPedRmsInLimitMean"]))
908 $_GET["fPedRmsInLimitMean"]="";
909
910 if (empty($_GET["fPedRmsInLimitRms"]))
911 $_GET["fPedRmsInLimitRms"]="";
912
913 if (empty($_GET["fMuonRateLimitMean"]))
914 $_GET["fMuonRateLimitMean"]="";
915
916 if (empty($_GET["fMuonRateLimitRms"]))
917 $_GET["fMuonRateLimitRms"]="";
918
919 if (empty($_GET["fImgRateLimitMean"]))
920 $_GET["fImgRateLimitMean"]="";
921
922 if (empty($_GET["fImgRateLimitRms"]))
923 $_GET["fImgRateLimitRms"]="";
924
925 if (empty($_GET["fPSFLimitMean"]))
926 $_GET["fPSFLimitMean"]="";
927
928 if (empty($_GET["fPSFLimitRms"]))
929 $_GET["fPSFLimitRms"]="";
930
931 if (empty($_GET["fUnsInLimitMean"]))
932 $_GET["fUnsInLimitMean"]="";
933
934 if (empty($_GET["fZdMinLimitMean"]))
935 $_GET["fZdMinLimitMean"]="";
936
937 if (empty($_GET["fZdMaxLimitMean"]))
938 $_GET["fZdMaxLimitMean"]="";
939}
940
941
942?>
Note: See TracBrowser for help on using the repository browser.