Changeset 8916 for trunk/MagicSoft/Mars/mhbase
- Timestamp:
- 06/02/08 18:22:03 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhbase/MH.cc
r8892 r8916 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MH.cc,v 1.3 7 2008-05-19 14:04:12tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MH.cc,v 1.38 2008-06-02 17:21:24 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 20 20 ! Author(s): Thomas Bretz 07/2001 <mailto:tbretz@astro.uni-wuerzburg.de> 21 21 ! 22 ! Copyright: MAGIC Software Development, 2000-200 722 ! Copyright: MAGIC Software Development, 2000-2008 23 23 ! 24 24 ! … … 57 57 #include <TH2.h> 58 58 #include <TH3.h> 59 #include <TColor.h> 60 #include <TMath.h> 61 #include <TClass.h> 59 62 #include <TStyle.h> // TStyle::GetScreenFactor 60 63 #include <TGaxis.h> … … 63 66 #include <TPaveStats.h> 64 67 #include <TBaseClass.h> 68 #include <THashList.h> 65 69 #if ROOT_VERSION_CODE > ROOT_VERSION(3,04,01) 66 70 #include <THLimitsFinder.h> … … 1596 1600 } 1597 1601 1602 #ifdef CreateGradientColorTable 1603 #error CreateGradientColorTable already defined 1604 #endif 1605 1606 #if ROOT_VERSION_CODE < ROOT_VERSION(5,18,00) 1607 #define CreateGradientColorTable gStyle->CreateGradientColorTable 1608 #else 1609 #define CreateGradientColorTable TColor::CreateGradientColorTable 1610 #endif 1611 1598 1612 // -------------------------------------------------------------------------- 1599 1613 // … … 1639 1653 Double_t g[5] = { 0.01, 0.02, 0.39, 0.68, 0.97 }; 1640 1654 Double_t b[5] = { 0.17, 0.39, 0.62, 0.79, 0.97 }; 1641 gStyle->CreateGradientColorTable(5, s, r, g, b, ncol);1655 CreateGradientColorTable(5, s, r, g, b, ncol); 1642 1656 found=kTRUE; 1643 1657 } … … 1649 1663 Double_t g[5] = { 0.00, 0.02, 0.40, 0.70, 1.00 }; 1650 1664 Double_t b[5] = { 0.00, 0.27, 0.51, 0.81, 1.00 }; 1651 gStyle->CreateGradientColorTable(5, s, r, g, b, ncol);1665 CreateGradientColorTable(5, s, r, g, b, ncol); 1652 1666 found=kTRUE; 1653 1667 } … … 1659 1673 double g[2] = {0.00, 1.00}; 1660 1674 double b[2] = {0.00, 1.00}; 1661 gStyle->CreateGradientColorTable(2, s, r, g, b, ncol);1675 CreateGradientColorTable(2, s, r, g, b, ncol); 1662 1676 found=kTRUE; 1663 1677 } … … 1669 1683 double g[5] = {0., 0.10, 0.20, 0.73, 1.00}; 1670 1684 double b[5] = {0., 0.03, 0.06, 0.00, 1.00}; 1671 gStyle->CreateGradientColorTable(5, s, r, g, b, ncol);1685 CreateGradientColorTable(5, s, r, g, b, ncol); 1672 1686 found=kTRUE; 1673 1687 } … … 1679 1693 double g[4] = {0.03, 0.04, 0.80, 1.00}; 1680 1694 double b[4] = {0.03, 0.04, 0.00, 1.00}; 1681 gStyle->CreateGradientColorTable(4, s, r, g, b, ncol);1695 CreateGradientColorTable(4, s, r, g, b, ncol); 1682 1696 found=kTRUE; 1683 1697 } … … 1689 1703 double g[8] = {0.70, 0.40, 0.02, 0.00, 0.10, 0.20, 0.73, 1.00}; 1690 1704 double b[8] = {0.81, 0.51, 0.27, 0.00, 0.03, 0.06, 0.00, 1.00}; 1691 gStyle->CreateGradientColorTable(8, s, r, g, b, ncol);1705 CreateGradientColorTable(8, s, r, g, b, ncol); 1692 1706 found=kTRUE; 1693 1707 } … … 1699 1713 double g[3] = {0., 0.0, 1.}; 1700 1714 double b[3] = {0., 0.0, 1.}; 1701 gStyle->CreateGradientColorTable(3, s, r, g, b, ncol);1715 CreateGradientColorTable(3, s, r, g, b, ncol); 1702 1716 found=kTRUE; 1703 1717 } … … 1709 1723 double g[3] = {0., 0.0, 1.}; 1710 1724 double b[3] = {0., 1.0, 1.}; 1711 gStyle->CreateGradientColorTable(3, s, r, g, b, ncol);1725 CreateGradientColorTable(3, s, r, g, b, ncol); 1712 1726 found=kTRUE; 1713 1727 } … … 1719 1733 double g[4] = {0.28, 0.93, 0.03, 1.}; 1720 1734 double b[4] = {0.79, 0.11, 0.03, 1.}; 1721 gStyle->CreateGradientColorTable(4, s, r, g, b, ncol);1735 CreateGradientColorTable(4, s, r, g, b, ncol); 1722 1736 found=kTRUE; 1723 1737 } … … 1728 1742 double g[5] = {0.1, 0.1, 0.0, 1.0, 1.0 }; 1729 1743 double b[5] = {0.2, 0.7, 0.0, 0.3, 0.9 }; 1730 gStyle->CreateGradientColorTable(5, s, r, g, b, ncol);1744 CreateGradientColorTable(5, s, r, g, b, ncol); 1731 1745 found=kTRUE; 1732 1746 }
Note:
See TracChangeset
for help on using the changeset viewer.