Ignore:
Timestamp:
02/13/04 18:02:54 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhbase
Files:
2 edited

Legend:

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

    r2735 r3144  
    395395
    396396        if (!fWeight)
    397           {
    398             *fLog << err << fWeightName << " [MWeight] not found... aborting." << endl;
    399             return kFALSE;
    400           }
     397        {
     398            *fLog << err << fWeightName << " [MWeight] not found... aborting." << endl;
     399            return kFALSE;
     400        }
    401401    }
    402402
     
    474474        return DrawToDisplay();
    475475
     476    if (TestBit(kCanSkip))
     477    {
     478        *fLog << warn << fParContainerName << " [MParContainer] not found... skipped." << endl;
     479        return kSKIP;
     480    }
     481
    476482    *fLog << err << fParContainerName << " [MParContainer] not found... aborting." << endl;
    477483    return kFALSE;
     
    501507     */
    502508
    503     return fH->Fill(fParContainer, fWeight?fWeight->GetWeight():1);
     509    TVirtualPad *save = gPad;
     510    if (fCanvas)
     511        fCanvas->cd();
     512
     513    Bool_t rc = fH->Fill(fParContainer, fWeight?fWeight->GetWeight():1);
     514
     515    if (save && fCanvas)
     516        save->cd();
     517
     518    return rc;
    504519}
    505520
  • trunk/MagicSoft/Mars/mhbase/MFillH.h

    r2735 r3144  
    1818public:
    1919    enum {
    20         kDoNotDisplay = BIT(17)
     20        kDoNotDisplay = BIT(17),
     21        kCanSkip      = BIT(18)
    2122    };
    2223
Note: See TracChangeset for help on using the changeset viewer.