Changeset 8961 for trunk/MagicSoft/Mars/datacenter/macros
- Timestamp:
- 06/15/08 20:10:34 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/plotdb.C
r8960 r8961 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: plotdb.C,v 1.4 3 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 $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 229 229 gROOT->SetSelectedPad(0); 230 230 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 231 236 // 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); 234 238 // Set fillcolor, remove border and divide pad 235 239 c.SetFillColor(kWhite); 240 c.SetFrameBorderMode(0); 236 241 c.SetBorderMode(0); 237 242 c.Divide(1,2); 238 243 239 244 // Output mean and rms to console 240 cerr << setprecision(4) << setw(10) << title << ": ";245 cerr << setprecision(4) << setw(10) << cname << ": "; 241 246 if (gt.GetN()==0) 242 247 {
Note:
See TracChangeset
for help on using the changeset viewer.