Changeset 9194 for trunk/MagicSoft/Mars
- Timestamp:
- 12/19/08 15:56:10 (16 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r9191 r9194 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2008/12/19 Daniel Hoehne-Moench 22 23 * datacenter/macros/filldotrun.C: 24 - implemented SuperArehucas version 081204-0 incl. sumtrigger flag 25 * datacenter/db/magicdefs.php, datacenter/db/menu.php: 26 - implemented sumtrigger flag (in runinfo and sequinfo menus) 27 28 20 29 21 30 2008/12/09 Thomas Bretz -
trunk/MagicSoft/Mars/datacenter/db/magicdefs.php
r9150 r9194 74 74 "fManuallyChangedName" => CheckWhere("fManuallyChangedKEY", $_GET), 75 75 "fObservationModeName" => CheckWhere("fObservationModeKEY", $_GET), 76 "fSumTriggerFlagName" => CheckWhere("fSumTriggerFlagKEY", $_GET), 76 77 "fDiscriminatorThresholdTableName" => CheckWhere("fDiscriminatorThresholdTableKEY", $_GET), 77 78 "fTriggerDelayTableName" => CheckWhere("fTriggerDelayTableKEY", $_GET), … … 100 101 "fManuallyChangedName" => CheckGroup("fManuallyChangedKEY", $_GET), 101 102 "fObservationModeName" => CheckGroup("fObservationModeKEY", $_GET), 103 "fSumTriggerFlagName" => CheckGroup("fSumTriggerFlagKEY", $_GET), 102 104 "fDiscriminatorThresholdTableName" => CheckGroup("fDiscriminatorThresholdTableKEY", $_GET), 103 105 "fTriggerDelayTableName" => CheckGroup("fTriggerDelayTableKEY", $_GET), … … 167 169 "fManuallyChangedName" => "Manually<br>Changed", 168 170 "fObservationModeName" => "Obs.<br>Mode", 171 "fSumTriggerFlagName" => "SumTrigger<br>Flag", 169 172 "fLastUpdate" => "LastUpd", 170 173 "fSequenceFirst" => "Sequ", … … 483 486 "fManuallyChangedName" => $fromtable . ".fManuallyChangedKEY", 484 487 "fObservationModeName" => $fromtable . ".fObservationModeKEY", 488 "fSumTriggerFlagName" => $fromtable . ".fSumTriggerFlagKEY", 485 489 "fDiscriminatorThresholdTableName" => $fromtable . ".fDiscriminatorThresholdTableKEY", 486 490 "fTriggerDelayTableName" => $fromtable . ".fTriggerDelayTableKEY", … … 538 542 "fManuallyChangedName" => "ManuallyChanged.fManuallyChangedName", 539 543 "fObservationModeName" => "ObservationMode.fObservationModeName", 544 "fSumTriggerFlagName" => "SumTriggerFlag.fSumTriggerFlagName", 540 545 "fTriggerDelayTableName" => "TriggerDelayTable.fTriggerDelayTableName", 541 546 "fDiscriminatorThresholdTableName" => "DiscriminatorThresholdTable.fDiscriminatorThesholdTableName", … … 703 708 "fManuallyChangedName" => " LEFT JOIN ManuallyChanged USING(fManuallyChangedKEY) ", 704 709 "fObservationModeName" => " LEFT JOIN ObservationMode USING(fObservationModeKEY) ", 710 "fSumTriggerFlagName" => " LEFT JOIN SumTriggerFlag USING(fSumTriggerFlagKEY) ", 705 711 "fDiscriminatorThresholdTableName" => " LEFT JOIN DiscriminatorThresholdTable USING(fDiscriminatorThresholdTableKEY) ", 706 712 "fTriggerDelayTableName" => " LEFT JOIN TriggerDelayTable USING(fTriggerDelayTableKEY) ", -
trunk/MagicSoft/Mars/datacenter/db/menu.php
r9184 r9194 93 93 printf(" </td><td>\n"); 94 94 PrintPullDown($host, $user, $pw, $db, "ObservationMode", "fObservationModeName", "fObservationModeKEY", "Obs. Mode"); 95 printf(" </td><td>\n"); 96 printf(" </td><td>\n"); 97 PrintPullDown($host, $user, $pw, $db, "SumTriggerFlag", "fSumTriggerFlagName", "fSumTriggerFlagKEY", "SumTrigger Flag"); 95 98 printf(" </td></tr></table>\n"); 96 99 printf(" </div><p>\n"); … … 155 158 printf(" </td><td>\n"); 156 159 PrintPullDown($host, $user, $pw, $db, "TriggerDelayTable", "fTriggerDelayTableName", "fTriggerDelayTableKEY", "Trigger Delay Table"); 160 printf(" </td></tr><tr><td>\n"); 161 printf(" </td><td>\n"); 162 printf(" </td><td>\n"); 163 PrintPullDown($host, $user, $pw, $db, "SumTriggerFlag", "fSumTriggerFlag", "fSumTriggerFlagKEY", "SumTrigger Flag"); 157 164 // printf(" </td><td>\n"); 158 165 // PrintPullDown($host, $user, $pw, $db, "ManuallyChanged", "fManuallyChangedName", "fManuallyChangedKEY", "Manually changed"); … … 731 738 $_GET["fObservationModeName"]="Off"; 732 739 740 if (empty($_GET["fSumTriggerFlagName"])) 741 $_GET["fSumTriggerFlagName"]="Off"; 742 733 743 if (empty($_GET["fMeanTriggerRate"])) 734 744 $_GET["fMeanTriggerRate"]="Off"; … … 995 1005 $_GET["fObservationModeName"]="Off"; 996 1006 1007 if (empty($_GET["fSumTriggerFlagName"])) 1008 $_GET["fSumTriggerFlagName"]="Off"; 1009 997 1010 // if (empty($_GET["fManuallyChangedName"])) 998 1011 // $_GET["fManuallyChangedName"]="Off"; -
trunk/MagicSoft/Mars/datacenter/macros/filldotrun.C
r9139 r9194 41 41 // 060330-0, 060401-0, 060808-0 42 42 // 070416-0, 43 // 080220-0, 080519-0, 080912-0 43 // 080220-0, 080519-0, 080912-0, 081204-0 44 44 // 45 45 // Usage: … … 123 123 version!=200603300 && version!=200604010 && version!=200608080 && 124 124 version!=200704160 && 125 version!=200802200 && version!=200805190 && version!=200809120) 125 version!=200802200 && version!=200805190 && version!=200809120 && 126 version!=200812040) 126 127 { 127 128 cout << filename << ": File Version unknown - please update the macro!" << endl; … … 537 538 strng.ReadToDelim(fin, ' '); 538 539 } 540 if (version<=200809120) 541 strng.ReadToDelim(fin, '\n'); 542 else 543 strng.ReadToDelim(fin, ' '); 544 } 545 546 Int_t sumtriggerflagkey=1; 547 if (version>=200812040) 548 { 549 // ========= Col 52: SumTrigger flag ========= 539 550 strng.ReadToDelim(fin, '\n'); 551 if (strng.Contains("???")) 552 strng="n/a"; 553 554 sumtriggerflagkey = serv.QueryKeyOfName("SumTriggerFlag", strng); 555 if (sumtriggerflagkey<0) 556 { 557 strng.ReadLine(fin); 558 continue; 559 } 560 540 561 } 541 562 … … 545 566 // ================================================================ 546 567 547 //assem lbe the query that is needed to insert the values of this run568 //assemble the query that is needed to insert the values of this run 548 569 TString query; 549 570 query += Form("fTelescopeNumber=%d, ", telnumber); … … 555 576 query += Form("fNumEvents=%d, ", evtno); 556 577 query += Form("fRunStart=\"%s %s\", ", startdate.Data(), starttime.Data()); 557 query += Form("fRunStop=\"%s %s\", ", stopdate.Data(),stoptime.Data());558 query += Form("fL1TriggerTableKEY=%d, ", l1triggerkey);559 query += Form("fL2TriggerTableKEY=%d, ", l2triggerkey);560 query += Form("fTestFlagKEY=%d, ", testflagkey);578 query += Form("fRunStop=\"%s %s\", ", stopdate.Data(), stoptime.Data()); 579 query += Form("fL1TriggerTableKEY=%d, ", l1triggerkey); 580 query += Form("fL2TriggerTableKEY=%d, ", l2triggerkey); 581 query += Form("fTestFlagKEY=%d, ", testflagkey); 561 582 query += Form("fCalibrationScriptKEY=%d, ", calibrationscriptkey); 562 583 query += Form("fTriggerDelayTableKEY=%d, ", triggerdelaytablekey); 563 584 query += Form("fDiscriminatorThresholdTableKEY=%d, ", dttablekey); 564 query += Form("fLightConditionsKEY=%d, ", lightcondkey); 565 query += Form("fHvSettingsKEY=%d, ", hvkey); 566 query += Form("fObservationModeKEY=%d, ", observationmodekey); 585 query += Form("fLightConditionsKEY=%d, ", lightcondkey); 586 query += Form("fHvSettingsKEY=%d, ", hvkey); 587 query += Form("fObservationModeKEY=%d, ", observationmodekey); 588 query += Form("fSumTriggerFlagKEY=%d, ", sumtriggerflagkey); 567 589 if (!TMath::IsNaN(zd) && TMath::Finite(zd)) 568 590 query += Form("fZenithDistance=%d, ", TMath::Nint(zd));
Note:
See TracChangeset
for help on using the changeset viewer.