CMS 3D CMS Logo

Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/RecoParticleFlow/PFClusterTools/src/LinearCalibrator.cc File Reference

#include "RecoParticleFlow/PFClusterTools/interface/LinearCalibrator.h"
#include <cassert>
#include <cmath>
#include "TVector.h"
#include "TDecompLU.h"
#include "TDecompSVD.h"
#include "TDecompBK.h"
#include <iostream>

Go to the source code of this file.

Functions

void printMat (std::ostream &s, const TMatrixD &input)
void printVec (std::ostream &s, const TVectorD &input)

Function Documentation

void printMat ( std::ostream &  s,
const TMatrixD &  input 
)

Definition at line 17 of file LinearCalibrator.cc.

References i, and j.

                                                    {
        s << "\t[";
        for (int i(0); i < input.GetNrows(); i++) {
                for (int j(0); j < input.GetNcols(); j++) {
                        s << input[i][j]<< ", \t";
                }
                if (i != (input.GetNrows() - 1)) {
                        s << ";\n";
                        s << "\t";
                }
        }
        s << "\t]\n";
}
void printVec ( std::ostream &  s,
const TVectorD &  input 
)

Definition at line 31 of file LinearCalibrator.cc.

References i.

                                                    {
        s << "\t[";
        for (int i(0); i < input.GetNrows(); i++) {
                s << input[i];
                if (i != (input.GetNrows() - 1)) {
                        s << ",\n\t";
                }
        }
        s << "\t]\n";
}