Changeset 1832 for trunk/MagicSoft
- Timestamp:
- 03/19/03 10:24:59 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1827 r1832 1 1 -*-*- END OF LINE -*-*- 2 3 2003/03/19: Thomas Bretz 4 5 * mhist/MH3.[h,cc]: 6 - changed default constructor to support different dimensions 7 8 2 9 3 10 2003/03/18: Thomas Bretz … … 328 335 329 336 337 <<<<<<< Changelog 338 -*-*- END -*-*- 339 2003/02/19: Thomas Bretz 340 341 * mhist/MH3.[h,cc]: 342 - changed default constructor to support different dimensions 343 344 345 346 ======= 347 >>>>>>> 1.405 330 348 2003/02/18: Thomas Bretz 331 349 -
trunk/MagicSoft/Mars/mhist/MH3.cc
r1666 r1832 87 87 // Default constructor. 88 88 // 89 MH3::MH3() : fDimension(0), fHist(NULL) 90 { 89 MH3::MH3(const unsigned int dim) 90 : fDimension(dim>3?3:dim), fHist(NULL) 91 { 92 switch (fDimension) 93 { 94 case 1: 95 fHist = new TH1F; 96 fHist->SetYTitle("Counts"); 97 break; 98 case 2: 99 fHist = new TH2F; 100 fHist->SetZTitle("Counts"); 101 break; 102 case 3: 103 fHist = new TH3F; 104 break; 105 } 106 107 fData[0] = NULL; 108 fData[1] = NULL; 109 fData[2] = NULL; 110 91 111 fName = gsDefName; 92 fTitle = Form(gsDefTitle.Data(), 0); 93 94 fData[0] = fData[1] = fData[2] = NULL; 95 fScale[0] = fScale[1] = fScale[2] = 1; 112 fTitle = Form(gsDefTitle.Data(), 1); 113 114 fHist->SetDirectory(NULL); 115 116 fScale[0] = 1; 117 fScale[1] = 1; 118 fScale[2] = 1; 96 119 } 97 120 -
trunk/MagicSoft/Mars/mhist/MH3.h
r1668 r1832 33 33 34 34 public: 35 MH3( );35 MH3(const unsigned int dim=0); 36 36 MH3(const char *memberx); 37 37 MH3(const char *memberx, const char *membery);
Note:
See TracChangeset
for help on using the changeset viewer.