Changeset 9302 for trunk/MagicSoft/Mars/mhbase
- Timestamp:
- 02/07/09 20:40:28 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mhbase
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhbase/MFillH.cc
r9153 r9302 93 93 #include "MLogManip.h" 94 94 95 #include "MString.h" 96 95 97 #include "MH.h" 96 98 #include "MHArray.h" … … 599 601 if (fDisplay && fDisplay->HasCanvas(fCanvas)) 600 602 { 601 const TString opt( Form("nonew %s", fDrawOption.Data()));603 const TString opt(MString::Format("nonew %s", fDrawOption.Data())); 602 604 fCanvas->cd(); 603 605 // Remove the old class to prevent clashes calling -
trunk/MagicSoft/Mars/mhbase/MH.cc
r9195 r9302 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MH.cc,v 1.4 2 2008-12-21 18:09:49tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MH.cc,v 1.43 2009-02-07 20:40:12 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 74 74 #include "MLogManip.h" 75 75 76 #include "MString.h" 77 76 78 #include "MParList.h" 77 79 #include "MParContainer.h" … … 156 158 157 159 if (list->FindObject(name)) 158 name += Form(" <%d>", list->GetSize()+1);160 name += MString::Format(" <%d>", list->GetSize()+1); 159 161 160 162 if (!usescreenfactor) … … 1507 1509 { 1508 1510 *fLog << " " << setw(7) << n << " ("; 1509 *fLog << Form("%5.1f", 100.*n/GetNumExecutions());1511 *fLog << MString::Format("%5.1f", 100.*n/GetNumExecutions()); 1510 1512 *fLog << "%) Evts skipped: " << str << endl; 1511 1513 } -
trunk/MagicSoft/Mars/mhbase/MH3.cc
r9195 r9302 166 166 #include "MLog.h" 167 167 #include "MLogManip.h" 168 169 #include "MString.h" 168 170 169 171 #include "MParList.h" … … 643 645 if (gPad) 644 646 { 645 const TString pfx( Form("%sProfX", fHist->GetName()));646 const TString pfy( Form("%sProfY", fHist->GetName()));647 const TString pfx(MString::Format("%sProfX", fHist->GetName())); 648 const TString pfy(MString::Format("%sProfY", fHist->GetName())); 647 649 648 650 TProfile *p = 0; 649 651 if ((p=dynamic_cast<TProfile*>(gPad->FindObject(pfx)))) 650 p->SetName( Form("%sProfX", name));652 p->SetName(MString::Format("%sProfX", name)); 651 653 if ((p=dynamic_cast<TProfile*>(gPad->FindObject(pfy)))) 652 p->SetName( Form("%sProfY", name));654 p->SetName(MString::Format("%sProfY", name)); 653 655 } 654 656 … … 851 853 MH::SetPalette("pretty"); 852 854 853 const TString pfx( Form("%sProfX", fHist->GetName()));855 const TString pfx(MString::Format("%sProfX", fHist->GetName())); 854 856 if ((p=dynamic_cast<TProfile*>(gPad->FindObject(pfx)))) 855 857 { … … 859 861 } 860 862 861 const TString pfy( Form("%sProfY", fHist->GetName()));863 const TString pfy(MString::Format("%sProfY", fHist->GetName())); 862 864 if ((p=dynamic_cast<TProfile*>(gPad->FindObject(pfy)))) 863 865 { … … 969 971 if (profx) 970 972 { 971 const TString pfx( Form("%sProfX", fHist->GetName()));973 const TString pfx(MString::Format("%sProfX", fHist->GetName())); 972 974 973 975 if (same && (p=dynamic_cast<TProfile*>(gPad->FindObject(pfx)))) … … 985 987 if (profy) 986 988 { 987 const TString pfy( Form("%sProfY", fHist->GetName()));989 const TString pfy(MString::Format("%sProfY", fHist->GetName())); 988 990 989 991 if (same && (p=dynamic_cast<TProfile*>(gPad->FindObject(pfy)))) … … 1298 1300 delete arr; 1299 1301 } 1302 1303 void MH3::RecursiveRemove(TObject *obj) 1304 { 1305 if (obj==fHist) 1306 fHist = 0; 1307 } -
trunk/MagicSoft/Mars/mhbase/MH3.h
r9153 r9302 158 158 void Paint(Option_t *opt=""); 159 159 160 void RecursiveRemove(TObject *obj); 161 160 162 ClassDef(MH3, 4) // Generalized 1/2/3D-histogram for Mars variables 161 163 }; -
trunk/MagicSoft/Mars/mhbase/MHn.cc
r9153 r9302 136 136 137 137 #include "MH3.h" 138 #include "MString.h" 138 139 139 140 ClassImp(MHn); … … 170 171 if (name==fHist[i]->GetName()) 171 172 { 172 name += Form("_%d", fNum);173 name += MString::Format("_%d", fNum); 173 174 break; 174 175 }
Note:
See TracChangeset
for help on using the changeset viewer.