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

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