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