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