Ignore:
Timestamp:
11/17/05 09:52:47 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7406 r7407  
    339339}
    340340
    341 void plotdb(TString from="", TString to="")
     341int plotdb(TString from="", TString to="")
    342342{
    343343    TEnv env("sql.rc");
     
    347347    {
    348348        cout << "ERROR - Connection to database failed." << endl;
    349         return;
     349        return 0;
    350350    }
    351351
     
    366366    d->SaveAsRoot("plotdb.root");
    367367    d->SaveAsPS("plotdb.ps");
     368
     369    return 1;
    368370}
    369371
    370 void plotdb(Int_t period)
     372int plotdb(Int_t period)
    371373{
    372374    TEnv env("sql.rc");
     
    376378    {
    377379        cout << "ERROR - Connection to database failed." << endl;
    378         return;
     380        return 0;
    379381    }
    380382
     
    395397    d->SaveAsRoot("plotdb.root");
    396398    d->SaveAsPS("plotdb.ps");
     399
     400    return 1;
    397401}
Note: See TracChangeset for help on using the changeset viewer.