Changeset 9194 for trunk/MagicSoft/Mars/datacenter/macros
- Timestamp:
- 12/19/08 15:56:10 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.