Changeset 7183 for trunk/MagicSoft
- Timestamp:
- 07/13/05 13:54:05 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7182 r7183 21 21 22 22 -*-*- END OF LINE -*-*- 23 24 2005/07/12 Daniela Dorner 25 26 * datacenter/macros/buildsequenceentries.C: 27 - fixed bug, that was caused by changes in TExMap in root_v4.04.02 28 29 23 30 24 31 2005/07/12 Daniela Dorner -
trunk/MagicSoft/Mars/datacenter/macros/buildsequenceentries.C
r7165 r7183 335 335 Bool_t NewSequence(MSQLServer &serv, Int_t from, Int_t to, Int_t src, Bool_t dummy) 336 336 { 337 cout << "Found Sequence (" << from << ", " << to << ") ... checking ..." << flush;337 cout << "Found Sequence (" << from << ", " << to << ") ... checking runs..." << flush; 338 338 339 339 if (!CheckSequence(serv, from, to, src, 2)) … … 442 442 MTime *tm = new MTime; 443 443 tm->SetSqlDateTime((*row)[2]); 444 map.Add((ULong_t)map.GetSize(), (Long_t) nblocks, (Long_t)tm);444 map.Add((ULong_t)map.GetSize(), (Long_t)tm, (Long_t)nblocks); 445 445 } 446 446 } … … 451 451 { 452 452 MTime *tm = new MTime(lasttime); 453 map.Add((ULong_t)map.GetSize(), (Long_t) nblocks, (Long_t)tm);453 map.Add((ULong_t)map.GetSize(), (Long_t)tm, (Long_t)nblocks); 454 454 455 455 stop = last; … … 505 505 while (nmap.Next(key, val)) 506 506 { 507 MTime *t = (MTime*) val;507 MTime *t = (MTime*)key; 508 508 509 509 if (nmin==-1) 510 510 { 511 nmin = key;512 min = *(MTime*) val;511 nmin = val; 512 min = *(MTime*)key; 513 513 dmin = fabs((Double_t)*t-(Double_t)tstart); 514 514 } … … 516 516 if (fabs((Double_t)*t-(Double_t)tstart) < dmin) 517 517 { 518 nmin = key;518 nmin = val; 519 519 dmin = fabs((Double_t)*t-(Double_t)tstart); 520 520 min = *t; … … 522 522 if (fabs((Double_t)*t-(Double_t)tstop) < dmin) 523 523 { 524 nmin = key;524 nmin = val; 525 525 dmin = fabs((Double_t)*t-(Double_t)tstop); 526 526 min = *t; … … 596 596 return rc ? 1 : 0; 597 597 } 598 599 int buildsequenceentries() 600 { 601 TEnv env("sql.rc"); 602 603 MSQLServer serv(env); 604 if (!serv.IsConnected()) 605 { 606 cout << "ERROR - Connection to database failed." << endl; 607 return 0; 608 } 609 610 TString query="SELECT fDate FROM SequenceBuildStatus"; 611 612 cout << "Q: " << query << endl; 613 614 TSQLResult *res = serv.Query(query); 615 if (!res) 616 return 0; 617 618 TSQLRow *row=0; 619 while ((row=res->Next())) 620 { 621 cout << "date: " << (*row)[0] << endl; 622 buildsequenceentries((*row)[0]); 623 } 624 625 return 1; 626 }
Note:
See TracChangeset
for help on using the changeset viewer.