Ignore:
Timestamp:
06/23/03 14:33:49 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHCamera.cc

    r2209 r2216  
    167167//   -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    168168
     169#if ROOT_VERSION_CODE > ROOT_VERSION(3,05,00)
    169170   if (fBuffer) return BufferFill(x,1);
    170 
     171#endif
    171172   const Int_t bin = (Int_t)x+1;
    172173   AddBinContent(bin);
     
    199200//   -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    200201
     202#if ROOT_VERSION_CODE > ROOT_VERSION(3,05,00)
    201203   if (fBuffer) return BufferFill(x,w);
    202 
     204#endif
    203205   const Int_t bin = (Int_t)x+1;
    204206   AddBinContent(bin, w);
     
    403405    // box with the histogram title
    404406    ptitle->SetTextColor(gStyle->GetTitleTextColor());
     407#if ROOT_VERSION_CODE > ROOT_VERSION(3,05,00)
    405408    ptitle->SetTextFont(gStyle->GetTitleFont(""));
     409#endif
    406410    ptitle->Paint();
    407411}
     
    412416//                       ========================
    413417   //if (Hoption.Same) return;
     418#if ROOT_VERSION_CODE > ROOT_VERSION(3,05,00)
    414419    if (TestBit(kNoTitle))
    415420        return;
     421#endif
    416422
    417423    const Int_t nt = strlen(GetTitle());
     
    460466
    461467    // box with the histogram title
     468#if ROOT_VERSION_CODE > ROOT_VERSION(3,05,00)
    462469    ptitle->SetFillColor(gStyle->GetTitleFillColor());
     470    ptitle->SetTextFont(gStyle->GetTitleFont(""));
     471    if (gStyle->GetTitleFont("")%10 > 2)
     472        ptitle->SetTextSize(gStyle->GetTitleFontSize());
     473#endif
    463474    ptitle->SetFillStyle(gStyle->GetTitleStyle());
    464475    ptitle->SetName("title");
    465476    ptitle->SetBorderSize(gStyle->GetTitleBorderSize());
    466477    ptitle->SetTextColor(gStyle->GetTitleTextColor());
    467     ptitle->SetTextFont(gStyle->GetTitleFont(""));
    468     if (gStyle->GetTitleFont("")%10 > 2)
    469         ptitle->SetTextSize(gStyle->GetTitleFontSize());
    470478    ptitle->AddText(GetTitle());
    471479    ptitle->SetBit(kCanDelete);
     
    654662    for (Int_t idx=0; idx<fNcells-2; idx++)
    655663    {
    656         Fill(idx, event[idx]); // FIXME: Slow!
     664        Fill(idx, const_cast<TArrayD&>(event)[idx]); // FIXME: Slow!
    657665        //fArray[idx+1]+=val;
    658666
     
    690698    for (Int_t idx=0; idx<fNcells-2; idx++)
    691699    {
    692         if (event[idx]>threshold)
     700        if (const_cast<TArrayD&>(event)[idx]>threshold)
    693701            Fill(idx);
    694702
  • trunk/MagicSoft/Mars/mhist/MHCamera.h

    r2209 r2216  
    6868    };
    6969
    70     Bool_t IsUsed(Int_t idx) const { return TESTBIT(fUsed[idx], kIsUsed); }
     70    Bool_t IsUsed(Int_t idx) const { return TESTBIT(const_cast<TArrayC&>(fUsed)[idx], kIsUsed); }
    7171    void   SetUsed(Int_t idx)      { SETBIT(fUsed[idx], kIsUsed); }
    7272    void   ResetUsed(Int_t idx)    { CLRBIT(fUsed[idx], kIsUsed); }
     
    9191
    9292    // This is a trick to remove TH1 entries from the context menu
    93     void Add(TF1 *h1, Double_t c1=1) { TH1::Add(h1, c1); }
    94     void Add(const TH1 *h1, Double_t c1=1) { TH1::Add(h1, c1); }
    95     void Add(const TH1 *h1, const TH1 *h2, Double_t c1=1, Double_t c2=1) { TH1::Add(h1, h2, c1, c2); }
    96     void Divide(TF1 *f1, Double_t c1=1) { TH1::Divide(f1, c1); }
    97     void Divide(const TH1 *h1) { TH1::Divide(h1); }
    98     void Divide(const TH1 *h1, const TH1 *h2, Double_t c1=1, Double_t c2=1, Option_t *option="") { TH1::Divide(h1, h2, c1, c2, option); }
    99     void Multiply(TF1 *h1, Double_t c1=1) { TH1::Multiply(h1, c1); }
    100     void Multiply(const TH1 *h1) { TH1::Multiply(h1); }
    101     void Multiply(const TH1 *h1, const TH1 *h2, Double_t c1=1, Double_t c2=1, Option_t *option="") { TH1::Multiply(h1, h2, c1, c2, option); }
     93    /*
     94     void Add(const TH1 *h1, const TH1 *h2, Double_t c1=1, Double_t c2=1) { TH1::Add(h1, h2, c1, c2); }
     95     void Add(TF1 *h1, Double_t c1=1) { TH1::Add(h1, c1); }
     96     void Add(const TH1 *h1, Double_t c1=1) { TH1::Add(h1, c1); }
     97     void Divide(TF1 *f1, Double_t c1=1) { TH1::Divide(f1, c1); }
     98     void Divide(const TH1 *h1) { TH1::Divide(h1); }
     99     void Divide(const TH1 *h1, const TH1 *h2, Double_t c1=1, Double_t c2=1, Option_t *option="") { TH1::Divide(h1, h2, c1, c2, option); }
     100     void Multiply(TF1 *h1, Double_t c1=1) { TH1::Multiply(h1, c1); }
     101     void Multiply(const TH1 *h1) { TH1::Multiply(h1); }
     102     void Multiply(const TH1 *h1, const TH1 *h2, Double_t c1=1, Double_t c2=1, Option_t *option="") { TH1::Multiply(h1, h2, c1, c2, option); }
     103     */
     104
    102105    void FitPanel() { TH1::FitPanel(); }
    103106
Note: See TracChangeset for help on using the changeset viewer.