Changeset 9402 for trunk/MagicSoft/Mars/datacenter/macros/plotrundb.C
- Timestamp:
- 03/16/09 15:13:43 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/plotrundb.C
r9389 r9402 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: plotrundb.C,v 1. 8 2009-03-06 20:36:20tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: plotrundb.C,v 1.9 2009-03-16 15:13:43 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 78 78 cond += tel; 79 79 } 80 81 //cond +=" AND (RunData.fSourceKEY=403 OR RunData.fSourceKEY=871) "; 82 80 83 plot.SetCondition(cond); 81 84 … … 94 97 95 98 plot.SetDescription("L1 trigger rate after cleaning;R_{L1}", "CleanL1"); 96 plot.Plot("RunDataCheck.fRateCleanedTrig", -0 , 400, 1);99 plot.Plot("RunDataCheck.fRateCleanedTrig", -0.5, 399.5, 1); 97 100 plot.SetDescription("Sum trigger rate after cleaning;R_{sum}", "CleanSum"); 98 plot.Plot("RunDataCheck.fRateCleanedSum", -0 , 400, 1);101 plot.Plot("RunDataCheck.fRateCleanedSum", -0.5, 399.5, 1); 99 102 plot.SetDescription("Unknown events trigger rate after cleaning;R_{0}", "Clean0"); 100 plot.Plot("RunDataCheck.fRateCleanedNull", -0 , 400, 1);103 plot.Plot("RunDataCheck.fRateCleanedNull", -0.5, 399.5, 1); 101 104 102 105 /* … … 122 125 } 123 126 124 int plotrundb(TString from, TString to, const char *dataset=0 )127 int plotrundb(TString from, TString to, const char *dataset=0, UInt_t num=(UInt_t)-1) 125 128 { 126 129 MSQLMagic serv("sql.rc"); … … 142 145 143 146 MPlot plot(serv); 144 plot.SetDataSet(dataset );147 plot.SetDataSet(dataset, num); 145 148 plot.SetDisplay(d); 146 149 plot.SetRequestRange(from, to); … … 152 155 } 153 156 154 int plotrundb(const char *ds )157 int plotrundb(const char *ds, UInt_t num=(UInt_t)-1) 155 158 { 156 159 MSQLMagic serv("sql.rc"); … … 172 175 173 176 MPlot plot(serv); 174 plot.SetDataSet(ds );177 plot.SetDataSet(ds, num); 175 178 plot.SetDisplay(d); 176 179 plot.SetRequestRange("", "");
Note:
See TracChangeset
for help on using the changeset viewer.