CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 i, and j.

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 }
int i
Definition: DBlmapReader.cc:9
static std::string const input
Definition: EdmProvDump.cc:44
int j
Definition: DBlmapReader.cc:9
void printVec ( std::ostream &  s,
const TVectorD &  input 
)

Definition at line 31 of file LinearCalibrator.cc.

References 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 }
int i
Definition: DBlmapReader.cc:9
static std::string const input
Definition: EdmProvDump.cc:44