CMS 3D CMS Logo

Functions
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 mps_fire::i.

17  {
18  s << "\t[";
19  for (int i(0); i < input.GetNrows(); i++) {
20  for (int j(0); j < input.GetNcols(); j++) {
21  s << input[i][j]<< ", \t";
22  }
23  if (i != (input.GetNrows() - 1)) {
24  s << ";\n";
25  s << "\t";
26  }
27  }
28  s << "\t]\n";
29 }
static std::string const input
Definition: EdmProvDump.cc:45
void printVec ( std::ostream &  s,
const TVectorD &  input 
)

Definition at line 31 of file LinearCalibrator.cc.

References mps_fire::i.

31  {
32  s << "\t[";
33  for (int i(0); i < input.GetNrows(); i++) {
34  s << input[i];
35  if (i != (input.GetNrows() - 1)) {
36  s << ",\n\t";
37  }
38  }
39  s << "\t]\n";
40 }
static std::string const input
Definition: EdmProvDump.cc:45