Ignore:
Timestamp:
09/13/04 08:57:58 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhbase/MBinning.h

    r4920 r4966  
    4646
    4747    void SetEdges(const TAxis &axe);
     48    void SetEdges(const MBinning &bins) { SetEdges(fEdges); }
    4849    void SetEdges(const TH1 &h, const Char_t axis='x');
    4950    void SetEdges(const Int_t nbins, const Axis_t lo, Axis_t up);
     
    5960        for (int i=1; i<fEdges.GetSize(); i++)
    6061        {
    61             if (((TArrayD)fEdges)[i] >= val)
     62            if (fEdges[i] >= val)
    6263                return i-1;
    6364        }
     
    7071    }
    7172
    72     // FIXME: ROOT workaround: "operator[] const" missing
    73     Double_t GetEdgeLo() const { return ((TArrayD)fEdges)[0]; }
    74     Double_t GetEdgeHi() const { return ((TArrayD)fEdges)[fEdges.GetSize()-1]; }
     73    Double_t GetEdgeLo() const { return fEdges[0]; }
     74    Double_t GetEdgeHi() const { return fEdges[fEdges.GetSize()-1]; }
    7575
    76     Int_t GetNumEdges() const { return fEdges.GetSize(); }
    77     Int_t GetNumBins() const { return fEdges.GetSize()-1; }
     76    Int_t GetNumEdges() const  { return fEdges.GetSize(); }
     77    Int_t GetNumBins() const   { return fEdges.GetSize()-1; }
    7878
    7979    Double_t *GetEdges() const { return (Double_t*)fEdges.GetArray(); }
     80    const TArrayD &GetEdgesD() const { return fEdges; }
    8081
    8182    void AddEdge(Axis_t up);
     83    void RemoveFirstEdge();
     84    void RemoveLastEdge();
    8285
    83     Bool_t IsLinear() const { return fType==kIsLinear; }
     86    Bool_t IsLinear() const      { return fType==kIsLinear; }
    8487    Bool_t IsLogarithmic() const { return fType==kIsLogarithmic; }
    85     Bool_t IsCosinic() const { return fType==kIsCosinic; }
    86     Bool_t IsDefault() const { return fType==kIsDefault; }
    87     Bool_t IsUserArray() const { return fType==kIsUserArray; }
     88    Bool_t IsCosinic() const     { return fType==kIsCosinic; }
     89    Bool_t IsDefault() const     { return fType==kIsDefault; }
     90    Bool_t IsUserArray() const   { return fType==kIsUserArray; }
    8891
    89     Bool_t HasTitle() const { return gsDefTitle!=fTitle; }
     92    Bool_t HasTitle() const      { return gsDefTitle!=fTitle; }
    9093
    9194    void Apply(TH1 &) const;
     
    9598
    9699#endif
    97 
Note: See TracChangeset for help on using the changeset viewer.