Ignore:
Timestamp:
04/04/06 17:29:06 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7574 r7625  
    350350        query += Form("on %s.%s=%s.%s ",       tabled.Data(), join.Data(), tablev.Data(), join.Data());
    351351
    352         if (!fRequestFrom.IsNull() && !fRequestTo.IsNull())
    353             query += Form("where fRunStart between '%s' and '%s' ",
     352        const Bool_t interval = !fRequestFrom.IsNull() && !fRequestTo.IsNull();
     353
     354        if (!fDataSet && !interval)
     355        {
     356            if (!query.Contains("Star.fSequenceFirst"))
     357                query += "left join Star on Sequences.fSequenceFirst=Star.fSequenceFirst ";
     358            query += "where Star.fEffOnTime>300 ";
     359        }
     360
     361        if (interval)
     362        {
     363            query += query.Contains(" where ") ? "and " : "where ";
     364            query += Form("fRunStart between '%s' and '%s' ",
    354365                          fRequestFrom.Data(), fRequestTo.Data());
     366        }
    355367
    356368        query += "order by fRunStart";
    357 
    358         //cout << "q: " << query << endl;
    359369
    360370        TSQLResult *res = fServer.Query(query);
Note: See TracChangeset for help on using the changeset viewer.