Changeset 7542 for trunk


Ignore:
Timestamp:
02/27/06 14:45:00 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7541 r7542  
    6666     - added some code for upcomming automatic event selection
    6767
     68   * datacenter/macros/plotstat.C:
     69     - improved macro description
     70     - added arguments to main function
    6871
    6972
  • trunk/MagicSoft/Mars/NEWS

    r7537 r7542  
    55   - macros: fixed a typo optimwoble.C (SetThetaCut instead SetAlphaCut)
    66     and added the standard Disp-parametrization
     7
     8   - macros: added a new macro datacenter/macros/plotstat.C allowing
     9     to plot statistics about the data processing
    710
    811   - showplot: path inflation for ganymed files was broken
  • 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.