Changeset 11569
- Timestamp:
- 07/24/11 18:36:10 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mhist/MHCamEvent.cc
r9576 r11569 295 295 296 296 pad->cd(2); 297 if (gPad->FindObject( Format("proj")))298 { 299 TH1 *h=fSum->Projection( Format("proj"));297 if (gPad->FindObject("proj")) 298 { 299 TH1 *h=fSum->Projection("proj"); 300 300 if (h->GetMaximum()>0) 301 301 gPad->SetLogy(); … … 303 303 304 304 pad->cd(5); 305 if (gPad->FindObject( Format("rad")))306 fSum->RadialProfile( Format("rad"));305 if (gPad->FindObject("rad")) 306 fSum->RadialProfile("rad"); 307 307 308 308 pad->cd(6); 309 if (gPad->FindObject( Format("az")))310 fSum->AzimuthProfile( Format("az"));309 if (gPad->FindObject("az")) 310 fSum->AzimuthProfile("az"); 311 311 312 312 pad->cd(4); 313 313 gPad->cd(1); 314 MHCamera *cam = (MHCamera*)gPad->FindObject( Format("err"));314 MHCamera *cam = (MHCamera*)gPad->FindObject("err"); 315 315 if (cam) 316 cam->SetCamContent(*fSum, fErrorRelative ? 1 : 2);316 cam->SetCamContent(*fSum, fErrorRelative ? 2 : 1); 317 317 } 318 318 … … 340 340 p->Draw(); 341 341 p->cd(); 342 TH1 *h = fSum->Projection( Format("proj"), 50);342 TH1 *h = fSum->Projection("proj", 50); 343 343 h->SetTitle("Projection"); 344 344 h->SetBit(kCanDelete); … … 369 369 370 370 fErr = new MHCamera(*fSum->GetGeometry()); 371 fErr->SetName( Format("err"));371 fErr->SetName("err"); 372 372 fErr->SetTitle(e); 373 373 fErr->SetYTitle(fSum->GetYaxis()->GetTitle()); 374 fErr->SetCamContent(*fSum, fErrorRelative ? 1 : 2);374 fErr->SetCamContent(*fSum, fErrorRelative ? 2 : 1); 375 375 fErr->SetBit(kMustCleanup); 376 376 fErr->SetBit(kCanDelete); … … 384 384 p->Draw(); 385 385 p->cd(); 386 h = (TH1*)fSum->RadialProfile( Format("rad"), 20);386 h = (TH1*)fSum->RadialProfile("rad", 20); 387 387 h->SetTitle("Radial Profile"); 388 388 h->SetBit(kCanDelete|TH1::kNoStats); … … 396 396 p->Draw(); 397 397 p->cd(); 398 h = (TH1*)fSum->AzimuthProfile( Format("az"), 30);398 h = (TH1*)fSum->AzimuthProfile("az", 30); 399 399 h->SetTitle("Azimuth Profile"); 400 400 h->SetBit(kCanDelete|TH1::kNoStats);
Note:
See TracChangeset
for help on using the changeset viewer.