Logo ROOT   6.08/07
Reference Guide
Typedefs | Functions | Variables
testIO.cxx File Reference
#include "Math/SMatrix.h"
#include "TMatrixD.h"
#include "TMatrixDSym.h"
#include "TRandom3.h"
#include "TFile.h"
#include "TTree.h"
#include "TStopwatch.h"
#include "TSystem.h"
#include <iostream>
#include "Track.h"
Include dependency graph for testIO.cxx:

Typedefs

typedef ROOT::Math::SMatrix< double, 5, 5 > SMatrix5
 
typedef ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > SMatrixSym5
 

Functions

void FillCArray (double *m)
 
template<class Matrix >
void FillMatrix (Matrix &m)
 
template<class Matrix >
void FillMatrixSym (Matrix &m)
 
void initMatrix (int n)
 
int main ()
 
double readSMatrix (const std::string &file)
 
double readSMatrixSym (const std::string &file)
 
double readTMatrix ()
 
double readTMatrixSym ()
 
double readTrackD ()
 
double readTrackD32 ()
 
double SumCArray (double *m)
 
template<class R >
double SumSMatrix (ROOT::Math::SMatrix< double, 5, 5, R > &m)
 
template<class TM >
double SumTMatrix (TM &m)
 
int testIO ()
 
int testRead (double &r1, double &r2, double &r3)
 
int testReadSym (double &r1, double &r2, double &r3)
 
int testResult (double w1, double r1, double w2, double r2, double r3)
 
int testTrack (int nEvents)
 
int testWrite (int nEvents, double &w1, double &w2)
 
int testWriteSym (int nEvents, double &w1, double &w2)
 
double writeCArray (int n)
 
double writeSMatrix (int n, const std::string &file)
 
double writeSMatrixSym (int n, const std::string &file)
 
double writeTMatrix (int n)
 
double writeTMatrixSym (int n)
 
double writeTrackD (int n)
 
double writeTrackD32 (int n)
 

Variables

TRandom3 R
 a TMatrixD. More...
 
std::string sfile1 = "smatrix.root"
 
std::string sfile2 = "smatrix_rflx.root"
 
const std::string sname = "ROOT::Math::SMatrix<double,5,5,ROOT::Math::MatRepStd<double,5,5> >"
 
const std::string sname_sym = "ROOT::Math::SMatrix<double,5,5,ROOT::Math::MatRepSym<double,5> >"
 
std::string symfile1 = "smatrixsym.root"
 
std::string symfile2 = "smatrixsym_rflx.root"
 
TStopwatch timer
 
double tol = 1.E-16
 
double tol32 = 1.E-6
 

Typedef Documentation

◆ SMatrix5

typedef ROOT::Math::SMatrix<double,5,5 > SMatrix5

Definition at line 44 of file testIO.cxx.

◆ SMatrixSym5

typedef ROOT::Math::SMatrix<double,5,5,ROOT::Math::MatRepSym<double,5> > SMatrixSym5

Definition at line 43 of file testIO.cxx.

Function Documentation

◆ FillCArray()

void FillCArray ( double *  m)

Definition at line 79 of file testIO.cxx.

◆ FillMatrix()

template<class Matrix >
void FillMatrix ( Matrix &  m)

Definition at line 71 of file testIO.cxx.

◆ FillMatrixSym()

template<class Matrix >
void FillMatrixSym ( Matrix &  m)

Definition at line 88 of file testIO.cxx.

◆ initMatrix()

void initMatrix ( int  n)

Definition at line 126 of file testIO.cxx.

◆ main()

int main ( )

Definition at line 1005 of file testIO.cxx.

◆ readSMatrix()

double readSMatrix ( const std::string &  file)

Definition at line 474 of file testIO.cxx.

◆ readSMatrixSym()

double readSMatrixSym ( const std::string &  file)

Definition at line 520 of file testIO.cxx.

◆ readTMatrix()

double readTMatrix ( )

Definition at line 385 of file testIO.cxx.

◆ readTMatrixSym()

double readTMatrixSym ( )

Definition at line 428 of file testIO.cxx.

◆ readTrackD()

double readTrackD ( )

Definition at line 647 of file testIO.cxx.

◆ readTrackD32()

double readTrackD32 ( )

Definition at line 688 of file testIO.cxx.

◆ SumCArray()

double SumCArray ( double *  m)

Definition at line 106 of file testIO.cxx.

◆ SumSMatrix()

template<class R >
double SumSMatrix ( ROOT::Math::SMatrix< double, 5, 5, R > &  m)

Definition at line 98 of file testIO.cxx.

◆ SumTMatrix()

template<class TM >
double SumTMatrix ( TM &  m)

Definition at line 115 of file testIO.cxx.

◆ testIO()

int testIO ( )

Definition at line 907 of file testIO.cxx.

◆ testRead()

int testRead ( double &  r1,
double &  r2,
double &  r3 
)

Definition at line 763 of file testIO.cxx.

◆ testReadSym()

int testReadSym ( double &  r1,
double &  r2,
double &  r3 
)

Definition at line 819 of file testIO.cxx.

◆ testResult()

int testResult ( double  w1,
double  r1,
double  w2,
double  r2,
double  r3 
)

Definition at line 848 of file testIO.cxx.

◆ testTrack()

int testTrack ( int  nEvents)

Definition at line 870 of file testIO.cxx.

◆ testWrite()

int testWrite ( int  nEvents,
double &  w1,
double &  w2 
)

Definition at line 733 of file testIO.cxx.

◆ testWriteSym()

int testWriteSym ( int  nEvents,
double &  w1,
double &  w2 
)

Definition at line 794 of file testIO.cxx.

◆ writeCArray()

double writeCArray ( int  n)

Definition at line 170 of file testIO.cxx.

◆ writeSMatrix()

double writeSMatrix ( int  n,
const std::string &  file 
)

Definition at line 210 of file testIO.cxx.

◆ writeSMatrixSym()

double writeSMatrixSym ( int  n,
const std::string &  file 
)

Definition at line 252 of file testIO.cxx.

◆ writeTMatrix()

double writeTMatrix ( int  n)

Definition at line 296 of file testIO.cxx.

◆ writeTMatrixSym()

double writeTMatrixSym ( int  n)

Definition at line 339 of file testIO.cxx.

◆ writeTrackD()

double writeTrackD ( int  n)

Definition at line 566 of file testIO.cxx.

◆ writeTrackD32()

double writeTrackD32 ( int  n)

Definition at line 607 of file testIO.cxx.

Variable Documentation

◆ R

a TMatrixD.

Definition at line 28 of file testIO.cxx.

◆ sfile1

std::string sfile1 = "smatrix.root"

Definition at line 58 of file testIO.cxx.

◆ sfile2

std::string sfile2 = "smatrix_rflx.root"

Definition at line 59 of file testIO.cxx.

◆ sname

const std::string sname = "ROOT::Math::SMatrix<double,5,5,ROOT::Math::MatRepStd<double,5,5> >"

Definition at line 45 of file testIO.cxx.

◆ sname_sym

const std::string sname_sym = "ROOT::Math::SMatrix<double,5,5,ROOT::Math::MatRepSym<double,5> >"

Definition at line 46 of file testIO.cxx.

◆ symfile1

std::string symfile1 = "smatrixsym.root"

Definition at line 61 of file testIO.cxx.

◆ symfile2

std::string symfile2 = "smatrixsym_rflx.root"

Definition at line 62 of file testIO.cxx.

◆ timer

TStopwatch timer

Definition at line 29 of file testIO.cxx.

◆ tol

double tol = 1.E-16

Definition at line 47 of file testIO.cxx.

◆ tol32

double tol32 = 1.E-6

Definition at line 49 of file testIO.cxx.