Changeset 1355 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 06/10/02 09:09:13 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHMatrix.cc
r1354 r1355 192 192 Bool_t MHMatrix::Finalize() 193 193 { 194 // 195 // It's not a fatal error so we don't need to stop PostProcessing... 196 // 197 if (fData->GetSize()<1 || fNumRow<1) 198 return kTRUE; 199 194 200 TMatrix m(fM); 195 201 … … 302 308 const Int_t cols = m.GetNcols(); 303 309 304 for (int i=0; i<cols; i++)310 for (int x=0; x<cols; x++) 305 311 { 306 312 Double_t avg = 0; 307 for (int j=0; j<rows; j++)308 avg += fM( j, i);313 for (int y=0; y<rows; y++) 314 avg += fM(y, x); 309 315 310 316 avg /= rows; 311 317 312 for (int j=0; j<rows; j++)313 m( j, i) -= avg;318 for (int y=0; y<rows; y++) 319 m(y, x) -= avg; 314 320 } 315 321 -
trunk/MagicSoft/Mars/mhist/MHMatrix.h
r1353 r1355 39 39 const TList *GetRules() const { return fRules; } 40 40 41 void SetEnergy(MHMatrix *m) { fEnergy = m; }42 43 41 //void Draw(Option_t *opt=NULL); 44 42 //TObject *DrawClone(Option_t *opt=NULL) const;
Note:
See TracChangeset
for help on using the changeset viewer.