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