Ignore:
Timestamp:
03/16/09 15:13:43 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r9389 r9402  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: plotrundb.C,v 1.8 2009-03-06 20:36:20 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: plotrundb.C,v 1.9 2009-03-16 15:13:43 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    7878        cond += tel;
    7979    }
     80
     81    //cond +=" AND (RunData.fSourceKEY=403 OR RunData.fSourceKEY=871) ";
     82
    8083    plot.SetCondition(cond);
    8184
     
    9497
    9598    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);
    97100    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);
    99102    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);
    101104
    102105/*
     
    122125}
    123126
    124 int plotrundb(TString from, TString to, const char *dataset=0)
     127int plotrundb(TString from, TString to, const char *dataset=0, UInt_t num=(UInt_t)-1)
    125128{
    126129    MSQLMagic serv("sql.rc");
     
    142145
    143146    MPlot plot(serv);
    144     plot.SetDataSet(dataset);
     147    plot.SetDataSet(dataset, num);
    145148    plot.SetDisplay(d);
    146149    plot.SetRequestRange(from, to);
     
    152155}
    153156
    154 int plotrundb(const char *ds)
     157int plotrundb(const char *ds, UInt_t num=(UInt_t)-1)
    155158{
    156159    MSQLMagic serv("sql.rc");
     
    172175
    173176    MPlot plot(serv);
    174     plot.SetDataSet(ds);
     177    plot.SetDataSet(ds, num);
    175178    plot.SetDisplay(d);
    176179    plot.SetRequestRange("", "");
Note: See TracChangeset for help on using the changeset viewer.