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

Last change on this file since 8797 was 8797, checked in by Daniela Dorner, 17 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 37.8 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
317 printf(" </tr></table>\n");
318 printf(" </div><p>\n");
319}
320
321function PrintStarMenu()
322{
323 printf(" <div id='star' style='display:none'>\n");
324 printf(" <table>\n");
325 printf(" <tr>\n");
326
327 CheckBox("fDataRate", "CleanedEvtRate");
328 CheckBox("fMeanNumberIslands", "MeanNumIslands");
329 CheckBox("fMaxHumidity", "MaxHumidity");
330 CheckBox("fInhomogeneity", "Inhomogeneity");
331
332 printf(" </tr><tr>\n");
333
334 CheckBox("fMuonRate", "MuonRate");
335 CheckBox("fMuonNumber", "MuonNumber");
336 CheckBox("fRatio", "Ratio");
337 CheckBox("fPSF", "PSF");
338
339 printf(" </tr><tr>\n");
340
341 CheckBox("fSparkRate", "SparkRate");
342
343 printf(" </tr><tr>\n");
344
345 CheckBox("fEffOnTime", "EffOnTime");
346 CheckBox("fEffOnTime/fRunTime", "RelOnTime");
347 CheckBox("fBrightnessMed", "SkyBrightnessMed");
348 CheckBox("fBrightnessRMS", "SkyBrightnessRMS");
349
350 printf(" </tr><tr>\n");
351
352 CheckBox("fNumStarsMed", "# id. Stars");
353 CheckBox("fNumStarsRMS", "RMS id. Stars");
354 CheckBox("fNumStarsCorMed", "# cor. Stars");
355 CheckBox("fNumStarsCorRMS", "RMS cor. Stars");
356
357 printf(" </tr>\n");
358 printf(" </table>\n");
359 printf(" </div><p>\n");
360}
361
362function PrintDataSetInfoMenu($host,$user,$pw,$db)
363{
364 printf(" <div id=\"info\" style='display:none'>");
365 printf(" <table>\n");
366 printf(" <tr>\n");
367
368 CheckBox("fDataSetName", "Name");
369 CheckBox("fComment", "Comment");
370 CheckBox("fRunTime", "Uptime");
371 CheckBox("fRunStart", "Start");
372 CheckBox("fRunStop", "Stop");
373
374 printf(" </tr><tr>\n");
375
376 CheckBox("fZenithDistanceMin", "ZdMin");
377 CheckBox("fZenithDistanceMax", "ZdMax");
378 CheckBox("fLinks", "Links");
379
380 printf(" </tr><tr>\n");
381
382 CheckBox("fEffOnTime/3600", "EffOnTime");
383 CheckBox("fExcessEvents", "ExcEvts");
384 CheckBox("fBackgroundEvents", "BgEvts");
385 CheckBox("fSignalEvents", "SignEvts");
386 CheckBox("fSignificance", "Sign");
387
388 printf(" </tr><tr>\n");
389
390 CheckBox("fScaleFactor", "Scale");
391 CheckBox("fExcessEvents*60/fEffOnTime", "ExcRate");
392 CheckBox("fBackgroundEvents*60/fEffOnTime", "BgRate");
393 CheckBox("fSignalEvents*60/fEffOnTime", "SignRate");
394 CheckBox("Round(fSignificance/Sqrt(fEffOnTime/3600),2)", "SignfRate");
395
396 printf(" </tr>\n");
397 printf(" </table>\n");
398 printf(" </div><p>\n");
399}
400
401function PrintDataSetInfoMenu2($host,$user,$pw,$db)
402{
403 printf(" <div id='info2' style='display:none'>");
404 printf(" <table><tr><td>\n");
405 PrintPullDown($host, $user, $pw, $db, "Source", "fSourceName", "fSourceKEY", "Source Name");
406 printf(" </td><td>\n");
407 PrintPullDown($host, $user, $pw, $db, "ObservationMode", "fObservationModeName", "fObservationModeKEY", "Observation Mode");
408 printf(" </td><td>\n");
409 PrintPullDown($host, $user, $pw, $db, "User", "fUserName", "fUserKEY", "User");
410 printf(" </td></tr>\n");
411 printf(" </table>\n");
412 printf("</div>");
413}
414
415function PrintDataSetStatMenu($host,$user,$pw,$db)
416{
417 printf(" <div id=\"stat\" style='display:none'>\n");
418 printf(" <table>\n");
419 printf(" <tr>\n");
420
421 printf(" <td>\n");
422 PrintStatusMenu("fDataSetInserted", "DataSet Inserted");
423 printf(" </td><td>\n");
424 PrintStatusMenu("fDataSetFileWritten", "DataSetFile");
425 printf(" </td><td>\n");
426 PrintStatusMenu("fStarFilesAvail", "FilesAvail");
427 printf(" </td><td>\n");
428 PrintStatusMenu("fGanymed", "Ganymed");
429 printf(" </td><td>\n");
430 PrintStatusMenu("fFillGanymed", "FillGanymed");
431 printf(" </tr>\n");
432 printf(" </table>\n");
433 printf(" </div><p>\n");
434}
435
436function PrintRunRangeMenu($host,$user,$pw,$db)
437{
438 if (empty($_GET["fRunMin"]))
439 $min = GetMin("fRunNumber", "RunData", $host, $user, $pw, $db);
440 else
441 $min = $_GET["fRunMin"];
442
443 if (empty($_GET["fRunMax"]))
444 $max = GetMax("fRunNumber", "RunData", $host, $user, $pw, $db);
445 else
446 $max = $_GET["fRunMax"];
447
448 printf("Runs&nbsp;from&nbsp;<input name=\"fRunMin\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\">\n", $min);
449 printf("to&nbsp;<input name=\"fRunMax\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\">&nbsp;&nbsp;&nbsp;\n", $max);
450}
451
452function PrintSequRangeMenu($host,$user,$pw,$db)
453{
454 if (empty($_GET["fRunMin"]))
455 $min = GetMin("fSequenceFirst", "Sequences", $host, $user, $pw, $db);
456 else
457 $min = $_GET["fRunMin"];
458
459 if (empty($_GET["fRunMax"]))
460 $max = GetMax("fSequenceFirst", "Sequences", $host, $user, $pw, $db);
461 else
462 $max = $_GET["fRunMax"];
463
464 printf("Sequences&nbsp;from&nbsp;<input name=\"fRunMin\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\">\n", $min);
465 printf("to&nbsp;<input name=\"fRunMax\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\">&nbsp;&nbsp;&nbsp;\n", $max);
466}
467
468function PrintDataSetRangeMenu($host,$user,$pw,$db)
469{
470 if (empty($_GET["fRunMin"]))
471 $min = GetMin("fDataSetNumber", "DataSets", $host, $user, $pw, $db);
472 else
473 $min = $_GET["fRunMin"];
474
475 if (empty($_GET["fRunMax"]))
476 $max = GetMax("fDataSetNumber", "DataSets", $host, $user, $pw, $db);
477 else
478 $max = $_GET["fRunMax"];
479
480 printf("DataSets&nbsp;from&nbsp;<input name=\"fRunMin\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\">\n", $min);
481 printf("to&nbsp;<input name=\"fRunMax\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\">&nbsp;&nbsp;&nbsp;\n", $max);
482}
483
484function PrintZdRangeMenu($host,$user,$pw,$db)
485{
486 if (empty($_GET["fZDMin"]))
487 $zdmin = GetMin("fZenithDistanceMin", "Sequences", $host, $user, $pw, $db);
488 else
489 $zdmin = $_GET["fZDMin"];
490
491 if (empty($_GET["fZDMax"]))
492 $zdmax = GetMax("fZenithDistanceMax", "Sequences", $host, $user, $pw, $db);
493 else
494 $zdmax = $_GET["fZDMax"];
495
496 printf("ZenithDistance&nbsp;from&nbsp;<input name=\"fZDMin\" type=\"text\" size=\"2\" maxlength=\"2\" value=\"%s\">\n", $zdmin);
497 printf("to&nbsp;<input name=\"fZDMax\" type=\"text\" size=\"2\" maxlength=\"2\" value=\"%s\">&nbsp;&nbsp;&nbsp;\n", $zdmax);
498}
499
500function PrintNightRangeMenu($host,$user,$pw,$db, $table)
501{
502 if (empty($_GET["fStartDate"]))
503 $timemin = GetMin("fRunStart", $table, $host, $user, $pw, $db);
504 else
505 $timemin = $_GET["fStartDate"];
506
507 if (empty($_GET["fStopDate"]))
508 $timemax = GetMaxDate("fRunStart", $table, $host, $user, $pw, $db);
509 else
510 $timemax = $_GET["fStopDate"];
511
512 printf("Night&nbsp;(yyyy-mm-dd)&nbsp;from&nbsp;<input name=\"fStartDate\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"%s\">\n", $timemin);
513 printf("to&nbsp;<input name=\"fStopDate\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"%s\">&nbsp;&nbsp;&nbsp;&nbsp;\n", $timemax);
514}
515
516function PrintStarRangeMenu($host,$user,$pw,$db)
517{
518 if (empty($_GET["fStarStart"]))
519 $starmin = GetMin("fStar", "SequenceProcessStatus", $host, $user, $pw, $db);
520 else
521 $starmin = $_GET["fStarStart"];
522
523 if (empty($_GET["fStarStop"]))
524 $starmax = GetMax("fStar", "SequenceProcessStatus", $host, $user, $pw, $db);
525 else
526 $starmax = $_GET["fStarStop"];
527
528 printf("<p>StarDone&nbsp;(yyyy-mm-dd)&nbsp;from&nbsp;<input name=\"fStarStart\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"%s\">\n", $starmin);
529 printf("to&nbsp;<input name=\"fStarStop\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"%s\">&nbsp;&nbsp;&nbsp;&nbsp;\n", $starmax);
530}
531
532function PrintSourceMenu($host,$user,$pw,$db)
533{
534 printf("Source&nbsp;(<A HREF=\"regexp.html\">regexp</A>)&nbsp;<input name=\"fSourceN\" type=\"text\" size=\"15\" maxlength=\"15\" value=\"");
535 if (!empty($_GET["fSourceN"]))
536 printf("%s", $_GET["fSourceN"]);
537 printf("\">&nbsp;&nbsp;&nbsp;\n");
538}
539function PrintSequMenu($host,$user,$pw,$db)
540{
541 printf("Sequ#&nbsp;<input name=\"fSequenceNo\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"");
542 if (!empty($_GET["fSequenceNo"]))
543 printf("%s", $_GET["fSequenceNo"]);
544 printf("\">&nbsp;&nbsp;&nbsp;\n");
545}
546
547function PrintNumResPullDown()
548{
549 printf(" Results:\n");
550 printf(" <select name=\"fNumResults\">\n");
551
552 $numres = array("10", "20", "50", "100", "200", "500", "1000", "2000");
553 foreach ($numres as $element)
554 {
555 if ($element==$_GET["fNumResults"])
556 printf("<option value=\"%s\" selected>%3s</option>\n", $element, $element);
557 else
558 printf("<option value=\"%s\">%3s</option>\n", $element, $element);
559 }
560 printf(" </select>\n");
561 printf(" &nbsp;&nbsp;&nbsp;\n");
562}
563
564function PrintButtons($page)
565{
566 printf("<input class='Width' type='submit' value='Query Table'>&nbsp;&nbsp;&nbsp;\n");
567 printf("<input class='Width' type='button' value='Reset' onClick='self.location.href=\"%s\"'>&nbsp;&nbsp;&nbsp;\n", $page);
568// printf("<p>");
569 if (strchr($_SERVER["REQUEST_URI"], '?')!=FALSE)
570 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"]));
571 if (strchr($_SERVER["REQUEST_URI"], '?')!=FALSE)
572 {
573 printf("<input class='Width' type='button' value='Print' onClick='self.location.href=\"%s&amp;fPrintTable=1\"'>&nbsp;&nbsp;&nbsp;\n", htmlspecialchars($_SERVER["REQUEST_URI"]));
574 printf("MySqlQuery: <img id='showquerybutton' src='../plus.png' alt='+' onClick='showhide(\"showquery\")'>\n");
575 }
576}
577
578function InitFailInfo($_GET, $first)
579{
580 if (empty($_GET["fStartTime"]))
581 $_GET["fStartTime"]="Off";
582
583 if (empty($_GET["fFailedTime"]))
584 $_GET["fFailedTime"]="Off";
585
586 if (empty($_GET["fReturnCode"]))
587 $_GET["fReturnCode"]="Off";
588
589 if (empty($_GET["fFailedCode"]))
590 $_GET["fFailedCode"]="Off";
591
592 if (empty($_GET["fFailedCodeAdd"]))
593 $_GET["fFailedCodeAdd"]="Off";
594}
595
596function InitInfo($_GET, $first)
597{
598 if (empty($_GET["fNumResults"]))
599 $_GET["fNumResults"]="20";
600
601 if (empty($_GET["fNumEvents"]))
602 $_GET["fNumEvents"]="Off";
603
604 if (empty($_GET["fRunStart"]))
605 $_GET["fRunStart"]="Off";
606
607 if (empty($_GET["fRunStop"]))
608 $_GET["fRunStop"]="Off";
609
610 if (empty($_GET["fTest"]))
611 $_GET["fTest"]="Off";
612
613 if (empty($_GET["fSourceName"]))
614 $_GET["fSourceName"]="Off";
615
616 if (empty($_GET["fProjectName"]))
617 $_GET["fProjectName"]="Off";
618
619 if (empty($_GET["fL1TriggerTableName"]))
620 $_GET["fL1TriggerTableName"]="Off";
621
622 if (empty($_GET["fL2TriggerTableName"]))
623 $_GET["fL2TriggerTableName"]="Off";
624
625 if (empty($_GET["fHvSettingsName"]))
626 $_GET["fHvSettingsName"]="Off";
627
628 if (empty($_GET["fDiscriminatorThresholdTableName"]))
629 $_GET["fDiscriminatorThresholdTableName"]="Off";
630
631 if (empty($_GET["fTriggerDelayTableName"]))
632 $_GET["fTriggerDelayTableName"]="Off";
633
634 if (empty($_GET["fLightConditionsName"]))
635 $_GET["fLightConditionsName"]="Off";
636
637 if (empty($_GET["fTestFlagName"]))
638 $_GET["fTestFlagName"]="Off";
639}
640
641function InitRunStatus($_GET, $first)
642{
643 if (empty($_GET["fDataCheckDone"]))
644 $_GET["fDataCheckDone"]="Off";
645
646 if (empty($_GET["fDataCheckDoneStatus"]))
647 $_GET["fDataCheckDoneStatus"]="0";
648
649 if (empty($_GET["fCCFileAvail"]))
650 $_GET["fCCFileAvail"]="Off";
651
652 if (empty($_GET["fCCFileAvailStatus"]))
653 $_GET["fCCFileAvailStatus"]="0";
654
655 if (empty($_GET["fCaCoFileAvail"]))
656 $_GET["fCaCoFileAvail"]=$first?"On":"";
657
658 if (empty($_GET["fCaCoFileAvailStatus"]))
659 $_GET["fCaCoFileAvailStatus"]="0";
660
661 if (empty($_GET["fCaCoFileFound"]))
662 $_GET["fCaCoFileFound"]="Off";
663
664 if (empty($_GET["fCaCoFileFoundStatus"]))
665 $_GET["fCaCoFileFoundStatus"]="0";
666
667 if (empty($_GET["fRawFileAvail"]))
668 $_GET["fRawFileAvail"]="Off";
669
670 if (empty($_GET["fRawFileAvailStatus"]))
671 $_GET["fRawFileAvailStatus"]="0";
672
673 if (empty($_GET["fTimingCorrection"]))
674 $_GET["fTimingCorrection"]="Off";
675
676 if (empty($_GET["fTimingCorrectionStatus"]))
677 $_GET["fTimingCorrectionStatus"]="0";
678}
679
680function InitRunInfo($_GET, $first)
681{
682 InitRunStatus($_GET, $first);
683 InitInfo($_GET, $first);
684 InitFailInfo($_GET, $first);
685
686 if (empty($_GET["fLinks"]))
687 $_GET["fLinks"]=$first?"On":"";
688
689 if (empty($_GET["fFormatVersion"]))
690 $_GET["fFormatVersion"]="Off";
691
692 if (empty($_GET["fAzimuth"]))
693 $_GET["fAzimuth"]="Off";
694
695 if (empty($_GET["fZenithDistance"]))
696 $_GET["fZenithDistance"]="Off";
697
698 if (empty($_GET["fRunTypeName"]))
699 $_GET["fRunTypeName"]="Off";
700
701 if (empty($_GET["fExcludedFDAName"]))
702 $_GET["fExcludedFDAName"]="Off";
703
704 if (empty($_GET["fMagicNumberName"]))
705 $_GET["fMagicNumberName"]="Off";
706
707 if (empty($_GET["fObservationModeName"]))
708 $_GET["fObservationModeName"]="Off";
709
710 if (empty($_GET["fMeanTriggerRate"]))
711 $_GET["fMeanTriggerRate"]="Off";
712
713 if (empty($_GET["fCalibrationScriptName"]))
714 $_GET["fCalibrationScriptName"]="Off";
715
716 if (empty($_GET["fTestFlagName"]))
717 $_GET["fTestFlagName"]="Off";
718
719 if (empty($_GET["fDaqStoreRate"]))
720 $_GET["fDaqStoreRate"]="Off";
721
722 if (empty($_GET["fDaqTriggerRate"]))
723 $_GET["fDaqTriggerRate"]="Off";
724
725 if (empty($_GET["fL2RatePresc"]))
726 $_GET["fL2RatePresc"]="Off";
727
728 if (empty($_GET["fL2RateUnpresc"]))
729 $_GET["fL2RateUnpresc"]="Off";
730
731 if (empty($_GET["fSequenceFirst"]))
732 $_GET["fSequenceFirst"]="Off";
733
734 if (empty($_GET["fSequenceNo"]))
735 $_GET["fSequenceNo"]="";
736}
737
738function InitSequStatus($_GET, $first)
739{
740 if (empty($_GET["fSequenceFileWritten"]))
741 $_GET["fSequenceFileWritten"]="Off";
742
743 if (empty($_GET["fSequenceFileWrittenStatus"]))
744 $_GET["fSequenceFileWrittenStatus"]="0";
745
746 if (empty($_GET["fAllFilesAvail"]))
747 $_GET["fAllFilesAvail"]="Off";
748
749 if (empty($_GET["fAllFilesAvailStatus"]))
750 $_GET["fAllFilesAvailStatus"]="0";
751
752 if (empty($_GET["fCallisto"]))
753 $_GET["fCallisto"]="Off";
754
755 if (empty($_GET["fCallistoStatus"]))
756 $_GET["fCallistoStatus"]="0";
757
758 if (empty($_GET["fFillCallisto"]))
759 $_GET["fFillCallisto"]="Off";
760
761 if (empty($_GET["fFillCallistoStatus"]))
762 $_GET["fFillCallistoStatus"]="0";
763
764 if (empty($_GET["fStar"]))
765 $_GET["fStar"]="Off";
766
767 if (empty($_GET["fStarStatus"]))
768 $_GET["fStarStatus"]="0";
769
770 if (empty($_GET["fFillStar"]))
771 $_GET["fFillStar"]="Off";
772
773 if (empty($_GET["fFillStarStatus"]))
774 $_GET["fFillStarStatus"]="0";
775}
776
777function InitStarInfo($_GET, $first)
778{
779 if (empty($_GET["fMeanNumberIslands"]))
780 $_GET["fMeanNumberIslands"]="Off";
781
782 if (empty($_GET["fPSF"]))
783 $_GET["fPSF"]="Off";
784
785 if (empty($_GET["fRatio"]))
786 $_GET["fRatio"]="Off";
787
788 if (empty($_GET["fMuonNumber"]))
789 $_GET["fMuonNumber"]="Off";
790
791 if (empty($_GET["fEffOnTime"]))
792 $_GET["fEffOnTime"]="Off";
793
794 if (empty($_GET["fEffOnTime/fRunTime"]))
795 $_GET["fEffOnTime/fRunTime"]="Off";
796
797 if (empty($_GET["fMuonRate"]))
798 $_GET["fMuonRate"]="Off";
799
800 if (empty($_GET["fInhomogeneity"]))
801 $_GET["fInhomogeneity"]="Off";
802
803 if (empty($_GET["fDataRate"]))
804 $_GET["fDataRate"]="Off";
805
806 if (empty($_GET["fSparkRate"]))
807 $_GET["fSparkRate"]="Off";
808
809 if (empty($_GET["fMaxHumidity"]))
810 $_GET["fMaxHumidity"]="Off";
811
812 if (empty($_GET["fBrightnessMed"]))
813 $_GET["fBrightnessMed"]="Off";
814
815 if (empty($_GET["fBrightnessRMS"]))
816 $_GET["fBrightnessRMS"]="Off";
817
818 if (empty($_GET["fNumStarsMed"]))
819 $_GET["fNumStarsMed"]="Off";
820
821 if (empty($_GET["fNumStarsRMS"]))
822 $_GET["fNumStarsRMS"]="Off";
823
824 if (empty($_GET["fNumStarsCorMed"]))
825 $_GET["fNumStarsCorMed"]="Off";
826
827 if (empty($_GET["fNumStarsCorRMS"]))
828 $_GET["fNumStarsCorRMS"]="Off";
829}
830
831function InitCalInfo($_GET, $first)
832{
833 if (empty($_GET["fUnreliableInner"]))
834 $_GET["fUnreliableInner"]="Off";
835
836 if (empty($_GET["fUnsuitableOuter"]))
837 $_GET["fUnsuitableOuter"]="Off";
838
839 if (empty($_GET["fUnreliableOuter"]))
840 $_GET["fUnreliableOuter"]="Off";
841
842 if (empty($_GET["fUnsuitableInner"]))
843 $_GET["fUnsuitableInner"]="Off";
844
845 if (empty($_GET["fUnsuitable50"]))
846 $_GET["fUnsuitable50"]="Off";
847
848 if (empty($_GET["fUnsuitable01"]))
849 $_GET["fUnsuitable01"]="Off";
850
851 if (empty($_GET["fUnsuitableMax"]))
852 $_GET["fUnsuitableMax"]="Off";
853
854 if (empty($_GET["fDeadMax"]))
855 $_GET["fDeadMax"]="Off";
856
857 if (empty($_GET["fIsolatedInner"]))
858 $_GET["fIsolatedInner"]="Off";
859
860 if (empty($_GET["fIsolatedOuter"]))
861 $_GET["fIsolatedOuter"]="Off";
862
863 if (empty($_GET["fMeanPedRmsInner"]))
864 $_GET["fMeanPedRmsInner"]="Off";
865
866 if (empty($_GET["fMeanPedRmsOuter"]))
867 $_GET["fMeanPedRmsOuter"]="Off";
868
869 if (empty($_GET["fIsolatedMaxCluster"]))
870 $_GET["fIsolatedMaxCluster"]="Off";
871
872 if (empty($_GET["fArrTimeMeanInner"]))
873 $_GET["fArrTimeMeanInner"]="Off";
874
875 if (empty($_GET["fArrTimeMeanOuter"]))
876 $_GET["fArrTimeMeanOuter"]="Off";
877
878 if (empty($_GET["fArrTimeRmsInner"]))
879 $_GET["fArrTimeRmsInner"]="Off";
880
881 if (empty($_GET["fArrTimeRmsOuter"]))
882 $_GET["fArrTimeRmsOuter"]="Off";
883
884 if (empty($_GET["fMeanSignalInner"]))
885 $_GET["fMeanSignalInner"]=$first?"Off":"";
886
887 if (empty($_GET["fMeanSignalOuter"]))
888 $_GET["fMeanSignalOuter"]=$first?"Off":"";
889
890 if (empty($_GET["fPulsePosMean"]))
891 $_GET["fPulsePosMean"]=$first?"Off":"";
892
893 if (empty($_GET["fConvFactorInner"]))
894 $_GET["fConvFactorInner"]="Off";
895
896 if (empty($_GET["fConvFactorOuter"]))
897 $_GET["fConvFactorOuter"]="Off";
898}
899
900function InitSequInfo($_GET, $first)
901{
902 InitInfo($_GET, $first);
903 InitSequStatus($_GET, $first);
904 InitFailInfo($_GET, $first);
905 InitCalInfo($_GET, $first);
906 InitStarInfo($_GET, $first);
907
908 if (empty($_GET["fRunTime/60"]))
909 $_GET["fRunTime/60"]="Off";
910
911 if (empty($_GET["fSequenceLast"]))
912 $_GET["fSequenceLast"]="Off";
913
914 if (empty($_GET["fAzimuthMin"]))
915 $_GET["fAzimuthMin"]="Off";
916
917 if (empty($_GET["fAzimuthMax"]))
918 $_GET["fAzimuthMax"]="Off";
919
920 if (empty($_GET["fZenithDistanceMin"]))
921 $_GET["fZenithDistanceMin"]="Off";
922
923 if (empty($_GET["fZenithDistanceMax"]))
924 $_GET["fZenithDistanceMax"]="Off";
925
926 if (empty($_GET["fObservationModeName"]))
927 $_GET["fObservationModeName"]="Off";
928
929// if (empty($_GET["fManuallyChangedName"]))
930// $_GET["fManuallyChangedName"]="Off";
931}
932
933function InitDataSetStatus($_GET, $first)
934{
935 if (empty($_GET["fDataSetInserted"]))
936 $_GET["fDataSetInserted"]="Off";
937
938 if (empty($_GET["fDataSetInsertedStatus"]))
939 $_GET["fDataSetInsertedStatus"]="0";
940
941 if (empty($_GET["fDataSetFileWritten"]))
942 $_GET["fDataSetFileWritten"]=$first?"On":"";
943
944 if (empty($_GET["fDataSetFileWrittenStatus"]))
945 $_GET["fDataSetFileWrittenStatus"]="0";
946
947 if (empty($_GET["fStarFilesAvail"]))
948 $_GET["fStarFilesAvail"]="Off";
949
950 if (empty($_GET["fStarFilesAvailStatus"]))
951 $_GET["fStarFilesAvailStatus"]="0";
952
953 if (empty($_GET["fGanymed"]))
954 $_GET["fGanymed"]=$first?"On":"";
955
956 if (empty($_GET["fGanymedStatus"]))
957 $_GET["fGanymedStatus"]="0";
958
959 if (empty($_GET["fFillGanymed"]))
960 $_GET["fFillGanymed"]="Off";
961
962 if (empty($_GET["fFillGanymedStatus"]))
963 $_GET["fFillGanymedStatus"]="0";
964}
965
966function InitDataSetInfo($_GET, $first)
967{
968 InitDataSetStatus($_GET, $first);
969 InitFailInfo($_GET, $first);
970
971 if (empty($_GET["fNumResults"]))
972 $_GET["fNumResults"]="50";
973
974 if (empty($_GET["fLinks"]))
975 $_GET["fLinks"]=$first?"On":"";
976
977 if (empty($_GET["fExcessEvents"]))
978 $_GET["fExcessEvents"]=$first?"On":"";
979
980 if (empty($_GET["fBackgroundEvents*60/fEffOnTime"]))
981 $_GET["fBackgroundEvents*60/fEffOnTime"]=$first?"On":"";
982
983 if (empty($_GET["fBackgroundEvents"]))
984 $_GET["fBackgroundEvents"]=$first?"On":"";
985
986 if (empty($_GET["fSignalEvents"]))
987 $_GET["fSignalEvents"]=$first?"On":"";
988
989 if (empty($_GET["fSignificance"]))
990 $_GET["fSignificance"]=$first?"On":"";
991
992 if (empty($_GET["fScaleFactor"]))
993 $_GET["fScaleFactor"]=$first?"On":"";
994
995 if (empty($_GET["fEffOnTime/3600"]))
996 $_GET["fEffOnTime/3600"]=$first?"On":"";
997
998 if (empty($_GET["fSourceName"]))
999 $_GET["fSourceName"]=$first?"On":"";
1000
1001 if (empty($_GET["fObservationModeName"]))
1002 $_GET["fObservationModeName"]=$first?"On":"";
1003
1004 if (empty($_GET["fComment"]))
1005 $_GET["fComment"]="Off";
1006
1007 if (empty($_GET["fUserName"]))
1008 $_GET["fUserName"]="Off";
1009
1010 if (empty($_GET["fRunStart"]))
1011 $_GET["fRunStart"]="Off";
1012
1013 if (empty($_GET["fRunStop"]))
1014 $_GET["fRunStop"]="Off";
1015
1016 if (empty($_GET["fZenithDistanceMin"]))
1017 $_GET["fZenithDistanceMin"]=$first?"On":"";
1018
1019 if (empty($_GET["fZenithDistanceMax"]))
1020 $_GET["fZenithDistanceMax"]=$first?"On":"";
1021
1022 if (empty($_GET["fRunTime"]))
1023 $_GET["fRunTime"]="Off";
1024
1025 if (empty($_GET["fDataSetName"]))
1026 $_GET["fDataSetName"]=$first?"On":"";
1027
1028 if (empty($_GET["fExcessEvents*60/fEffOnTime"]))
1029 $_GET["fExcessEvents*60/fEffOnTime"]="Off";
1030
1031 if (empty($_GET["fSignalEvents*60/fEffOnTime"]))
1032 $_GET["fSignalEvents*60/fEffOnTime"]="Off";
1033
1034 if (empty($_GET["Round(fSignificance/Sqrt(fEffOnTime/3600),2)"]))
1035 $_GET["Round(fSignificance/Sqrt(fEffOnTime/3600),2)"]="Off";
1036
1037}
1038
1039function InitFindOffData($_GET, $first)
1040{
1041 InitSequInfo($_GET, $first);
1042
1043 //init for limits
1044
1045 if (empty($_GET["fArrTimeLimitMean"]))
1046 $_GET["fArrTimeLimitMean"]="";
1047
1048 if (empty($_GET["fArrTimeLimitRms"]))
1049 $_GET["fArrTimeLimitRms"]="";
1050
1051 if (empty($_GET["fSkyBrightLimitMean"]))
1052 $_GET["fSkyBrightLimitMean"]="";
1053
1054 if (empty($_GET["fSkyBrightLimitRms"]))
1055 $_GET["fSkyBrightLimitRms"]="";
1056
1057 if (empty($_GET["fMaxHumLimit1"]))
1058 $_GET["fMaxHumLimit1"]="";
1059
1060 if (empty($_GET["fMaxHumLimit2"]))
1061 $_GET["fMaxHumLimit2"]="";
1062
1063 //values that differ for different data
1064 if (empty($_GET["fPSFLimitMean"]))
1065 $_GET["fPSFLimitMean"]="";
1066
1067 if (empty($_GET["fPedRmsInLimitMean"]))
1068 $_GET["fPedRmsInLimitMean"]="";
1069
1070 if (empty($_GET["fZdMinLimit1"]))
1071 $_GET["fZdMinLimit1"]="";
1072
1073 if (empty($_GET["fZdMinLimit2"]))
1074 $_GET["fZdMinLimit2"]="";
1075
1076 if (empty($_GET["fZdMaxLimit1"]))
1077 $_GET["fZdMaxLimit1"]="";
1078
1079 if (empty($_GET["fZdMaxLimit2"]))
1080 $_GET["fZdMaxLimit2"]="";
1081
1082 // values taken from distribution or from experience
1083 if (empty($_GET["fUnsInLimit1"]))
1084 $_GET["fUnsInLimit1"]=$first?"12":"";
1085
1086 if (empty($_GET["fUnsInLimit2"]))
1087 $_GET["fUnsInLimit2"]=$first?"20":"";
1088
1089 if (empty($_GET["fRunTimeLimit1"]))
1090 $_GET["fRunTimeLimit1"]=$first?"5":"";
1091
1092 if (empty($_GET["fRunTimeLimit2"]))
1093 $_GET["fRunTimeLimit2"]=$first?"2":"";
1094
1095 if (empty($_GET["fPSFLimitRms"]))
1096 $_GET["fPSFLimitRms"]=$first?"1.0":"";
1097
1098 if (empty($_GET["fPedRmsInLimitRms"]))
1099 $_GET["fPedRmsInLimitRms"]=$first?"0.08":"";
1100
1101 if (empty($_GET["fNumIslLimitMean"]))
1102 $_GET["fNumIslLimitMean"]=$first?"1.230":"";
1103
1104 if (empty($_GET["fNumIslLimitRms"]))
1105 $_GET["fNumIslLimitRms"]=$first?"0.013":"";
1106
1107 if (empty($_GET["fMuonCalLimitMean"]))
1108 $_GET["fMuonCalLimitMean"]=$first?"100.0":"";
1109
1110 if (empty($_GET["fMuonCalLimitRms"]))
1111 $_GET["fMuonCalLimitRms"]=$first?"1.6":"";
1112
1113 if (empty($_GET["fRelTimeMaxLimit1"]))
1114 $_GET["fRelTimeMaxLimit1"]=$first?"1.0":"";
1115
1116 if (empty($_GET["fRelTimeMaxLimit2"]))
1117 $_GET["fRelTimeMaxLimit2"]=$first?"1.02":"";
1118
1119 if (empty($_GET["fRelTimeMinLimit1"]))
1120 $_GET["fRelTimeMinLimit1"]=$first?"0.97":"";
1121
1122 if (empty($_GET["fRelTimeMinLimit2"]))
1123 $_GET["fRelTimeMinLimit2"]=$first?"0.93":"";
1124
1125 if (empty($_GET["fIMCLimit1"]))
1126 $_GET["fIMCLimit1"]=$first?"00":"";
1127
1128 if (empty($_GET["fIMCLimit2"]))
1129 $_GET["fIMCLimit2"]=$first?"00":"";
1130
1131 if (empty($_GET["fIsoInLimit1"]))
1132 $_GET["fIsoInLimit1"]=$first?"00":"";
1133
1134 if (empty($_GET["fIsoInLimit2"]))
1135 $_GET["fIsoInLimit2"]=$first?"00":"";
1136
1137 if (empty($_GET["fInhomLimitMean"]))
1138 $_GET["fInhomLimitMean"]=$first?"10":"";
1139
1140 if (empty($_GET["fInhomLimitRms"]))
1141 $_GET["fInhomLimitRms"]=$first?"3":"";
1142
1143 if (empty($_GET["fImgRateLimitMean"]))
1144 $_GET["fImgRateLimitMean"]=$first?"180":"";
1145
1146 if (empty($_GET["fImgRateLimitRms"]))
1147 $_GET["fImgRateLimitRms"]=$first?"30":"";
1148
1149 if (empty($_GET["fMuonRateLimitMean"]))
1150 $_GET["fMuonRateLimitMean"]=$first?"1":"";
1151
1152 if (empty($_GET["fMuonRateLimitRms"]))
1153 $_GET["fMuonRateLimitRms"]=$first?"0.1":"";
1154
1155 if (empty($_GET["fMuonNumLimit1"]))
1156 $_GET["fMuonNumLimit1"]=$first?"180":"";
1157
1158 if (empty($_GET["fMuonNumLimit2"]))
1159 $_GET["fMuonNumLimit2"]=$first?"120":"";
1160
1161 if (empty($_GET["fPulsePosLimit1"]))
1162 $_GET["fPulsePosLimit1"]=$first?"3.5":"";
1163
1164 if (empty($_GET["fPulsePosLimit2"]))
1165 $_GET["fPulsePosLimit2"]=$first?"2.5":"";
1166
1167 if (empty($_GET["fNumStarsLimit1"]))
1168 $_GET["fNumStarsLimit1"]=$first?"30":"";
1169
1170 if (empty($_GET["fNumStarsLimit2"]))
1171 $_GET["fNumStarsLimit2"]=$first?"20":"";
1172
1173 if (empty($_GET["fNumStarsCorLimit1"]))
1174 $_GET["fNumStarsCorLimit1"]=$first?"10":"";
1175
1176 if (empty($_GET["fNumStarsCorLimit2"]))
1177 $_GET["fNumStarsCorLimit2"]=$first?"5":"";
1178
1179}
1180
1181?>
Note: See TracBrowser for help on using the repository browser.