Changeset 9303 for trunk/MagicSoft/Mars/mmain
- Timestamp:
- 02/07/09 20:48:57 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmain/MEventDisplay.cc
r9219 r9303 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MEventDisplay.cc,v 1.6 6 2009-01-14 12:31:36tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MEventDisplay.cc,v 1.67 2009-02-07 20:47:44 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 55 55 // 56 56 #include "MGList.h" // MGList 57 #include "MString.h" 57 58 58 59 #include "MLog.h" … … 442 443 // create gui elements 443 444 // 444 TGLabel *file = new TGLabel(top1, new TGString( Form("%s#%s", filename, treename)));445 TGLabel *file = new TGLabel(top1, new TGString(MString::Format("%s#%s", filename, treename))); 445 446 fList->Add(file); 446 447 … … 657 658 // 658 659 *fLog << all; 659 fLog->Separator( Form("Entry %d", reader->GetNumEntry()+1));660 fLog->Separator(MString::Format("Entry %d", reader->GetNumEntry()+1)); 660 661 ((MHillas*) plist->FindObject("MHillas"))->Print(*geom); 661 662 ((MHillasExt*) plist->FindObject("MHillasExt"))->Print(*geom); … … 673 674 674 675 TGTextEntry *entry = (TGTextEntry*)fList->FindWidget(kEvtNumber); 675 entry->SetText( Form("%d", reader->GetNumEntry()+1));676 entry->SetText(MString::Format("%d", reader->GetNumEntry()+1)); 676 677 } 677 678 … … 757 758 758 759 MReadTree *reader = (MReadTree*)fEvtLoop->FindTask("MRead"); 759 TGString *txt = new TGString( Form("of %d", reader->GetEntries()));760 TGString *txt = new TGString(MString::Format("of %d", reader->GetEntries())); 760 761 fNumOfEvts->SetText(txt); 761 762 … … 838 839 if (!o) 839 840 break; 840 fCanvas->SetName( Form("%p;%p;PixelContent", o->GetHist(), c->GetPad(1)->GetPad(1)));841 fCanvas->SetName(MString::Format("%p;%p;PixelContent", o->GetHist(), c->GetPad(1)->GetPad(1))); 841 842 } 842 843 break;
Note:
See TracChangeset
for help on using the changeset viewer.