Changeset 9402 for trunk/MagicSoft/Mars/datacenter/macros/plotdb.C
- Timestamp:
- 03/16/09 15:13:43 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/plotdb.C
r9385 r9402 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: plotdb.C,v 1.5 5 2009-03-04 18:45:26tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: plotdb.C,v 1.56 2009-03-16 15:13:43 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 379 379 delete fDataSet; 380 380 } 381 void SetDataSet(const TString filename )381 void SetDataSet(const TString filename, UInt_t num=(UInt_t)-1) 382 382 { 383 383 if (fDataSet) … … 392 392 return; 393 393 394 fDataSet = new MDataSet(filename );394 fDataSet = new MDataSet(filename, num); 395 395 fPrimaryNumber="Sequences.fSequenceFirst"; 396 396 } … … 427 427 case kNone: 428 428 case kGroupByPrimary: 429 query += Form("%s AS %s", valued.Data(), valued.Data()+1);429 query += Form("%s AS %s", named.Data(), valued.Data()+1); 430 430 break; 431 431 case kGroupByHour: … … 701 701 } 702 702 703 int plotdb(TString from, TString to, const char *dataset=0 )703 int plotdb(TString from, TString to, const char *dataset=0, UInt_t num=(UInt_t)-1) 704 704 { 705 705 MSQLMagic serv("sql.rc"); … … 721 721 722 722 MPlot plot(serv); 723 plot.SetDataSet(dataset );723 plot.SetDataSet(dataset, num); 724 724 plot.SetDisplay(d); 725 725 plot.SetRequestRange(from, to); … … 731 731 } 732 732 733 int plotdb(const char *ds, TString path)733 int plotdb(const char *ds, UInt_t num, TString path="/magic/sequences") 734 734 { 735 735 MSQLMagic serv("sql.rc"); … … 751 751 752 752 MPlot plot(serv); 753 plot.SetDataSet(ds );753 plot.SetDataSet(ds, num); 754 754 plot.SetDisplay(d); 755 755 plot.SetRequestRange("", ""); … … 759 759 760 760 return 1; 761 } 762 763 int plotdb(const char *ds, TString path="/magic/sequences") 764 { 765 return plotdb(ds, (UInt_t)-1, path); 761 766 } 762 767
Note:
See TracChangeset
for help on using the changeset viewer.