Ignore:
Timestamp:
06/02/08 18:22:03 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhbase/MH.cc

    r8892 r8916  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MH.cc,v 1.37 2008-05-19 14:04:12 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MH.cc,v 1.38 2008-06-02 17:21:24 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    2020!   Author(s): Thomas Bretz  07/2001 <mailto:tbretz@astro.uni-wuerzburg.de>
    2121!
    22 !   Copyright: MAGIC Software Development, 2000-2007
     22!   Copyright: MAGIC Software Development, 2000-2008
    2323!
    2424!
     
    5757#include <TH2.h>
    5858#include <TH3.h>
     59#include <TColor.h>
     60#include <TMath.h>
     61#include <TClass.h>
    5962#include <TStyle.h>       // TStyle::GetScreenFactor
    6063#include <TGaxis.h>
     
    6366#include <TPaveStats.h>
    6467#include <TBaseClass.h>
     68#include <THashList.h>
    6569#if ROOT_VERSION_CODE > ROOT_VERSION(3,04,01)
    6670#include <THLimitsFinder.h>
     
    15961600}
    15971601
     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
    15981612// --------------------------------------------------------------------------
    15991613//
     
    16391653        Double_t g[5] = { 0.01, 0.02, 0.39, 0.68, 0.97 };
    16401654        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);
    16421656        found=kTRUE;
    16431657    }
     
    16491663        Double_t g[5] = { 0.00, 0.02, 0.40, 0.70, 1.00 };
    16501664        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);
    16521666        found=kTRUE;
    16531667    }
     
    16591673        double g[2] = {0.00, 1.00};
    16601674        double b[2] = {0.00, 1.00};
    1661         gStyle->CreateGradientColorTable(2, s, r, g, b, ncol);
     1675        CreateGradientColorTable(2, s, r, g, b, ncol);
    16621676        found=kTRUE;
    16631677    }
     
    16691683        double g[5] = {0., 0.10, 0.20, 0.73, 1.00};
    16701684        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);
    16721686        found=kTRUE;
    16731687    }
     
    16791693        double g[4] = {0.03, 0.04, 0.80, 1.00};
    16801694        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);
    16821696        found=kTRUE;
    16831697    }
     
    16891703        double g[8] = {0.70, 0.40, 0.02, 0.00, 0.10, 0.20, 0.73, 1.00};
    16901704        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);
    16921706        found=kTRUE;
    16931707    }
     
    16991713        double g[3] = {0., 0.0, 1.};
    17001714        double b[3] = {0., 0.0, 1.};
    1701         gStyle->CreateGradientColorTable(3, s, r, g, b, ncol);
     1715        CreateGradientColorTable(3, s, r, g, b, ncol);
    17021716        found=kTRUE;
    17031717    }
     
    17091723        double g[3] = {0., 0.0, 1.};
    17101724        double b[3] = {0., 1.0, 1.};
    1711         gStyle->CreateGradientColorTable(3, s, r, g, b, ncol);
     1725        CreateGradientColorTable(3, s, r, g, b, ncol);
    17121726        found=kTRUE;
    17131727    }
     
    17191733        double g[4] = {0.28, 0.93, 0.03, 1.};
    17201734        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);
    17221736        found=kTRUE;
    17231737    }
     
    17281742        double g[5] = {0.1, 0.1, 0.0, 1.0, 1.0 };
    17291743        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);
    17311745        found=kTRUE;
    17321746    }
Note: See TracChangeset for help on using the changeset viewer.