Changeset 7129 for trunk/MagicSoft/Mars/datacenter/macros/plotdb.C
- Timestamp:
- 06/03/05 11:18:57 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/plotdb.C
r7119 r7129 104 104 105 105 TGraph g2; 106 g2.SetNameTitle(name, Form("%s vs ZdMin", name.Data()));106 g2.SetNameTitle(name, Form("%s vs <Zd>", name.Data())); 107 107 g2.SetMarkerStyle(kFullDotMedium); 108 108 … … 236 236 { 237 237 TString named = "Sequences.fRunStart"; 238 TString named2 = " Sequences.fZenithDistanceMin";238 TString named2 = "(Sequences.fZenithDistanceMin+Sequences.fZenithDistanceMax)/2"; 239 239 TString namev = value; 240 240 TString join = "fSequenceFirst"; … … 246 246 TString valued = named(named.First('.')+1, named.Length()); 247 247 248 TString tabled2 = named2(0, named2.First('.'));249 TString valued2 = named2(named2.First('.')+1, named2.Length());250 251 248 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()); 253 250 query += Form("from %s left join %s ", tabled.Data(), tablev.Data()); 254 251 query += Form("on %s.%s=%s.%s ", tabled.Data(), join.Data(), tablev.Data(), join.Data()); … … 260 257 query += "order by fRunStart"; 261 258 262 cout << "q: " << query << endl;259 //cout << "q: " << query << endl; 263 260 264 261 TSQLResult *res = fServer.Query(query);
Note:
See TracChangeset
for help on using the changeset viewer.