Changeset 9179 for trunk


Ignore:
Timestamp:
11/27/08 19:01:34 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r9178 r9179  
    3030     - in case of sum trigger skip only events with only sum-trigger not
    3131       all events with sum-trigger for effective on time calculation
     32
     33   * datacenter/plotdb.C:
     34     - fixed a problem with the order in the select if case of Groups
     35     - removed automatic Postscript storage
     36     - added some plots about currents
    3237
    3338
  • trunk/MagicSoft/Mars/datacenter/macros/plotdb.C

    r9120 r9179  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: plotdb.C,v 1.52 2008-08-15 12:14:52 dorner Exp $
     2! $Name: not supported by cvs2svn $:$Id: plotdb.C,v 1.53 2008-11-27 19:01:32 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    469469            v.Insert(p<=0?v.Length():p+1, ")");
    470470
    471             query += ", AVG";
    472             query += v;
    473471            query += ", AVG(";
    474472            query += fSecondary;
    475             query += "), STD";
     473            query += "), AVG(";
    476474            query += v;
    477             query += ", STD(";
     475            query += "), STD(";
    478476            query += fSecondary;
     477            query += "), STD(";
     478            query += v;
    479479            query += ")";
    480480        }
     
    518518
    519519        // ------------------------------
    520 
    521520        TSQLResult *res = fServer.Query(query);
    522521        if (!res)
     
    542541void plotalldb(MPlot &plot)
    543542{
    544     //plot.SetGroupBy(MPlot::kGroupByNight);
     543    //plot.SetGroupBy(MPlot::kGroupByMonth);
    545544    //plot.SetDataSet("dataset.txt");
    546545
     
    634633    plot.Plot("Star.fMeanNumberIslands",       0.5, 4.5, 0.01);
    635634    //weather
     635    plot.SetCondition("");
    636636    plot.SetDescription("Average Temperature [\\circ C];T [\\circ C]", "Temp");
    637637    plot.Plot("Star.fAvgTemperature",        -5, 25, 1);
     
    648648    plot.SetDescription("Average Wind Speed [km/h];v [km/h]", "Wind");
    649649    plot.Plot("Star.fAvgWindSpeed",        0, 50, 1);
     650
     651    //currents
     652    plot.SetSecondary("Calibration.fMeanPedRmsInner as '<PedRMS_{I}>'");
     653    plot.SetDescription("Minimum average DC current [nA];<I_{min}> [nA]", "MinDC");
     654    plot.Plot("Star.fMinCurrents",        0, 25, 0.1);
     655    plot.SetDescription("Median average DC current [nA];<I_{med}> [nA]", "MedDC");
     656    plot.Plot("Star.fMedCurrents",        0, 25, 0.1);
     657    plot.SetDescription("Maximum average DC current [nA];<I_{max}> [nA]", "MaxDC");
     658    plot.Plot("Star.fMaxCurrents",        0, 25, 0.1);
     659    plot.SetSecondary("(Sequences.fZenithDistanceMin+Sequences.fZenithDistanceMax)/2 as '<Zd>'");
    650660
    651661    //muon
     
    715725    plotalldb(plot);
    716726    d->SaveAsRoot("plotdb.root");
    717     d->SaveAsPS("plotdb.ps");
     727    //d->SaveAsPS("plotdb.ps");
    718728
    719729    return 1;
     
    805815    plotalldb(plot);
    806816    d->SaveAsRoot("plotdb.root");
    807     d->SaveAsPS("plotdb.ps");
     817    //d->SaveAsPS("plotdb.ps");
    808818
    809819    return 1;
Note: See TracChangeset for help on using the changeset viewer.