Ignore:
Timestamp:
06/15/08 20:10:34 (17 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

    r8297 r8961  
    1818!   Author(s): Thomas Bretz, 07/2001 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2004
     20!   Copyright: MAGIC Software Development, 2000-2008
    2121!
    2222!
     
    6565//   Checkout the Warning in MTaskList.
    6666//
     67//  Version 3:
     68//  ----------
     69//   - added fTitleTab
     70//
    6771//  Version 2:
    6872//  ----------
     
    396400
    397401    if (!fCanvas)
    398         fCanvas = &fDisplay->AddTab(tabname);
     402    {
     403        const TString tabtitle = fTitleTab.IsNull() ? fH->GetTitle() : fTitleTab.Data();
     404        fCanvas = &fDisplay->AddTab(tabname, tabtitle);
     405    }
    399406
    400407    fCanvas->cd();
  • trunk/MagicSoft/Mars/mhbase/MFillH.h

    r8618 r8961  
    2929    TString fHName;               // Name to a MH container to get filled
    3030    TString fNameTab;
     31    TString fTitleTab;
    3132
    3233    MParameterD *fWeight;         // Pointer to the container storing a weight
     
    5758    ~MFillH();
    5859
    59     void SetNameTab(const char *n="") { fNameTab = n; }
     60    void SetNameTab(const char *n="", const char *t="") { fNameTab = n; fTitleTab = t; }
     61    void SetTitleTab(const char *t="") { fTitleTab = t; }
    6062
    6163    void SetRuleForIdx(const TString rule);
     
    7678    TCanvas *GetCanvas() { return fCanvas; }
    7779
    78     ClassDef(MFillH, 2) // Task to fill a histogram with data from a parameter container
     80    ClassDef(MFillH, 3) // Task to fill a histogram with data from a parameter container
    7981};
    8082   
Note: See TracChangeset for help on using the changeset viewer.