Ignore:
Timestamp:
05/29/06 15:58:38 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhbase
Files:
2 edited

Legend:

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

    r7413 r7749  
    5353#include <TArrayD.h>
    5454#include <TArrayI.h>
    55 #include <TVector.h>
    5655
    5756#include <TH1.h>
     
    421420        avg /= rows;
    422421
     422#if ROOT_VERSION_CODE > ROOT_VERSION(5,00,00)
     423        TMatrixFColumn(m, x) += -avg;
     424#else
    423425        TMatrixColumn(m, x) += -avg;
     426#endif
    424427    }
    425428
     
    924927    //
    925928    TVector v(fM.GetNrows());
     929#if ROOT_VERSION_CODE > ROOT_VERSION(5,00,00)
     930    v = TMatrixFColumn_const(fM, refcolumn);
     931#else
    926932    v = TMatrixColumn(fM, refcolumn);
     933#endif
    927934    //v += -frombin;
    928935    //v *= 1/dbin;
     
    12601267    for (int i=0; i<m.GetNrows(); i++)
    12611268    {
     1269#if ROOT_VERSION_CODE > ROOT_VERSION(5,00,00)
     1270        const TMatrixFRow_const &row = TMatrixFRow_const(m, i);
     1271#else
    12621272        const TMatrixRow &row = TMatrixRow(m, i);
    1263 
     1273#endif
    12641274        // finite (-> math.h) checks for NaN as well as inf
    12651275        int jcol;
  • trunk/MagicSoft/Mars/mhbase/MHMatrix.h

    r7413 r7749  
    99#include <TMatrix.h>
    1010#endif
     11
    1112#ifndef MARS_MH
    1213#include "MH.h"
    1314#endif
    1415
     16#ifndef ROOT_TVector
     17#include <TVector.h>
     18#endif
     19
    1520class TArrayI;
    1621class TArrayF;
    17 class TVector;
    1822class TH1F;
    1923
Note: See TracChangeset for help on using the changeset viewer.