Changeset 8961 for trunk/MagicSoft/Mars/mhbase
- Timestamp:
- 06/15/08 20:10:34 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mhbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhbase/MFillH.cc
r8297 r8961 18 18 ! Author(s): Thomas Bretz, 07/2001 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 420 ! Copyright: MAGIC Software Development, 2000-2008 21 21 ! 22 22 ! … … 65 65 // Checkout the Warning in MTaskList. 66 66 // 67 // Version 3: 68 // ---------- 69 // - added fTitleTab 70 // 67 71 // Version 2: 68 72 // ---------- … … 396 400 397 401 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 } 399 406 400 407 fCanvas->cd(); -
trunk/MagicSoft/Mars/mhbase/MFillH.h
r8618 r8961 29 29 TString fHName; // Name to a MH container to get filled 30 30 TString fNameTab; 31 TString fTitleTab; 31 32 32 33 MParameterD *fWeight; // Pointer to the container storing a weight … … 57 58 ~MFillH(); 58 59 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; } 60 62 61 63 void SetRuleForIdx(const TString rule); … … 76 78 TCanvas *GetCanvas() { return fCanvas; } 77 79 78 ClassDef(MFillH, 2) // Task to fill a histogram with data from a parameter container80 ClassDef(MFillH, 3) // Task to fill a histogram with data from a parameter container 79 81 }; 80 82
Note:
See TracChangeset
for help on using the changeset viewer.