source: branches/Mars_MC/datacenter/db/menu.php@ 17045

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