Ignore:
Timestamp:
06/10/02 09:09:13 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHMatrix.cc

    r1354 r1355  
    192192Bool_t MHMatrix::Finalize()
    193193{
     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
    194200    TMatrix m(fM);
    195201
     
    302308    const Int_t cols = m.GetNcols();
    303309
    304     for (int i=0; i<cols; i++)
     310    for (int x=0; x<cols; x++)
    305311    {
    306312        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);
    309315
    310316        avg /= rows;
    311317
    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;
    314320    }
    315321
  • trunk/MagicSoft/Mars/mhist/MHMatrix.h

    r1353 r1355  
    3939    const TList *GetRules() const { return fRules; }
    4040
    41     void SetEnergy(MHMatrix *m) { fEnergy = m; }
    42 
    4341    //void Draw(Option_t *opt=NULL);
    4442    //TObject *DrawClone(Option_t *opt=NULL) const;
Note: See TracChangeset for help on using the changeset viewer.