Changeset 4301 for trunk/MagicSoft/Mars/mhist/MHCamera.cc
- Timestamp:
- 06/17/04 10:49:08 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r4282 r4301 69 69 #include <TF1.h> 70 70 #include <TCanvas.h> 71 #include <TLegend.h> 71 72 72 73 #include "MLog.h" … … 1664 1665 // 6: Fit Inner and Outer pixels separately by a single Gaussian and display 1665 1666 // additionally the two camera halfs separately (for MAGIC camera) 1667 // 7: Single Gauss with TLegend to show the meaning of the colours 1666 1668 // 1667 1669 // … … 1708 1710 inout[0]->SetDirectory(NULL); 1709 1711 inout[1]->SetDirectory(NULL); 1710 1712 1711 1713 for (int i=0; i<2; i++) 1712 1714 { … … 1716 1718 inout[i]->Draw(); 1717 1719 inout[i]->Fit("gaus","Q"); 1718 /* 1719 gPad->Modified(); 1720 gPad->Update(); 1721 gPad->SaveAs(Form("%s%s%i%s",GetName(),"AreaIdx",i,".eps")); 1722 */ 1720 1721 1723 1722 if (fit == 6) 1724 1723 { … … 1778 1777 halfInOut[2] = ProjectionS(s0, outer, "Sector 6-1-2 Outer"); 1779 1778 halfInOut[3] = ProjectionS(s1, outer, "Sector 3-4-5 Outer"); 1779 1780 TLegend *leg = new TLegend(0.05,0.65,0.35,0.9); 1780 1781 1781 1782 for (int i=0; i<4; i++) … … 1785 1786 halfInOut[i]->SetBit(kCanDelete); 1786 1787 halfInOut[i]->Draw("same"); 1788 leg->AddEntry(halfInOut[i],halfInOut[i]->GetTitle(),"l"); 1787 1789 } 1790 1791 if (fit==7) 1792 leg->Draw(); 1793 1794 gPad->Modified(); 1795 gPad->Update(); 1788 1796 } 1789 1797
Note:
See TracChangeset
for help on using the changeset viewer.