Ignore:
Timestamp:
02/27/06 14:45:00 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/macros/plotstat.C

    r7530 r7542  
    3030//
    3131// 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.
    3239//
    3340// Make sure, that database and password are corretly set in a resource
     
    251258}
    252259
    253 Bool_t plot(MStatusDisplay &d, MSQLServer &serv)
     260Bool_t plot(MStatusDisplay &d, MSQLServer &serv, Int_t first, Int_t last)
    254261{
    255262    TString query[8];
     
    311318    MTime past;
    312319    past.Set(2004, 1, 1, 13, 1);
    313 
    314     int first=-1;
    315     int last =-1;
    316320
    317321    if (first<0)
     
    520524}
    521525
    522 int plotstat()
     526int plotstat(Int_t first=-1, Int_t last=-1)
    523527{
    524528    TEnv env("sql.rc");
     
    541545    d->SetTitle(serv.GetName());
    542546
    543     plot(*d, serv);
     547    plot(*d, serv, first, last);
    544548
    545549    //d->SaveAsRoot("plotstat.root");
Note: See TracChangeset for help on using the changeset viewer.