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