Changeset 7625


Ignore:
Timestamp:
04/04/06 17:29:06 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7621 r7625  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2006/04/04 Thomas Bretz
     22
     23   * datacenter/macros/plotdb.C:
     24     - if no dataset and no time-interval is given only sequences with
     25       an effective on-time above five minutes are plotted anymore
     26
     27
    2028
    2129 2006/03/21 Daniela Dorner
  • trunk/MagicSoft/Mars/NEWS

    r7618 r7625  
    2727     for optimization (kWeakSource) which is suggested by the Berlin
    2828     people for weak sources.
     29
     30   - macros: plotdc.C: if no dataset and no time-interval is given only
     31     sequences with an effective on-time above five minutes are plotted
     32     anymore
    2933
    3034   - ganymed: In the second loop the MHNewImagePar histograms disapeared.
  • 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.