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 | CheckBox("fTest", "incl. TestSources");
|
---|
28 |
|
---|
29 | printf(" </tr>\n");
|
---|
30 | printf(" </table>\n");
|
---|
31 | printf(" </div><p>\n");
|
---|
32 | }
|
---|
33 |
|
---|
34 | function PrintRunStatMenu()
|
---|
35 | {
|
---|
36 | printf(" <div id=\"stat\" style='display:none'>\n");
|
---|
37 | printf(" <table>\n");
|
---|
38 | printf(" <tr><td>\n");
|
---|
39 |
|
---|
40 | PrintStatusMenu("fCCFileAvail", "CC File available");
|
---|
41 | printf(" </td><td>\n");
|
---|
42 | PrintStatusMenu("fCaCoFileAvail", "Caco File available");
|
---|
43 | printf(" </td><td>\n");
|
---|
44 | PrintStatusMenu("fRawFileAvail", "Rawfile available");
|
---|
45 |
|
---|
46 | printf(" </td></tr><tr><td>\n");
|
---|
47 |
|
---|
48 | PrintStatusMenu("fTimingCorrection", "Timing Correction");
|
---|
49 | printf(" </td><td>\n");
|
---|
50 | PrintStatusMenu("fCaCoFileFound", "Caco File");
|
---|
51 | printf(" </td><td>\n");
|
---|
52 | PrintStatusMenu("fDataCheckDone", "DataCheck");
|
---|
53 |
|
---|
54 | printf(" </td></tr></table>\n");
|
---|
55 | printf(" <p>\n");
|
---|
56 | printf(" </div><p>\n");
|
---|
57 | }
|
---|
58 |
|
---|
59 | function PrintRunInfo2Menu($host,$user,$pw,$db)
|
---|
60 | {
|
---|
61 | printf(" <div id='info2' style='display:none'>");
|
---|
62 | printf(" <table>\n");
|
---|
63 | printf(" <tr><td>\n");
|
---|
64 | PrintPullDown($host, $user, $pw, $db, "RunType", "fRunTypeName", "fRunTypeKEY", "Run type");
|
---|
65 | printf(" </td><td>\n");
|
---|
66 | PrintPullDown($host, $user, $pw, $db, "Source", "fSourceName", "fSourceKEY", "Source Name");
|
---|
67 | printf(" </td><td>\n");
|
---|
68 | PrintPullDown($host, $user, $pw, $db, "HvSettings", "fHvSettingsName", "fHvSettingsKEY", "HV Settings");
|
---|
69 | printf(" </td><td>\n");
|
---|
70 | PrintPullDown($host, $user, $pw, $db, "L1TriggerTable", "fL1TriggerTableName", "fL1TriggerTableKEY", "L1 Trigger Table");
|
---|
71 | printf(" </td></tr><tr><td>\n");
|
---|
72 | PrintPullDown($host, $user, $pw, $db, "TestFlag", "fTestFlagName", "fTestFlagKEY", "Test Flag");
|
---|
73 | printf(" </td><td>\n");
|
---|
74 | PrintPullDown($host, $user, $pw, $db, "Project", "fProjectName", "fProjectKEY", "Project Name");
|
---|
75 | printf(" </td><td>\n");
|
---|
76 | PrintPullDown($host, $user, $pw, $db, "DiscriminatorThresholdTable", "fDiscriminatorThresholdTableName", "fDiscriminatorThresholdTableKEY", "DT Table");
|
---|
77 | printf(" </td><td>\n");
|
---|
78 | PrintPullDown($host, $user, $pw, $db, "L2TriggerTable", "fL2TriggerTableName", "fL2TriggerTableKEY", "L2 Trigger Table");
|
---|
79 | printf(" </td></tr><tr><td>\n");
|
---|
80 | PrintPullDown($host, $user, $pw, $db, "ExcludedFDA", "fExcludedFDAName", "fExcludedFDAKEY", "Exclusions");
|
---|
81 | printf(" </td><td>\n");
|
---|
82 | PrintPullDown($host, $user, $pw, $db, "LightConditions", "fLightConditionsName", "fLightConditionsKEY", "Light Conditions");
|
---|
83 | printf(" </td><td>\n");
|
---|
84 | PrintPullDown($host, $user, $pw, $db, "CalibrationScript", "fCalibrationScriptName", "fCalibrationScriptKEY", "Cal Script");
|
---|
85 | printf(" </td><td>\n");
|
---|
86 | PrintPullDown($host, $user, $pw, $db, "TriggerDelayTable", "fTriggerDelayTableName", "fTriggerDelayTableKEY", "Trigger Delay Table");
|
---|
87 | printf(" </td></tr><tr><td>\n");
|
---|
88 | PrintPullDown($host, $user, $pw, $db, "MagicNumber", "fMagicNumberName", "fMagicNumberKEY", "Magic Number");
|
---|
89 | printf(" </td></tr></table>\n");
|
---|
90 | printf(" </div><p>\n");
|
---|
91 | }
|
---|
92 |
|
---|
93 | function PrintSequInfoMenu()
|
---|
94 | {
|
---|
95 | printf(" <div id='info' style='display:none'>");
|
---|
96 | printf(" <table>\n");
|
---|
97 |
|
---|
98 | printf("<tr><td align='center'>\n");
|
---|
99 | printf(" <tr>\n");
|
---|
100 |
|
---|
101 | CheckBox("fRunStart", "Start time");
|
---|
102 | CheckBox("fNumEvents", "Num of events");
|
---|
103 | CheckBox("fRunTime/60", "Duration");
|
---|
104 | CheckBox("fSequenceLast", "Last run");
|
---|
105 |
|
---|
106 | printf(" </tr><tr>\n");
|
---|
107 |
|
---|
108 | CheckBox("fZenithDistanceMin", "Zenith distance min");
|
---|
109 | CheckBox("fZenithDistanceMax", "Zenith distance max");
|
---|
110 | CheckBox("fAzimuthMin", "Azimuth min");
|
---|
111 | CheckBox("fAzimuthMax", "Azimuth max");
|
---|
112 |
|
---|
113 | printf(" </tr><tr>\n");
|
---|
114 |
|
---|
115 | CheckBox("fLinks", "Links");
|
---|
116 | CheckBox("fTest", "incl. TestSources");
|
---|
117 | CheckBox("fOff", "incl. offsources");
|
---|
118 | CheckBox("fOnlyOff", "only offsources");
|
---|
119 |
|
---|
120 | printf(" </tr></table>\n");
|
---|
121 | printf(" </div><p>\n");
|
---|
122 | }
|
---|
123 |
|
---|
124 | function PrintSequInfo2Menu($host,$user,$pw,$db)
|
---|
125 | {
|
---|
126 | printf(" <div id='info2' style='display:none'>\n");
|
---|
127 | printf(" <table>\n");
|
---|
128 | printf(" <tr><td>\n");
|
---|
129 | PrintPullDown($host, $user, $pw, $db, "Source", "fSourceName", "fSourceKEY", "Source Name");
|
---|
130 | printf(" </td><td>\n");
|
---|
131 | PrintPullDown($host, $user, $pw, $db, "L1TriggerTable", "fL1TriggerTableName", "fL1TriggerTableKEY", "L1Trigger Table");
|
---|
132 | printf(" </td><td>\n");
|
---|
133 | PrintPullDown($host, $user, $pw, $db, "L2TriggerTable", "fL2TriggerTableName", "fL2TriggerTableKEY", "L2Trigger Table");
|
---|
134 | printf(" </td><td>\n");
|
---|
135 | PrintPullDown($host, $user, $pw, $db, "TriggerDelayTable", "fTriggerDelayTableName", "fTriggerDelayTableKEY", "Trigger Delay Table");
|
---|
136 | printf(" </td></tr><tr><td>\n");
|
---|
137 | PrintPullDown($host, $user, $pw, $db, "LightConditions", "fLightConditionsName", "fLightConditionsKEY", "Light Conditions");
|
---|
138 | printf(" </td><td>\n");
|
---|
139 | PrintPullDown($host, $user, $pw, $db, "Project", "fProjectName", "fProjectKEY", "Project Name");
|
---|
140 | printf(" </td><td>\n");
|
---|
141 | PrintPullDown($host, $user, $pw, $db, "HvSettings", "fHvSettingsName", "fHvSettingsKEY", "HV Settings");
|
---|
142 | printf(" </td><td>\n");
|
---|
143 | PrintPullDown($host, $user, $pw, $db, "DiscriminatorThresholdTable", "fDiscriminatorThresholdTableName", "fDiscriminatorThresholdTableKEY", "DT Table");
|
---|
144 | printf(" </td></tr><tr><td>\n");
|
---|
145 | PrintPullDown($host, $user, $pw, $db, "ManuallyChanged", "fManuallyChangedName", "fManuallyChangedKEY", "Manually changed");
|
---|
146 | printf(" </td><td>\n");
|
---|
147 | PrintPullDown($host, $user, $pw, $db, "TestFlag", "fTestFlagName", "fTestFlagKEY", "Test Flag");
|
---|
148 | printf(" </td></tr>\n");
|
---|
149 | printf(" </table>\n");
|
---|
150 | printf(" </div><p>\n");
|
---|
151 | }
|
---|
152 |
|
---|
153 | function PrintLimitsMenu($limitsmean, $limitsmin, $limitsmax, $alias, $old)
|
---|
154 | {
|
---|
155 | printf("<div id='limits' style='display:none'>\n");
|
---|
156 | printf(" <table>\n");
|
---|
157 | printf(" <tr><th colspan='3'>Limits</th></tr>\n");
|
---|
158 | printf(" <tr><td valign='top'>\n");
|
---|
159 |
|
---|
160 | printf(" <table>\n");
|
---|
161 | printf(" <tr><th>Name </th><th> Mean </th><th> Rms </th></tr>\n");
|
---|
162 |
|
---|
163 | foreach($limitsmean as $key => $element)
|
---|
164 | {
|
---|
165 | printf("<tr><td>%s</td>\n", $alias[$key]);
|
---|
166 | $mean=$key . "Mean";
|
---|
167 | $limitmean=$_GET[$mean];
|
---|
168 | printf("<td><input name=\"%sMean\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limitmean);
|
---|
169 | $rms2=$key . "Rms";
|
---|
170 | $limitrms=$_GET[$rms2];
|
---|
171 | printf("<td><input name=\"%sRms\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limitrms);
|
---|
172 | printf("</tr>\n");
|
---|
173 | }
|
---|
174 |
|
---|
175 | if (empty($old))
|
---|
176 | {
|
---|
177 | printf(" </table>\n");
|
---|
178 | printf(" </td>\n");
|
---|
179 | printf(" <td valign='top'>\n");
|
---|
180 | printf(" <table>\n");
|
---|
181 | }
|
---|
182 |
|
---|
183 | printf(" <tr><th>Name </th><th> Min </th><th> Min2 </th></tr>\n");
|
---|
184 | foreach($limitsmin as $key => $element)
|
---|
185 | {
|
---|
186 | printf("<tr><td>%s</td>\n", $alias[$key]);
|
---|
187 | $level1=$key . "1";
|
---|
188 | $limit1=$_GET[$level1];
|
---|
189 | printf("<td><input name=\"%s1\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limit1);
|
---|
190 | $level2=$key . "2";
|
---|
191 | $limit2=$_GET[$level2];
|
---|
192 | printf("<td><input name=\"%s2\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limit2);
|
---|
193 | printf("</tr>\n");
|
---|
194 | }
|
---|
195 |
|
---|
196 | if (empty($old))
|
---|
197 | {
|
---|
198 | printf(" </table>\n");
|
---|
199 | printf(" </td>\n");
|
---|
200 | printf(" <td valign='top'>\n");
|
---|
201 | printf(" <table>\n");
|
---|
202 | }
|
---|
203 |
|
---|
204 | printf(" <tr><th>Name </th><th> Max </th><th> Max2 </th></tr>\n");
|
---|
205 | foreach($limitsmax as $key => $element)
|
---|
206 | {
|
---|
207 | printf("<tr><td>%s</td>\n", $alias[$key]);
|
---|
208 | $level1=$key . "1";
|
---|
209 | $limit1=$_GET[$level1];
|
---|
210 | printf("<td><input name=\"%s1\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limit1);
|
---|
211 | $level2=$key . "2";
|
---|
212 | $limit2=$_GET[$level2];
|
---|
213 | printf("<td><input name=\"%s2\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limit2);
|
---|
214 | printf("</tr>\n");
|
---|
215 | }
|
---|
216 | printf(" </table>\n");
|
---|
217 |
|
---|
218 | printf(" </td></tr></table>\n");
|
---|
219 | printf("<p>\n");
|
---|
220 | printf("</div>\n");
|
---|
221 | }
|
---|
222 |
|
---|
223 | function PrintSequStatMenu()
|
---|
224 | {
|
---|
225 | printf(" <div id='stat' style='display:none'>\n");
|
---|
226 | printf(" <table><tr><td>\n");
|
---|
227 |
|
---|
228 | PrintStatusMenu("fAllFilesAvail", "Files avail");
|
---|
229 | printf(" </td><td>\n");
|
---|
230 | PrintStatusMenu("fCallisto", "Callisto");
|
---|
231 | printf(" </td><td>\n");
|
---|
232 | PrintStatusMenu("fStar", "Star");
|
---|
233 | printf(" </td></tr><tr><td>\n");
|
---|
234 | PrintStatusMenu("fSequenceFileWritten", "Sequfile");
|
---|
235 | printf(" </td><td>\n");
|
---|
236 | PrintStatusMenu("fFillCallisto", "Fillcallisto");
|
---|
237 | printf(" </td><td>\n");
|
---|
238 | PrintStatusMenu("fFillStar", "Fillstar");
|
---|
239 |
|
---|
240 | printf("</td></tr> </table>\n");
|
---|
241 | printf(" </div><p>\n");
|
---|
242 | }
|
---|
243 |
|
---|
244 | function PrintFailMenu()
|
---|
245 | {
|
---|
246 | printf(" <div id='fail' style='display:none'>\n");
|
---|
247 | printf(" <table>\n");
|
---|
248 | printf(" <tr>\n");
|
---|
249 |
|
---|
250 | CheckBox("fStartTime", "StartTime");
|
---|
251 | CheckBox("fFailedTime", "FailedTime");
|
---|
252 | CheckBox("fReturnCode", "ErrCode");
|
---|
253 | CheckBox("fFailedCode", "RetCode");
|
---|
254 | CheckBox("fFailedCodeAdd", "CodeAdd");
|
---|
255 |
|
---|
256 | printf(" </tr>\n");
|
---|
257 | printf(" </table>\n");
|
---|
258 | printf(" </div><p>\n");
|
---|
259 | }
|
---|
260 |
|
---|
261 | function PrintCalMenu()
|
---|
262 | {
|
---|
263 | printf(" <div id='cal' style='display:none'>\n");
|
---|
264 | printf(" <table>\n");
|
---|
265 | printf(" <tr>\n");
|
---|
266 |
|
---|
267 | CheckBox("fUnsuitableInner", "Unsuitable inner");
|
---|
268 | CheckBox("fUnsuitableOuter", "Unsuitable outer");
|
---|
269 | CheckBox("fUnreliableInner", "Unreliable inner");
|
---|
270 | CheckBox("fUnreliableOuter", "Unreliable outer");
|
---|
271 |
|
---|
272 | printf(" </tr><tr>\n");
|
---|
273 |
|
---|
274 | CheckBox("fIsolatedInner", "Isolated inner");
|
---|
275 | CheckBox("fIsolatedOuter", "Isolated outer");
|
---|
276 | CheckBox("fIsolatedMaxCluster", "IsolatedMaxCluster");
|
---|
277 |
|
---|
278 | printf(" </tr><tr>\n");
|
---|
279 |
|
---|
280 | CheckBox("fArrTimeMeanInner", "ArrTimeMean inner ");
|
---|
281 | CheckBox("fArrTimeMeanOuter", "ArrTimeMean outer ");
|
---|
282 | CheckBox("fArrTimeRmsInner", "ArrTimeRms inner ");
|
---|
283 | CheckBox("fArrTimeRmsOuter", "ArrTimeRms outer ");
|
---|
284 |
|
---|
285 | printf(" </tr><tr>\n");
|
---|
286 |
|
---|
287 | CheckBox("fMeanPedRmsInner", "MeanPedRms inner");
|
---|
288 | CheckBox("fMeanPedRmsOuter", "MeanPedRms outer");
|
---|
289 | CheckBox("fMeanSignalInner", "MeanSignal inner");
|
---|
290 | CheckBox("fMeanSignalOuter", "MeanSignal outer");
|
---|
291 |
|
---|
292 | printf(" </tr><tr>\n");
|
---|
293 |
|
---|
294 | CheckBox("fConvFactorInner", "Conv inner ");
|
---|
295 | CheckBox("fConvFactorOuter", "Conv outer ");
|
---|
296 | CheckBox("fPulsePosMean", "Mean PulsePos");
|
---|
297 |
|
---|
298 | printf(" </tr></table>\n");
|
---|
299 | printf(" </div><p>\n");
|
---|
300 | }
|
---|
301 |
|
---|
302 | function PrintStarMenu()
|
---|
303 | {
|
---|
304 | printf(" <div id='star' style='display:none'>\n");
|
---|
305 | printf(" <table>\n");
|
---|
306 | printf(" <tr>\n");
|
---|
307 |
|
---|
308 | CheckBox("fDataRate", "CleanedEvtRate");
|
---|
309 | CheckBox("fMeanNumberIslands", "MeanNumIslands");
|
---|
310 | CheckBox("fMaxHumidity", "MaxHumidity");
|
---|
311 | CheckBox("fInhomogeneity", "Inhomogeneity");
|
---|
312 |
|
---|
313 | printf(" </tr><tr>\n");
|
---|
314 |
|
---|
315 | CheckBox("fMuonRate", "MuonRate");
|
---|
316 | CheckBox("fMuonNumber", "MuonNumber");
|
---|
317 | CheckBox("fRatio", "Ratio");
|
---|
318 | CheckBox("fPSF", "PSF");
|
---|
319 |
|
---|
320 | printf(" </tr><tr>\n");
|
---|
321 |
|
---|
322 | CheckBox("fEffOnTime", "EffOnTime");
|
---|
323 | CheckBox("fEffOnTime/fRunTime", "RelOnTime");
|
---|
324 | CheckBox("fBrightnessMed", "SkyBrightnessMed");
|
---|
325 | CheckBox("fBrightnessRMS", "SkyBrightnessRMS");
|
---|
326 |
|
---|
327 | printf(" </tr><tr>\n");
|
---|
328 |
|
---|
329 | CheckBox("fNumStarsMed", "# id. Stars");
|
---|
330 | CheckBox("fNumStarsRMS", "RMS id. Stars");
|
---|
331 | CheckBox("fNumStarsCorMed", "# cor. Stars");
|
---|
332 | CheckBox("fNumStarsCorRMS", "RMS cor. Stars");
|
---|
333 |
|
---|
334 | printf(" </tr>\n");
|
---|
335 | printf(" </table>\n");
|
---|
336 | printf(" </div><p>\n");
|
---|
337 | }
|
---|
338 |
|
---|
339 | function PrintDataSetInfoMenu($host,$user,$pw,$db)
|
---|
340 | {
|
---|
341 | printf(" <div id=\"info\" style='display:none'>");
|
---|
342 | printf(" <table>\n");
|
---|
343 | printf(" <tr>\n");
|
---|
344 |
|
---|
345 | CheckBox("fWobble", "Wobble");
|
---|
346 | CheckBox("fComment", "Comment");
|
---|
347 | CheckBox("fScaleFactor", "Scale");
|
---|
348 | CheckBox("fEffOnTime/3600", "EffOnTime");
|
---|
349 | CheckBox("fLinks", "Links");
|
---|
350 |
|
---|
351 | printf(" </tr><tr>\n");
|
---|
352 |
|
---|
353 | CheckBox("fExcessEvents", "ExcEvts");
|
---|
354 | CheckBox("fBackgroundEvents", "BgEvts");
|
---|
355 | CheckBox("fSignalEvents", "SignEvts");
|
---|
356 | CheckBox("fSignificance", "Sign");
|
---|
357 |
|
---|
358 | printf(" </tr><tr>\n");
|
---|
359 |
|
---|
360 | CheckBox("fExcessEvents*60/fEffOnTime", "ExcRate");
|
---|
361 | CheckBox("fBackgroundEvents*60/fEffOnTime", "BgRate");
|
---|
362 | CheckBox("fSignalEvents*60/fEffOnTime", "SignRate");
|
---|
363 | CheckBox("Round(fSignificance/Sqrt(fEffOnTime/3600),2)", "SignfRate");
|
---|
364 |
|
---|
365 | printf(" </tr>\n");
|
---|
366 | printf(" </table>\n");
|
---|
367 | printf(" </div><p>\n");
|
---|
368 | }
|
---|
369 |
|
---|
370 | function PrintDataSetStatMenu($host,$user,$pw,$db)
|
---|
371 | {
|
---|
372 | printf(" <div id=\"stat\" style='display:none'>\n");
|
---|
373 | printf(" <table>\n");
|
---|
374 | printf(" <tr>\n");
|
---|
375 |
|
---|
376 | printf(" <td>\n");
|
---|
377 | PrintStatusMenu("fDataSetInserted", "DataSet Inserted");
|
---|
378 | printf(" </td><td>\n");
|
---|
379 | PrintStatusMenu("fStarFilesAvail", "FilesAvail");
|
---|
380 | printf(" </td><td>\n");
|
---|
381 | PrintStatusMenu("fGanymed", "Ganymed");
|
---|
382 | printf(" </td><td>\n");
|
---|
383 | PrintStatusMenu("fFillGanymed", "FillGanymed");
|
---|
384 | printf(" </tr>\n");
|
---|
385 | printf(" </table>\n");
|
---|
386 | printf(" </div><p>\n");
|
---|
387 | }
|
---|
388 |
|
---|
389 | function PrintRunRangeMenu($host,$user,$pw,$db)
|
---|
390 | {
|
---|
391 | if (empty($_GET["fRunMin"]))
|
---|
392 | $min = GetMin("fRunNumber", "RunData", $host, $user, $pw, $db);
|
---|
393 | else
|
---|
394 | $min = $_GET["fRunMin"];
|
---|
395 |
|
---|
396 | if (empty($_GET["fRunMax"]))
|
---|
397 | $max = GetMax("fRunNumber", "RunData", $host, $user, $pw, $db);
|
---|
398 | else
|
---|
399 | $max = $_GET["fRunMax"];
|
---|
400 |
|
---|
401 | printf("Runs from <input name=\"fRunMin\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\">\n", $min);
|
---|
402 | printf("to <input name=\"fRunMax\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"> \n", $max);
|
---|
403 | }
|
---|
404 |
|
---|
405 | function PrintSequRangeMenu($host,$user,$pw,$db)
|
---|
406 | {
|
---|
407 | if (empty($_GET["fRunMin"]))
|
---|
408 | $min = GetMin("fSequenceFirst", "Sequences", $host, $user, $pw, $db);
|
---|
409 | else
|
---|
410 | $min = $_GET["fRunMin"];
|
---|
411 |
|
---|
412 | if (empty($_GET["fRunMax"]))
|
---|
413 | $max = GetMax("fSequenceFirst", "Sequences", $host, $user, $pw, $db);
|
---|
414 | else
|
---|
415 | $max = $_GET["fRunMax"];
|
---|
416 |
|
---|
417 | printf("Sequences from <input name=\"fRunMin\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\">\n", $min);
|
---|
418 | printf("to <input name=\"fRunMax\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"> \n", $max);
|
---|
419 | }
|
---|
420 |
|
---|
421 | function PrintDataSetRangeMenu($host,$user,$pw,$db)
|
---|
422 | {
|
---|
423 | if (empty($_GET["fRunMin"]))
|
---|
424 | $min = GetMin("fDataSetNumber", "DataSets", $host, $user, $pw, $db);
|
---|
425 | else
|
---|
426 | $min = $_GET["fRunMin"];
|
---|
427 |
|
---|
428 | if (empty($_GET["fRunMax"]))
|
---|
429 | $max = GetMax("fDataSetNumber", "DataSets", $host, $user, $pw, $db);
|
---|
430 | else
|
---|
431 | $max = $_GET["fRunMax"];
|
---|
432 |
|
---|
433 | printf("DataSets from <input name=\"fRunMin\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\">\n", $min);
|
---|
434 | printf("to <input name=\"fRunMax\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"> \n", $max);
|
---|
435 | }
|
---|
436 |
|
---|
437 | function PrintZdRangeMenu($host,$user,$pw,$db)
|
---|
438 | {
|
---|
439 | if (empty($_GET["fZDMin"]))
|
---|
440 | $zdmin = GetMin("fZenithDistanceMin", "Sequences", $host, $user, $pw, $db);
|
---|
441 | else
|
---|
442 | $zdmin = $_GET["fZDMin"];
|
---|
443 |
|
---|
444 | if (empty($_GET["fZDMax"]))
|
---|
445 | $zdmax = GetMax("fZenithDistanceMax", "Sequences", $host, $user, $pw, $db);
|
---|
446 | else
|
---|
447 | $zdmax = $_GET["fZDMax"];
|
---|
448 |
|
---|
449 | printf("ZenithDistance from <input name=\"fZDMin\" type=\"text\" size=\"2\" maxlength=\"2\" value=\"%s\">\n", $zdmin);
|
---|
450 | printf("to <input name=\"fZDMax\" type=\"text\" size=\"2\" maxlength=\"2\" value=\"%s\"> \n", $zdmax);
|
---|
451 | }
|
---|
452 |
|
---|
453 | function PrintNightRangeMenu($host,$user,$pw,$db)
|
---|
454 | {
|
---|
455 | if (empty($_GET["fStartDate"]))
|
---|
456 | $timemin = GetMin("fRunStart", "Sequences", $host, $user, $pw, $db);
|
---|
457 | else
|
---|
458 | $timemin = $_GET["fStartDate"];
|
---|
459 |
|
---|
460 | if (empty($_GET["fStopDate"]))
|
---|
461 | $timemax = GetMax("fRunStart", "Sequences", $host, $user, $pw, $db);
|
---|
462 | else
|
---|
463 | $timemax = $_GET["fStopDate"];
|
---|
464 |
|
---|
465 | printf("Night (yyyy-mm-dd) from <input name=\"fStartDate\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"%s\">\n", $timemin);
|
---|
466 | printf("to <input name=\"fStopDate\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"%s\"> \n", $timemax);
|
---|
467 | }
|
---|
468 |
|
---|
469 | function PrintSourceMenu($host,$user,$pw,$db)
|
---|
470 | {
|
---|
471 | printf("Source (<A HREF=\"regexp.html\">regexp</A>) <input name=\"fSourceN\" type=\"text\" size=\"15\" maxlength=\"15\" value=\"");
|
---|
472 | if (!empty($_GET["fSourceN"]))
|
---|
473 | printf("%s", $_GET["fSourceN"]);
|
---|
474 | printf("\"> \n");
|
---|
475 | }
|
---|
476 | function PrintSequMenu($host,$user,$pw,$db)
|
---|
477 | {
|
---|
478 | printf("Sequ# <input name=\"fSequenceNo\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"");
|
---|
479 | if (!empty($_GET["fSequenceNo"]))
|
---|
480 | printf("%s", $_GET["fSequenceNo"]);
|
---|
481 | printf("\"> \n");
|
---|
482 | }
|
---|
483 |
|
---|
484 | function PrintNumResPullDown()
|
---|
485 | {
|
---|
486 | printf(" Results:\n");
|
---|
487 | printf(" <select name=\"fNumResults\">\n");
|
---|
488 |
|
---|
489 | $numres = array("10", "20", "50", "100", "200", "500", "1000", "2000");
|
---|
490 | foreach ($numres as $element)
|
---|
491 | {
|
---|
492 | if ($element==$_GET["fNumResults"])
|
---|
493 | printf("<option value=\"%s\" selected>%3s</option>\n", $element, $element);
|
---|
494 | else
|
---|
495 | printf("<option value=\"%s\">%3s</option>\n", $element, $element);
|
---|
496 | }
|
---|
497 | printf(" </select>\n");
|
---|
498 | printf(" \n");
|
---|
499 | }
|
---|
500 |
|
---|
501 | function PrintButtons($page)
|
---|
502 | {
|
---|
503 | printf("<input class='Width' type='submit' value='Query Table'> \n");
|
---|
504 | printf("<input class='Width' type='button' value='Reset' onClick='self.location.href=\"%s\"'> \n", $page);
|
---|
505 | // printf("<p>");
|
---|
506 | if (strchr($_SERVER["REQUEST_URI"], '?')!=FALSE)
|
---|
507 | printf("<input class='Width' type='button' value='Get .txt' onClick='self.location.href=\"%s&fSendTxt=1\"'> \n", htmlspecialchars($_SERVER["REQUEST_URI"]));
|
---|
508 | if (strchr($_SERVER["REQUEST_URI"], '?')!=FALSE)
|
---|
509 | {
|
---|
510 | printf("<input class='Width' type='button' value='Print' onClick='self.location.href=\"%s&fPrintTable=1\"'> \n", htmlspecialchars($_SERVER["REQUEST_URI"]));
|
---|
511 | printf("MySqlQuery: <img id='showquerybutton' src='../plus.png' alt='+' onClick='showhide(\"showquery\")'>\n");
|
---|
512 | }
|
---|
513 | }
|
---|
514 |
|
---|
515 | function InitFailInfo($_GET)
|
---|
516 | {
|
---|
517 | if (empty($_GET["fStartTime"]))
|
---|
518 | $_GET["fStartTime"]="Off";
|
---|
519 |
|
---|
520 | if (empty($_GET["fFailedTime"]))
|
---|
521 | $_GET["fFailedTime"]="Off";
|
---|
522 |
|
---|
523 | if (empty($_GET["fReturnCode"]))
|
---|
524 | $_GET["fReturnCode"]="Off";
|
---|
525 |
|
---|
526 | if (empty($_GET["fFailedCode"]))
|
---|
527 | $_GET["fFailedCode"]="Off";
|
---|
528 |
|
---|
529 | if (empty($_GET["fFailedCodeAdd"]))
|
---|
530 | $_GET["fFailedCodeAdd"]="Off";
|
---|
531 | }
|
---|
532 |
|
---|
533 | function InitInfo($_GET)
|
---|
534 | {
|
---|
535 | if (empty($_GET["fNumResults"]))
|
---|
536 | $_GET["fNumResults"]="20";
|
---|
537 |
|
---|
538 | if (empty($_GET["fNumEvents"]))
|
---|
539 | $_GET["fNumEvents"]="Off";
|
---|
540 |
|
---|
541 | if (empty($_GET["fRunStart"]))
|
---|
542 | $_GET["fRunStart"]="Off";
|
---|
543 |
|
---|
544 | if (empty($_GET["fTest"]))
|
---|
545 | $_GET["fTest"]="Off";
|
---|
546 |
|
---|
547 | if (empty($_GET["fSourceName"]))
|
---|
548 | $_GET["fSourceName"]="Off";
|
---|
549 |
|
---|
550 | if (empty($_GET["fProjectName"]))
|
---|
551 | $_GET["fProjectName"]="Off";
|
---|
552 |
|
---|
553 | if (empty($_GET["fL1TriggerTableName"]))
|
---|
554 | $_GET["fL1TriggerTableName"]="Off";
|
---|
555 |
|
---|
556 | if (empty($_GET["fL2TriggerTableName"]))
|
---|
557 | $_GET["fL2TriggerTableName"]="Off";
|
---|
558 |
|
---|
559 | if (empty($_GET["fHvSettingsName"]))
|
---|
560 | $_GET["fHvSettingsName"]="Off";
|
---|
561 |
|
---|
562 | if (empty($_GET["fDiscriminatorThresholdTableName"]))
|
---|
563 | $_GET["fDiscriminatorThresholdTableName"]="Off";
|
---|
564 |
|
---|
565 | if (empty($_GET["fTriggerDelayTableName"]))
|
---|
566 | $_GET["fTriggerDelayTableName"]="Off";
|
---|
567 |
|
---|
568 | if (empty($_GET["fLightConditionsName"]))
|
---|
569 | $_GET["fLightConditionsName"]="Off";
|
---|
570 |
|
---|
571 | if (empty($_GET["fTestFlagName"]))
|
---|
572 | $_GET["fTestFlagName"]="Off";
|
---|
573 | }
|
---|
574 |
|
---|
575 | function InitRunStatus($_GET)
|
---|
576 | {
|
---|
577 | if (empty($_GET["fDataCheckDone"]))
|
---|
578 | $_GET["fDataCheckDone"]="Off";
|
---|
579 |
|
---|
580 | if (empty($_GET["fDataCheckDoneStatus"]))
|
---|
581 | $_GET["fDataCheckDoneStatus"]="0";
|
---|
582 |
|
---|
583 | if (empty($_GET["fCCFileAvail"]))
|
---|
584 | $_GET["fCCFileAvail"]="Off";
|
---|
585 |
|
---|
586 | if (empty($_GET["fCCFileAvailStatus"]))
|
---|
587 | $_GET["fCCFileAvailStatus"]="0";
|
---|
588 |
|
---|
589 | if (empty($_GET["fCaCoFileAvail"]))
|
---|
590 | $_GET["fCaCoFileAvail"]=$first?"On":"";
|
---|
591 |
|
---|
592 | if (empty($_GET["fCaCoFileAvailStatus"]))
|
---|
593 | $_GET["fCaCoFileAvailStatus"]="0";
|
---|
594 |
|
---|
595 | if (empty($_GET["fCaCoFileFound"]))
|
---|
596 | $_GET["fCaCoFileFound"]="Off";
|
---|
597 |
|
---|
598 | if (empty($_GET["fCaCoFileFoundStatus"]))
|
---|
599 | $_GET["fCaCoFileFoundStatus"]="0";
|
---|
600 |
|
---|
601 | if (empty($_GET["fRawFileAvail"]))
|
---|
602 | $_GET["fRawFileAvail"]="Off";
|
---|
603 |
|
---|
604 | if (empty($_GET["fRawFileAvailStatus"]))
|
---|
605 | $_GET["fRawFileAvailStatus"]="0";
|
---|
606 |
|
---|
607 | if (empty($_GET["fTimingCorrection"]))
|
---|
608 | $_GET["fTimingCorrection"]="Off";
|
---|
609 |
|
---|
610 | if (empty($_GET["fTimingCorrectionStatus"]))
|
---|
611 | $_GET["fTimingCorrectionStatus"]="0";
|
---|
612 | }
|
---|
613 |
|
---|
614 | function InitRunInfo($_GET)
|
---|
615 | {
|
---|
616 | InitRunStatus($_GET);
|
---|
617 | InitInfo($_GET);
|
---|
618 | InitFailInfo($_GET);
|
---|
619 |
|
---|
620 | if (empty($_GET["fFormatVersion"]))
|
---|
621 | $_GET["fFormatVersion"]="Off";
|
---|
622 |
|
---|
623 | if (empty($_GET["fRunStop"]))
|
---|
624 | $_GET["fRunStop"]="Off";
|
---|
625 |
|
---|
626 | if (empty($_GET["fAzimuth"]))
|
---|
627 | $_GET["fAzimuth"]="Off";
|
---|
628 |
|
---|
629 | if (empty($_GET["fZenithDistance"]))
|
---|
630 | $_GET["fZenithDistance"]="Off";
|
---|
631 |
|
---|
632 | if (empty($_GET["fRunTypeName"]))
|
---|
633 | $_GET["fRunTypeName"]="Off";
|
---|
634 |
|
---|
635 | if (empty($_GET["fExcludedFDAName"]))
|
---|
636 | $_GET["fExcludedFDAName"]="Off";
|
---|
637 |
|
---|
638 | if (empty($_GET["fMagicNumberName"]))
|
---|
639 | $_GET["fMagicNumberName"]="Off";
|
---|
640 |
|
---|
641 | if (empty($_GET["fMeanTriggerRate"]))
|
---|
642 | $_GET["fMeanTriggerRate"]="Off";
|
---|
643 |
|
---|
644 | if (empty($_GET["fCalibrationScriptName"]))
|
---|
645 | $_GET["fCalibrationScriptName"]="Off";
|
---|
646 |
|
---|
647 | if (empty($_GET["fTestFlagName"]))
|
---|
648 | $_GET["fTestFlagName"]="Off";
|
---|
649 |
|
---|
650 | if (empty($_GET["fDaqStoreRate"]))
|
---|
651 | $_GET["fDaqStoreRate"]="Off";
|
---|
652 |
|
---|
653 | if (empty($_GET["fDaqTriggerRate"]))
|
---|
654 | $_GET["fDaqTriggerRate"]="Off";
|
---|
655 |
|
---|
656 | if (empty($_GET["fL2RatePresc"]))
|
---|
657 | $_GET["fL2RatePresc"]="Off";
|
---|
658 |
|
---|
659 | if (empty($_GET["fL2RateUnpresc"]))
|
---|
660 | $_GET["fL2RateUnpresc"]="Off";
|
---|
661 |
|
---|
662 | if (empty($_GET["fSequenceFirst"]))
|
---|
663 | $_GET["fSequenceFirst"]="Off";
|
---|
664 |
|
---|
665 | if (empty($_GET["fSequenceNo"]))
|
---|
666 | $_GET["fSequenceNo"]="";
|
---|
667 | }
|
---|
668 |
|
---|
669 | function InitSequStatus($_GET)
|
---|
670 | {
|
---|
671 | if (empty($_GET["fSequenceFileWritten"]))
|
---|
672 | $_GET["fSequenceFileWritten"]="Off";
|
---|
673 |
|
---|
674 | if (empty($_GET["fSequenceFileWrittenStatus"]))
|
---|
675 | $_GET["fSequenceFileWrittenStatus"]="0";
|
---|
676 |
|
---|
677 | if (empty($_GET["fAllFilesAvail"]))
|
---|
678 | $_GET["fAllFilesAvail"]="Off";
|
---|
679 |
|
---|
680 | if (empty($_GET["fAllFilesAvailStatus"]))
|
---|
681 | $_GET["fAllFilesAvailStatus"]="0";
|
---|
682 |
|
---|
683 | if (empty($_GET["fCallisto"]))
|
---|
684 | $_GET["fCallisto"]="Off";
|
---|
685 |
|
---|
686 | if (empty($_GET["fCallistoStatus"]))
|
---|
687 | $_GET["fCallistoStatus"]="0";
|
---|
688 |
|
---|
689 | if (empty($_GET["fFillCallisto"]))
|
---|
690 | $_GET["fFillCallisto"]="Off";
|
---|
691 |
|
---|
692 | if (empty($_GET["fFillCallistoStatus"]))
|
---|
693 | $_GET["fFillCallistoStatus"]="0";
|
---|
694 |
|
---|
695 | if (empty($_GET["fStar"]))
|
---|
696 | $_GET["fStar"]="Off";
|
---|
697 |
|
---|
698 | if (empty($_GET["fStarStatus"]))
|
---|
699 | $_GET["fStarStatus"]="0";
|
---|
700 |
|
---|
701 | if (empty($_GET["fFillStar"]))
|
---|
702 | $_GET["fFillStar"]="Off";
|
---|
703 |
|
---|
704 | if (empty($_GET["fFillStarStatus"]))
|
---|
705 | $_GET["fFillStarStatus"]="0";
|
---|
706 | }
|
---|
707 |
|
---|
708 | function InitStarInfo($_GET)
|
---|
709 | {
|
---|
710 | if (empty($_GET["fMeanNumberIslands"]))
|
---|
711 | $_GET["fMeanNumberIslands"]="Off";
|
---|
712 |
|
---|
713 | if (empty($_GET["fPSF"]))
|
---|
714 | $_GET["fPSF"]="Off";
|
---|
715 |
|
---|
716 | if (empty($_GET["fRatio"]))
|
---|
717 | $_GET["fRatio"]="Off";
|
---|
718 |
|
---|
719 | if (empty($_GET["fMuonNumber"]))
|
---|
720 | $_GET["fMuonNumber"]="Off";
|
---|
721 |
|
---|
722 | if (empty($_GET["fEffOnTime"]))
|
---|
723 | $_GET["fEffOnTime"]="Off";
|
---|
724 |
|
---|
725 | if (empty($_GET["fEffOnTime/fRunTime"]))
|
---|
726 | $_GET["fEffOnTime/fRunTime"]="Off";
|
---|
727 |
|
---|
728 | if (empty($_GET["fMuonRate"]))
|
---|
729 | $_GET["fMuonRate"]="Off";
|
---|
730 |
|
---|
731 | if (empty($_GET["fInhomogeneity"]))
|
---|
732 | $_GET["fInhomogeneity"]="Off";
|
---|
733 |
|
---|
734 | if (empty($_GET["fDataRate"]))
|
---|
735 | $_GET["fDataRate"]="Off";
|
---|
736 |
|
---|
737 | if (empty($_GET["fMaxHumidity"]))
|
---|
738 | $_GET["fMaxHumidity"]="Off";
|
---|
739 | }
|
---|
740 |
|
---|
741 | function InitCalInfo($_GET)
|
---|
742 | {
|
---|
743 | if (empty($_GET["fUnreliableInner"]))
|
---|
744 | $_GET["fUnreliableInner"]="Off";
|
---|
745 |
|
---|
746 | if (empty($_GET["fUnsuitableOuter"]))
|
---|
747 | $_GET["fUnsuitableOuter"]="Off";
|
---|
748 |
|
---|
749 | if (empty($_GET["fUnreliableOuter"]))
|
---|
750 | $_GET["fUnreliableOuter"]="Off";
|
---|
751 |
|
---|
752 | if (empty($_GET["fUnsuitableInner"]))
|
---|
753 | $_GET["fUnsuitableInner"]="Off";
|
---|
754 |
|
---|
755 | if (empty($_GET["fIsolatedInner"]))
|
---|
756 | $_GET["fIsolatedInner"]="Off";
|
---|
757 |
|
---|
758 | if (empty($_GET["fIsolatedOuter"]))
|
---|
759 | $_GET["fIsolatedOuter"]="Off";
|
---|
760 |
|
---|
761 | if (empty($_GET["fMeanPedRmsInner"]))
|
---|
762 | $_GET["fMeanPedRmsInner"]="Off";
|
---|
763 |
|
---|
764 | if (empty($_GET["fMeanPedRmsOuter"]))
|
---|
765 | $_GET["fMeanPedRmsOuter"]="Off";
|
---|
766 |
|
---|
767 | if (empty($_GET["fIsolatedMaxCluster"]))
|
---|
768 | $_GET["fIsolatedMaxCluster"]="Off";
|
---|
769 |
|
---|
770 | if (empty($_GET["fArrTimeMeanInner"]))
|
---|
771 | $_GET["fArrTimeMeanInner"]="Off";
|
---|
772 |
|
---|
773 | if (empty($_GET["fArrTimeMeanOuter"]))
|
---|
774 | $_GET["fArrTimeMeanOuter"]="Off";
|
---|
775 |
|
---|
776 | if (empty($_GET["fArrTimeRmsInner"]))
|
---|
777 | $_GET["fArrTimeRmsInner"]="Off";
|
---|
778 |
|
---|
779 | if (empty($_GET["fArrTimeRmsOuter"]))
|
---|
780 | $_GET["fArrTimeRmsOuter"]="Off";
|
---|
781 |
|
---|
782 | if (empty($_GET["fMeanSignalInner"]))
|
---|
783 | $_GET["fMeanSignalInner"]=$first?"Off":"";
|
---|
784 |
|
---|
785 | if (empty($_GET["fMeanSignalOuter"]))
|
---|
786 | $_GET["fMeanSignalOuter"]=$first?"Off":"";
|
---|
787 |
|
---|
788 | if (empty($_GET["fPulsePosMean"]))
|
---|
789 | $_GET["fPulsePosMean"]=$first?"Off":"";
|
---|
790 |
|
---|
791 | if (empty($_GET["fConvFactorInner"]))
|
---|
792 | $_GET["fConvFactorInner"]="Off";
|
---|
793 |
|
---|
794 | if (empty($_GET["fConvFactorOuter"]))
|
---|
795 | $_GET["fConvFactorOuter"]="Off";
|
---|
796 | }
|
---|
797 |
|
---|
798 | function InitSequInfo($_GET)
|
---|
799 | {
|
---|
800 | InitInfo($_GET);
|
---|
801 | InitSequStatus($_GET);
|
---|
802 | InitFailInfo($_GET);
|
---|
803 | InitCalInfo($_GET);
|
---|
804 | InitStarInfo($_GET);
|
---|
805 |
|
---|
806 | if (empty($_GET["fRunTime/60"]))
|
---|
807 | $_GET["fRunTime/60"]="Off";
|
---|
808 |
|
---|
809 | if (empty($_GET["fSequenceLast"]))
|
---|
810 | $_GET["fSequenceLast"]="Off";
|
---|
811 |
|
---|
812 | if (empty($_GET["fAzimuthMin"]))
|
---|
813 | $_GET["fAzimuthMin"]="Off";
|
---|
814 |
|
---|
815 | if (empty($_GET["fAzimuthMax"]))
|
---|
816 | $_GET["fAzimuthMax"]="Off";
|
---|
817 |
|
---|
818 | if (empty($_GET["fZenithDistanceMin"]))
|
---|
819 | $_GET["fZenithDistanceMin"]="Off";
|
---|
820 |
|
---|
821 | if (empty($_GET["fZenithDistanceMax"]))
|
---|
822 | $_GET["fZenithDistanceMax"]="Off";
|
---|
823 |
|
---|
824 | if (empty($_GET["fManuallyChangedName"]))
|
---|
825 | $_GET["fManuallyChangedName"]="Off";
|
---|
826 | }
|
---|
827 |
|
---|
828 | function InitDataSetStatus($_GET)
|
---|
829 | {
|
---|
830 | if (empty($_GET["fDataSetInserted"]))
|
---|
831 | $_GET["fDataSetInserted"]="Off";
|
---|
832 |
|
---|
833 | if (empty($_GET["fDataSetInsertedStatus"]))
|
---|
834 | $_GET["fDataSetInsertedStatus"]="0";
|
---|
835 |
|
---|
836 | if (empty($_GET["fStarFilesAvail"]))
|
---|
837 | $_GET["fStarFilesAvail"]="Off";
|
---|
838 |
|
---|
839 | if (empty($_GET["fStarFilesAvailStatus"]))
|
---|
840 | $_GET["fStarFilesAvailStatus"]="0";
|
---|
841 |
|
---|
842 | if (empty($_GET["fGanymed"]))
|
---|
843 | $_GET["fGanymed"]=$first?"On":"";
|
---|
844 |
|
---|
845 | if (empty($_GET["fGanymedStatus"]))
|
---|
846 | $_GET["fGanymedStatus"]="0";
|
---|
847 |
|
---|
848 | if (empty($_GET["fFillGanymed"]))
|
---|
849 | $_GET["fFillGanymed"]="Off";
|
---|
850 |
|
---|
851 | if (empty($_GET["fFillGanymedStatus"]))
|
---|
852 | $_GET["fFillGanymedStatus"]="0";
|
---|
853 | }
|
---|
854 |
|
---|
855 | function InitDataSetInfo($_GET)
|
---|
856 | {
|
---|
857 | InitDataSetStatus($_GET);
|
---|
858 | InitFailInfo($_GET);
|
---|
859 |
|
---|
860 | if (empty($_GET["fNumResults"]))
|
---|
861 | $_GET["fNumResults"]="50";
|
---|
862 |
|
---|
863 | if (empty($_GET["fSourceName"]))
|
---|
864 | $_GET["fSourceName"]="Off";
|
---|
865 |
|
---|
866 | if (empty($_GET["fComment"]))
|
---|
867 | $_GET["fComment"]="Off";
|
---|
868 |
|
---|
869 | if (empty($_GET["fWobble"]))
|
---|
870 | $_GET["fWobble"]="Off";
|
---|
871 |
|
---|
872 | if (empty($_GET["fExcessEvents"]))
|
---|
873 | $_GET["fExcessEvents"]="Off";
|
---|
874 |
|
---|
875 | if (empty($_GET["fExcessEvents*60/fEffOnTime"]))
|
---|
876 | $_GET["fExcessEvents*60/fEffOnTime"]="Off";
|
---|
877 |
|
---|
878 | if (empty($_GET["fBackgroundEvents*60/fEffOnTime"]))
|
---|
879 | $_GET["fBackgroundEvents*60/fEffOnTime"]="Off";
|
---|
880 |
|
---|
881 | if (empty($_GET["fBackgroundEvents"]))
|
---|
882 | $_GET["fBackgroundEvents"]="Off";
|
---|
883 |
|
---|
884 | if (empty($_GET["fSignalEvents"]))
|
---|
885 | $_GET["fSignalEvents"]="Off";
|
---|
886 |
|
---|
887 | if (empty($_GET["fSignalEvents*60/fEffOnTime"]))
|
---|
888 | $_GET["fSignalEvents*60/fEffOnTime"]="Off";
|
---|
889 |
|
---|
890 | if (empty($_GET["fSignificance"]))
|
---|
891 | $_GET["fSignificance"]="Off";
|
---|
892 |
|
---|
893 | if (empty($_GET["Round(fSignificance/Sqrt(fEffOnTime/3600),2)"]))
|
---|
894 | $_GET["Round(fSignificance/Sqrt(fEffOnTime/3600),2)"]="Off";
|
---|
895 |
|
---|
896 | if (empty($_GET["fScaleFactor"]))
|
---|
897 | $_GET["fScaleFactor"]="Off";
|
---|
898 |
|
---|
899 | if (empty($_GET["fEffOnTime/3600"]))
|
---|
900 | $_GET["fEffOnTime/3600"]="Off";
|
---|
901 | }
|
---|
902 |
|
---|
903 | function InitFindOffData($_GET)
|
---|
904 | {
|
---|
905 | InitSequInfo($_GET);
|
---|
906 |
|
---|
907 | if (empty($_GET["fArrTimeLimitMean"]))
|
---|
908 | $_GET["fArrTimeLimitMean"]="";
|
---|
909 |
|
---|
910 | if (empty($_GET["fArrTimeLimitRms"]))
|
---|
911 | $_GET["fArrTimeLimitRms"]="";
|
---|
912 |
|
---|
913 | if (empty($_GET["fPedRmsInLimitMean"]))
|
---|
914 | $_GET["fPedRmsInLimitMean"]="";
|
---|
915 |
|
---|
916 | if (empty($_GET["fPedRmsInLimitRms"]))
|
---|
917 | $_GET["fPedRmsInLimitRms"]="";
|
---|
918 |
|
---|
919 | if (empty($_GET["fMuonRateLimitMean"]))
|
---|
920 | $_GET["fMuonRateLimitMean"]="";
|
---|
921 |
|
---|
922 | if (empty($_GET["fMuonRateLimitRms"]))
|
---|
923 | $_GET["fMuonRateLimitRms"]="";
|
---|
924 |
|
---|
925 | if (empty($_GET["fImgRateLimitMean"]))
|
---|
926 | $_GET["fImgRateLimitMean"]="";
|
---|
927 |
|
---|
928 | if (empty($_GET["fImgRateLimitRms"]))
|
---|
929 | $_GET["fImgRateLimitRms"]="";
|
---|
930 |
|
---|
931 | if (empty($_GET["fPSFLimitMean"]))
|
---|
932 | $_GET["fPSFLimitMean"]="";
|
---|
933 |
|
---|
934 | if (empty($_GET["fPSFLimitRms"]))
|
---|
935 | $_GET["fPSFLimitRms"]="";
|
---|
936 |
|
---|
937 | if (empty($_GET["fUnsInLimitMean"]))
|
---|
938 | $_GET["fUnsInLimitMean"]="";
|
---|
939 |
|
---|
940 | if (empty($_GET["fZdMinLimitMean"]))
|
---|
941 | $_GET["fZdMinLimitMean"]="";
|
---|
942 |
|
---|
943 | if (empty($_GET["fZdMaxLimitMean"]))
|
---|
944 | $_GET["fZdMaxLimitMean"]="";
|
---|
945 | }
|
---|
946 |
|
---|
947 |
|
---|
948 | ?>
|
---|