- Timestamp:
- 11/27/08 19:01:34 (16 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r9178 r9179 30 30 - in case of sum trigger skip only events with only sum-trigger not 31 31 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 32 37 33 38 -
trunk/MagicSoft/Mars/datacenter/macros/plotdb.C
r9120 r9179 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: plotdb.C,v 1.5 2 2008-08-15 12:14:52 dornerExp $2 ! $Name: not supported by cvs2svn $:$Id: plotdb.C,v 1.53 2008-11-27 19:01:32 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 469 469 v.Insert(p<=0?v.Length():p+1, ")"); 470 470 471 query += ", AVG";472 query += v;473 471 query += ", AVG("; 474 472 query += fSecondary; 475 query += "), STD";473 query += "), AVG("; 476 474 query += v; 477 query += " , STD(";475 query += "), STD("; 478 476 query += fSecondary; 477 query += "), STD("; 478 query += v; 479 479 query += ")"; 480 480 } … … 518 518 519 519 // ------------------------------ 520 521 520 TSQLResult *res = fServer.Query(query); 522 521 if (!res) … … 542 541 void plotalldb(MPlot &plot) 543 542 { 544 //plot.SetGroupBy(MPlot::kGroupBy Night);543 //plot.SetGroupBy(MPlot::kGroupByMonth); 545 544 //plot.SetDataSet("dataset.txt"); 546 545 … … 634 633 plot.Plot("Star.fMeanNumberIslands", 0.5, 4.5, 0.01); 635 634 //weather 635 plot.SetCondition(""); 636 636 plot.SetDescription("Average Temperature [\\circ C];T [\\circ C]", "Temp"); 637 637 plot.Plot("Star.fAvgTemperature", -5, 25, 1); … … 648 648 plot.SetDescription("Average Wind Speed [km/h];v [km/h]", "Wind"); 649 649 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>'"); 650 660 651 661 //muon … … 715 725 plotalldb(plot); 716 726 d->SaveAsRoot("plotdb.root"); 717 d->SaveAsPS("plotdb.ps");727 //d->SaveAsPS("plotdb.ps"); 718 728 719 729 return 1; … … 805 815 plotalldb(plot); 806 816 d->SaveAsRoot("plotdb.root"); 807 d->SaveAsPS("plotdb.ps");817 //d->SaveAsPS("plotdb.ps"); 808 818 809 819 return 1;
Note:
See TracChangeset
for help on using the changeset viewer.