Changeset 8985 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 06/20/08 13:45:16 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MHEnergyEst.cc
r8938 r8985 332 332 } 333 333 334 hx->Fit("gaus", "Q", "", - 1.0, 0.25);334 hx->Fit("gaus", "Q", "", -0.25, 1.0); 335 335 hx->GetFunction("gaus")->SetLineColor(kBlue); 336 336 hx->GetFunction("gaus")->SetLineWidth(2); … … 363 363 364 364 pad->GetPad(2)->cd(2); 365 UpdateProf(fHResolutionMC, kFALSE); 366 367 pad->GetPad(2)->cd(3); 365 368 UpdateProf(fHResolutionEst, kFALSE); 366 367 pad->GetPad(2)->cd(3);368 UpdateProf(fHResolutionMC, kFALSE);369 369 } 370 370 } … … 451 451 h->Draw(); 452 452 453 h->GetXaxis()->SetMoreLogLabels(); 454 h->GetXaxis()->SetNoExponent(); 455 453 456 h = MakeProj("ex"); 454 457 h->SetLineColor(kBlue); … … 511 514 h2->SetBit(kCanDelete); 512 515 h2->SetFillColor(kBlue); 513 h2->SetTitle("Estimated energy E_{est} vs Monte Carlo energy E_{mc}"); 514 515 TH1 *h1 = MakeProf(*h2); 516 h2->SetTitle("Estimated energy E_{mc} vs Monte Carlo energy E_{est}"); 516 517 517 518 h2->Draw(""); 518 h1->Draw("E0 same"); 519 MakeProf(*h2)->Draw("E0 same"); 520 521 h2->GetXaxis()->SetMoreLogLabels(); 522 h2->GetXaxis()->SetNoExponent(); 519 523 520 524 TLine line; … … 528 532 529 533 pad2->cd(2); 534 gPad->SetBorderMode(0); 535 gPad->SetLogx(); 536 gPad->SetGridx(); 537 gPad->SetGridy(); 538 fHResolutionMC.Draw(); 539 MakeProf(fHResolutionMC)->Draw("E0 same"); 540 541 fHResolutionMC.GetXaxis()->SetMoreLogLabels(); 542 fHResolutionMC.GetXaxis()->SetNoExponent(); 543 544 line.DrawLine(fHResolutionMC.GetXaxis()->GetXmin(), 0, fHResolutionMC.GetXaxis()->GetXmax(), 0); 545 546 // ---------------------------------------- 547 548 pad2->cd(3); 530 549 gPad->SetBorderMode(0); 531 550 gPad->SetLogx(); … … 539 558 540 559 line.DrawLine(fHResolutionEst.GetXaxis()->GetXmin(), 0, fHResolutionEst.GetXaxis()->GetXmax(), 0); 541 542 // ----------------------------------------543 544 pad2->cd(3);545 gPad->SetBorderMode(0);546 gPad->SetLogx();547 gPad->SetGridx();548 gPad->SetGridy();549 fHResolutionMC.Draw();550 MakeProf(fHResolutionMC)->Draw("E0 same");551 552 fHResolutionMC.GetXaxis()->SetMoreLogLabels();553 fHResolutionMC.GetXaxis()->SetNoExponent();554 555 line.DrawLine(fHResolutionMC.GetXaxis()->GetXmin(), 0, fHResolutionMC.GetXaxis()->GetXmax(), 0);556 560 } 557 561
Note:
See TracChangeset
for help on using the changeset viewer.