Ignore:
Timestamp:
12/02/08 11:23:24 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r9153 r9186  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MH.cc,v 1.40 2008-11-11 11:42:13 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MH.cc,v 1.41 2008-12-02 11:22:15 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    352352    y.SetTimeFormat(tfy);
    353353#else
    354     h->SetBins(bx.GetNumBins(), bx.GetEdges(),
    355                by.GetNumBins(), by.GetEdges());
     354    if (h->InheritsFrom(TProfile2D::Class()))
     355    {
     356        h->SetBins(bx.GetNumBins(), 0, 1,
     357                   by.GetNumBins(), 0, 1);
     358
     359        h->SetBinsLength();
     360
     361        x.Set(bx.GetNumBins(), bx.GetEdges());
     362        y.Set(by.GetNumBins(), by.GetEdges());
     363    }
     364    else
     365        h->SetBins(bx.GetNumBins(), bx.GetEdges(),
     366                   by.GetNumBins(), by.GetEdges());
    356367#endif
    357368
Note: See TracChangeset for help on using the changeset viewer.