Changeset 10056 for trunk/Mars/mhbase
- Timestamp:
- 11/22/10 16:11:05 (14 years ago)
- Location:
- trunk/Mars/mhbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mhbase/MH3.cc
r9858 r10056 214 214 fScale[1] = 1; 215 215 fScale[2] = 1; 216 fScale[3] = 1; 216 217 217 218 fConversion = NULL; … … 789 790 { 790 791 case -3: 791 t = fData[3]->GetValue() ;792 t = fData[3]->GetValue()*fScale[3]; 792 793 case -2: 793 794 case 3: … … 800 801 } 801 802 802 if (f Data[4])803 w *= f Data[4]->GetValue();803 if (fWeight) 804 w *= fWeight->GetValue(); 804 805 805 806 // If label option is set, convert value to label … … 1266 1267 switch (fDimension) 1267 1268 { 1269 case -3: 1270 h->SetScaleZ(fScale[3]); 1268 1271 case -2: 1269 1272 case 3: … … 1276 1279 } 1277 1280 1278 if (f Data[4])1279 h->SetWeight(f Data[4]->GetRule());1281 if (fWeight) 1282 h->SetWeight(fWeight->GetRule()); 1280 1283 1281 1284 return h; -
trunk/Mars/mhbase/MH3.h
r9858 r10056 71 71 MData *fWeight; // Additional weight 72 72 MBinning *fBins[3]; // Binning set omitting the parlist access 73 Double_t fScale[ 3]; // Scale for the three axis (eg unit)73 Double_t fScale[4]; // Scale for the three axis (eg unit) 74 74 Byte_t fStyleBits; // Set the range of a histogram automatically in Finalize 75 75 … … 100 100 void SetScaleY(Double_t scale) { fScale[1] = scale; } 101 101 void SetScaleZ(Double_t scale) { fScale[2] = scale; } 102 void SetScale(Double_t x, Double_t y=1, Double_t z=2) { SetScaleX(x); SetScaleY(y); SetScaleZ(z); } 102 void SetScaleT(Double_t scale) { fScale[3] = scale; } 103 void SetScale(Double_t x, Double_t y=1, Double_t z=1, Double_t t=1) { SetScaleX(x); SetScaleY(y); SetScaleZ(z); SetScaleT(t); } 103 104 104 105 void SetLogx(Bool_t b=kTRUE) { b ? fHist->SetBit(kIsLogx) : fHist->ResetBit(kIsLogx); }
Note:
See TracChangeset
for help on using the changeset viewer.