Changeset 9303 for trunk/MagicSoft/Mars/mreflector
- Timestamp:
- 02/07/09 20:48:57 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mreflector/MHReflector.cc
r9278 r9303 226 226 for (int i=1; i<=fHistRad.GetNbinsX(); i++) 227 227 { 228 h = fHistRad.ProjectionY( Form("ProjRad%d", i), i, i, "e");228 h = fHistRad.ProjectionY(MString::Format("ProjRad%d", i), i, i, "e"); 229 229 h->SetDirectory(NULL); 230 230 h->SetBit(kCanDelete); … … 241 241 const TString hi = MMcEvt::GetEnergyStr(xhi); 242 242 243 leg->AddEntry(h, Form("%s - %s", lo.Data(), hi.Data()));243 leg->AddEntry(h, MString::Format("%s - %s", lo.Data(), hi.Data())); 244 244 } 245 245 … … 257 257 for (int i=1; i<=fHistSize.GetNbinsX(); i++) 258 258 { 259 h = fHistSize.ProjectionY( Form("ProjSize%d", i), i, i, "e");259 h = fHistSize.ProjectionY(MString::Format("ProjSize%d", i), i, i, "e"); 260 260 h->SetDirectory(NULL); 261 261 h->SetBit(kCanDelete); … … 297 297 for (int i=1; i<=fHistRad.GetNbinsX(); i++) 298 298 { 299 const TString name = Form("ProjRad%d", i);299 const TString name = MString::Format("ProjRad%d", i); 300 300 if (!gPad->FindObject(name)) 301 301 continue; … … 312 312 for (int i=1; i<=fHistRad.GetNbinsX(); i++) 313 313 { 314 const TString name = Form("ProjSize%d", i);314 const TString name = MString::Format("ProjSize%d", i); 315 315 if (!gPad->FindObject(name)) 316 316 continue;
Note:
See TracChangeset
for help on using the changeset viewer.