Ignore:
Timestamp:
11/22/02 09:23:54 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r1599 r1666  
    223223    {
    224224    case 3:
    225         binsz = (MBinning*)plist->FindObject(bname+"Z");
     225        binsz = (MBinning*)plist->FindObject(bname+"Z", "MBinning");
    226226        if (!binsz)
    227227        {
     
    235235            return kFALSE;
    236236    case 2:
    237         binsy = (MBinning*)plist->FindObject(bname+"Y");
     237        binsy = (MBinning*)plist->FindObject(bname+"Y", "MBinning");
    238238        if (!binsy)
    239239        {
     
    247247            return kFALSE;
    248248    case 1:
    249         binsx = (MBinning*)plist->FindObject(bname+"X");
     249        binsx = (MBinning*)plist->FindObject(bname+"X", "MBinning");
    250250        if (!binsx)
    251251        {
    252             *fLog << err << dbginf << "MBinning '" << bname << "X' not found... aborting." << endl;
    253             return kFALSE;
     252            if (fDimension==1)
     253                binsx = (MBinning*)plist->FindObject(bname, "MBinning");
     254
     255            if (!binsx)
     256            {
     257                *fLog << err << dbginf << "Neither MBinning '" << bname << "X' nor '" << bname << "' found... aborting." << endl;
     258                return kFALSE;
     259            }
    254260        }
    255261        if (binsx->IsLogarithmic())
Note: See TracChangeset for help on using the changeset viewer.