ROOT  6.06/09
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:

Go to the source code of this file.

Typedefs

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

Functions

template<class Matrix >
void FillMatrix (Matrix &m)
 
void FillCArray (double *m)
 
template<class Matrix >
void FillMatrixSym (Matrix &m)
 
template<class R >
double SumSMatrix (ROOT::Math::SMatrix< double, 5, 5, R > &m)
 
double SumCArray (double *m)
 
template<class TM >
double SumTMatrix (TM &m)
 
void initMatrix (int n)
 
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 readTMatrix ()
 
double readTMatrixSym ()
 
double readSMatrix (const std::string &file)
 
double readSMatrixSym (const std::string &file)
 
double writeTrackD (int n)
 
double writeTrackD32 (int n)
 
double readTrackD ()
 
double readTrackD32 ()
 
int testWrite (int nEvents, double &w1, double &w2)
 
int testRead (double &r1, double &r2, double &r3)
 
int testWriteSym (int nEvents, double &w1, double &w2)
 
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 testIO ()
 
int main ()
 

Variables

TRandom3 R
 a TMatrixD. More...
 
TStopwatch timer
 
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> >"
 
double tol = 1.E-16
 
double tol32 = 1.E-6
 
std::string sfile1 = "smatrix.root"
 
std::string sfile2 = "smatrix_rflx.root"
 
std::string symfile1 = "smatrixsym.root"
 
std::string symfile2 = "smatrixsym_rflx.root"
 

Typedef Documentation

Definition at line 44 of file testIO.cxx.

Definition at line 43 of file testIO.cxx.

Function Documentation

void FillCArray ( double m)

Definition at line 79 of file testIO.cxx.

Referenced by writeCArray().

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

Definition at line 71 of file testIO.cxx.

Referenced by initMatrix(), writeSMatrix(), writeTMatrix(), writeTrackD(), and writeTrackD32().

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

Definition at line 88 of file testIO.cxx.

Referenced by initMatrix(), writeSMatrixSym(), and writeTMatrixSym().

void initMatrix ( int  n)

Definition at line 126 of file testIO.cxx.

Referenced by testIO().

int main ( )

Definition at line 1005 of file testIO.cxx.

double readSMatrix ( const std::string &  file)

Definition at line 474 of file testIO.cxx.

Referenced by testRead().

double readSMatrixSym ( const std::string &  file)

Definition at line 520 of file testIO.cxx.

Referenced by testReadSym().

double readTMatrix ( )

Definition at line 385 of file testIO.cxx.

Referenced by testRead().

double readTMatrixSym ( )

Definition at line 428 of file testIO.cxx.

Referenced by testReadSym().

double readTrackD ( )

Definition at line 647 of file testIO.cxx.

Referenced by testTrack().

double readTrackD32 ( )

Definition at line 688 of file testIO.cxx.

Referenced by testTrack().

double SumCArray ( double m)

Definition at line 106 of file testIO.cxx.

Referenced by writeCArray().

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

Definition at line 115 of file testIO.cxx.

Referenced by readTMatrix(), readTMatrixSym(), writeTMatrix(), and writeTMatrixSym().

int testIO ( )

Definition at line 907 of file testIO.cxx.

Referenced by main().

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

Definition at line 763 of file testIO.cxx.

Referenced by testIO().

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

Definition at line 819 of file testIO.cxx.

Referenced by testIO().

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

Definition at line 848 of file testIO.cxx.

Referenced by testIO().

int testTrack ( int  nEvents)

Definition at line 870 of file testIO.cxx.

Referenced by testIO().

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

Definition at line 733 of file testIO.cxx.

Referenced by testIO().

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

Definition at line 794 of file testIO.cxx.

Referenced by testIO().

double writeCArray ( int  n)

Definition at line 170 of file testIO.cxx.

Referenced by testWrite().

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

Definition at line 210 of file testIO.cxx.

Referenced by testWrite().

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

Definition at line 252 of file testIO.cxx.

Referenced by testWriteSym().

double writeTMatrix ( int  n)

Definition at line 296 of file testIO.cxx.

Referenced by testWrite().

double writeTMatrixSym ( int  n)

Definition at line 339 of file testIO.cxx.

Referenced by testWriteSym().

double writeTrackD ( int  n)

Definition at line 566 of file testIO.cxx.

Referenced by testTrack().

double writeTrackD32 ( int  n)

Definition at line 607 of file testIO.cxx.

Referenced by testTrack().

Variable Documentation

std::string sfile1 = "smatrix.root"

Definition at line 58 of file testIO.cxx.

Referenced by testRead(), and testWrite().

std::string sfile2 = "smatrix_rflx.root"

Definition at line 59 of file testIO.cxx.

Referenced by testRead().

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> >"

Definition at line 46 of file testIO.cxx.

Referenced by writeSMatrixSym().

std::string symfile1 = "smatrixsym.root"

Definition at line 61 of file testIO.cxx.

Referenced by testReadSym(), and testWriteSym().

std::string symfile2 = "smatrixsym_rflx.root"

Definition at line 62 of file testIO.cxx.

Referenced by testReadSym().

TStopwatch timer

Definition at line 29 of file testIO.cxx.

double tol = 1.E-16

Definition at line 47 of file testIO.cxx.

Referenced by testRead(), testReadSym(), testResult(), testTrack(), testWrite(), and testWriteSym().

double tol32 = 1.E-6

Definition at line 49 of file testIO.cxx.

Referenced by testTrack().