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

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