source: tags/Mars-V2.1.1/datacenter/db/menu.php

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