Ignore:
Timestamp:
01/03/05 12:02:16 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhbase
Files:
3 edited

Legend:

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

    r5143 r5692  
    3838    MBinning(const char *name=NULL, const char *title=NULL);
    3939    MBinning(Int_t nbins, Axis_t lo, Axis_t hi, const char *name=0, const char *opt="", const char *title=NULL);
     40    MBinning(const MBinning &bins) { SetEdges(bins); }
     41
     42    void Copy(TObject &named) const
     43    {
     44        MBinning &bins = (MBinning&)named;
     45        bins.SetEdges(*this);
     46    }
    4047
    4148    void SetEdges(const TArrayD &arr)
    4249    {
    4350        fEdges = arr;
    44         fType = kIsUserArray;
     51        fType  = kIsUserArray;
    4552    }
    4653
    4754    void SetEdges(const TAxis &axe);
    48     void SetEdges(const MBinning &bins) { SetEdges(fEdges); }
     55    void SetEdges(const MBinning &bins) { SetEdges(bins.fEdges); fType = bins.fType; }
    4956    void SetEdges(const TH1 &h, const Char_t axis='x');
    5057    void SetEdges(const Int_t nbins, const Axis_t lo, Axis_t up);
  • trunk/MagicSoft/Mars/mhbase/MHMatrix.cc

    r5100 r5692  
    160160    }
    161161
     162    const Int_t idx = fData->FindRule(rule);
     163    if (idx>=0)
     164        return idx;
     165
    162166    fData->AddEntry(rule);
    163167    return fData->GetNumEntries()-1;
  • trunk/MagicSoft/Mars/mhbase/MHMatrix.h

    r4646 r5692  
    115115    void ReduceRows(UInt_t num);
    116116
    117     ClassDef(MHMatrix, 1) // Multidimensional Matrix to store events
     117    ClassDef(MHMatrix, 1) // Multidimensional Matrix (TMatrix) to store events
    118118};
    119119
Note: See TracChangeset for help on using the changeset viewer.