Changeset 7542 for trunk/MagicSoft/Mars/datacenter/macros
- Timestamp:
- 02/27/06 14:45:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/plotstat.C
r7530 r7542 30 30 // 31 31 // This macro is used to plot processing statistics from the db. 32 // 33 // Normally all period are processed. If you want to restric processing to 34 // less periods, use: 35 // > root plotstat.C+(20, -1) 36 // means that all periods since 20 are taken into account. The two numbers 37 // denote the first and last period taken into account, -1 means 38 // open start or open end. 32 39 // 33 40 // Make sure, that database and password are corretly set in a resource … … 251 258 } 252 259 253 Bool_t plot(MStatusDisplay &d, MSQLServer &serv )260 Bool_t plot(MStatusDisplay &d, MSQLServer &serv, Int_t first, Int_t last) 254 261 { 255 262 TString query[8]; … … 311 318 MTime past; 312 319 past.Set(2004, 1, 1, 13, 1); 313 314 int first=-1;315 int last =-1;316 320 317 321 if (first<0) … … 520 524 } 521 525 522 int plotstat( )526 int plotstat(Int_t first=-1, Int_t last=-1) 523 527 { 524 528 TEnv env("sql.rc"); … … 541 545 d->SetTitle(serv.GetName()); 542 546 543 plot(*d, serv );547 plot(*d, serv, first, last); 544 548 545 549 //d->SaveAsRoot("plotstat.root");
Note:
See TracChangeset
for help on using the changeset viewer.