Ignore:
Timestamp:
06/15/08 20:10:34 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r8960 r8961  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: plotdb.C,v 1.43 2008-06-14 18:38:19 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: plotdb.C,v 1.44 2008-06-15 19:09:19 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    229229        gROOT->SetSelectedPad(0);
    230230
     231        TString cname  = fNameTab.IsNull() ? name(name.First('.')+2, name.Length()) : fNameTab;
     232        TString ctitle = fDescription.IsNull() ? name.Data() : fDescription.Data();
     233        if (ctitle.First(';')>0)
     234            ctitle.Remove(ctitle.First(';'), ctitle.Length());
     235
    231236        // Create a TCanvas or open a new tab
    232         TString title = fNameTab.IsNull() ? name(name.First('.')+2, name.Length()) : fNameTab;
    233         TCanvas &c = fDisplay ? fDisplay->AddTab(title) : *new TCanvas;
     237        TCanvas &c = fDisplay ? fDisplay->AddTab(cname, ctitle) : *new TCanvas(cname, ctitle);
    234238        // Set fillcolor, remove border and divide pad
    235239        c.SetFillColor(kWhite);
     240        c.SetFrameBorderMode(0);
    236241        c.SetBorderMode(0);
    237242        c.Divide(1,2);
    238243
    239244        // Output mean and rms to console
    240         cerr << setprecision(4) << setw(10) << title << ":   ";
     245        cerr << setprecision(4) << setw(10) << cname << ":   ";
    241246        if (gt.GetN()==0)
    242247        {
Note: See TracChangeset for help on using the changeset viewer.