Ignore:
Timestamp:
06/03/05 11:18:57 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7119 r7129  
    104104
    105105        TGraph g2;
    106         g2.SetNameTitle(name, Form("%s vs ZdMin", name.Data()));
     106        g2.SetNameTitle(name, Form("%s vs <Zd>", name.Data()));
    107107        g2.SetMarkerStyle(kFullDotMedium);
    108108
     
    236236    {
    237237        TString named  = "Sequences.fRunStart";
    238         TString named2 = "Sequences.fZenithDistanceMin";
     238        TString named2 = "(Sequences.fZenithDistanceMin+Sequences.fZenithDistanceMax)/2";
    239239        TString namev  = value;
    240240        TString join   = "fSequenceFirst";
     
    246246        TString valued = named(named.First('.')+1, named.Length());
    247247
    248         TString tabled2 = named2(0, named2.First('.'));
    249         TString valued2 = named2(named2.First('.')+1, named2.Length());
    250 
    251248        TString query;
    252         query  = Form("select %s, %s, %s ",        valued.Data(), valued2.Data(), valuev.Data());
     249        query  = Form("select %s, %s, %s ",    valued.Data(), named2.Data(), valuev.Data());
    253250        query += Form("from %s left join %s ", tabled.Data(), tablev.Data());
    254251        query += Form("on %s.%s=%s.%s ",       tabled.Data(), join.Data(), tablev.Data(), join.Data());
     
    260257        query += "order by fRunStart";
    261258
    262         cout << "q: " << query << endl;
     259        //cout << "q: " << query << endl;
    263260
    264261        TSQLResult *res = fServer.Query(query);
Note: See TracChangeset for help on using the changeset viewer.