source: trunk/Mars/datacenter/db/menu.php@ 10009

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