Changeset 7899 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 08/21/06 17:53:30 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MHEnergyEst.cc
r7692 r7899 350 350 { 351 351 TH2D *hyx=0; 352 if (!(hyx=(TH2D*)gPad->FindObject(MString::Form ("%s_%s", h.GetName(), how))))352 if (!(hyx=(TH2D*)gPad->FindObject(MString::Format("%s_%s", h.GetName(), how)))) 353 353 return; 354 354 355 TH2D *h2 = (TH2D*)h.Project3D(MString::Form ("dum_%s", how));355 TH2D *h2 = (TH2D*)h.Project3D(MString::Format("dum_%s", how)); 356 356 hyx->Reset(); 357 357 hyx->Add(h2); … … 359 359 360 360 TH1D *hx = 0; 361 if ((hx=(TH1D*)gPad->FindObject( Form("Prof%s", h.GetName()))))361 if ((hx=(TH1D*)gPad->FindObject(MString::Format("Prof%s", h.GetName())))) 362 362 { 363 363 hx = hyx->ProfileX(Form("Prof%s", h.GetName()), -1, 9999, "s");
Note:
See TracChangeset
for help on using the changeset viewer.