#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"
Go to the source code of this file.
typedef ROOT::Math::SMatrix<double,5,5 > SMatrix5 |
Definition at line 44 of file testIO.cxx.
typedef ROOT::Math::SMatrix<double,5,5,ROOT::Math::MatRepSym<double,5> > SMatrixSym5 |
Definition at line 43 of file testIO.cxx.
void FillCArray | ( | double * | m | ) |
Definition at line 79 of file testIO.cxx.
References i, j, R, and TRandom3::Rndm().
Referenced by writeCArray().
void FillMatrix | ( | Matrix & | m | ) |
Definition at line 71 of file testIO.cxx.
References i, j, m, R, and TRandom3::Rndm().
Referenced by initMatrix(), writeSMatrix(), writeTMatrix(), writeTrackD(), and writeTrackD32().
void FillMatrixSym | ( | Matrix & | m | ) |
Definition at line 88 of file testIO.cxx.
References i, j, m, R, and TRandom3::Rndm().
Referenced by initMatrix(), writeSMatrixSym(), and writeTMatrixSym().
void initMatrix | ( | int | n | ) |
Definition at line 126 of file testIO.cxx.
References TStopwatch::CpuTime(), FillMatrix(), FillMatrixSym(), i, R, TStopwatch::RealTime(), s, TRandom3::SetSeed(), TStopwatch::Start(), TStopwatch::Stop(), t, timer, and ts.
Referenced by testIO().
int main | ( | void | ) |
double readSMatrix | ( | const std::string & | file | ) |
Definition at line 474 of file testIO.cxx.
References TStopwatch::CpuTime(), double, TTree::GetEntries(), TTree::GetEntry(), i, int, n, pr(), TStopwatch::RealTime(), TTree::SetBranchAddress(), TStopwatch::Start(), TStopwatch::Stop(), SumSMatrix(), timer, and v1.
Referenced by testRead().
double readSMatrixSym | ( | const std::string & | file | ) |
Definition at line 520 of file testIO.cxx.
References TStopwatch::CpuTime(), double, TTree::GetEntries(), TTree::GetEntry(), i, int, n, pr(), TStopwatch::RealTime(), TTree::SetBranchAddress(), TStopwatch::Start(), TStopwatch::Stop(), SumSMatrix(), timer, and v1.
Referenced by testReadSym().
double readTMatrix | ( | ) |
Definition at line 385 of file testIO.cxx.
References TStopwatch::CpuTime(), double, f2, TTree::GetEntries(), TTree::GetEntry(), i, int, TObject::IsZombie(), n, pr(), TStopwatch::RealTime(), TTree::SetBranchAddress(), TStopwatch::Start(), TStopwatch::Stop(), SumTMatrix(), timer, and val.
Referenced by testRead().
double readTMatrixSym | ( | ) |
Definition at line 428 of file testIO.cxx.
References TStopwatch::CpuTime(), double, f2, TTree::GetEntries(), TTree::GetEntry(), i, int, TObject::IsZombie(), n, pr(), TStopwatch::RealTime(), TTree::SetBranchAddress(), TStopwatch::Start(), TStopwatch::Stop(), SumTMatrix(), timer, and val.
Referenced by testReadSym().
double readTrackD | ( | ) |
Definition at line 647 of file testIO.cxx.
References TrackD::CovMatrix(), TStopwatch::CpuTime(), double, TDirectoryFile::Get(), TTree::GetEntries(), TTree::GetEntry(), i, int, TObject::IsZombie(), n, pr(), TStopwatch::RealTime(), TTree::SetBranchAddress(), TStopwatch::Start(), TStopwatch::Stop(), SumSMatrix(), and timer.
Referenced by testTrack().
double readTrackD32 | ( | ) |
Definition at line 688 of file testIO.cxx.
References TrackD32::CovMatrix(), TStopwatch::CpuTime(), double, TDirectoryFile::Get(), TTree::GetEntries(), TTree::GetEntry(), i, int, TObject::IsZombie(), n, pr(), TStopwatch::RealTime(), TTree::SetBranchAddress(), TStopwatch::Start(), TStopwatch::Stop(), SumSMatrix(), and timer.
Referenced by testTrack().
double SumSMatrix | ( | ROOT::Math::SMatrix< double, 5, 5, R > & | m | ) |
Definition at line 98 of file testIO.cxx.
Referenced by readSMatrix(), readSMatrixSym(), readTrackD(), readTrackD32(), writeSMatrix(), writeSMatrixSym(), writeTrackD(), and writeTrackD32().
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.
References gSystem, initMatrix(), TSystem::Load(), nEvents, r1, r2, r3, testRead(), testReadSym(), testResult(), testTrack(), testWrite(), and testWriteSym().
Referenced by main().
Definition at line 763 of file testIO.cxx.
References ROOT::Math::fabs(), pr(), readSMatrix(), readTMatrix(), sfile1, sfile2, and tol.
Referenced by testIO().
Definition at line 819 of file testIO.cxx.
References ROOT::Math::fabs(), pr(), readSMatrixSym(), readTMatrixSym(), symfile1, symfile2, and tol.
Referenced by testIO().
int testTrack | ( | int | nEvents | ) |
Definition at line 870 of file testIO.cxx.
References ROOT::Math::fabs(), gSystem, TSystem::Load(), pr(), readTrackD(), readTrackD32(), tol, tol32, writeTrackD(), and writeTrackD32().
Referenced by testIO().
Definition at line 733 of file testIO.cxx.
References ROOT::Math::fabs(), pr(), sfile1, tol, writeCArray(), writeSMatrix(), and writeTMatrix().
Referenced by testIO().
Definition at line 794 of file testIO.cxx.
References ROOT::Math::fabs(), pr(), symfile1, tol, writeSMatrixSym(), and writeTMatrixSym().
Referenced by testIO().
double writeCArray | ( | int | n | ) |
Definition at line 170 of file testIO.cxx.
References TTree::Branch(), TStopwatch::CpuTime(), double, TTree::Fill(), FillCArray(), i, pr(), TTree::Print(), R, TStopwatch::RealTime(), TRandom3::SetSeed(), TStopwatch::Start(), TStopwatch::Stop(), SumCArray(), timer, and TFile::Write().
Referenced by testWrite().
double writeSMatrix | ( | int | n, | |
const std::string & | file | |||
) |
Definition at line 210 of file testIO.cxx.
References TStopwatch::CpuTime(), double, FillMatrix(), i, pr(), R, TStopwatch::RealTime(), TRandom3::SetSeed(), sname, TStopwatch::Start(), TStopwatch::Stop(), SumSMatrix(), and timer.
Referenced by testWrite().
double writeSMatrixSym | ( | int | n, | |
const std::string & | file | |||
) |
Definition at line 252 of file testIO.cxx.
References TStopwatch::CpuTime(), double, FillMatrixSym(), i, pr(), R, TStopwatch::RealTime(), TRandom3::SetSeed(), sname_sym, TStopwatch::Start(), TStopwatch::Stop(), SumSMatrix(), and timer.
Referenced by testWriteSym().
double writeTMatrix | ( | int | n | ) |
Definition at line 296 of file testIO.cxx.
References TTree::Branch(), TMatrixT< Element >::Class(), TStopwatch::CpuTime(), double, f2, TTree::Fill(), FillMatrix(), i, TClass::IgnoreTObjectStreamer(), pr(), TTree::Print(), R, TStopwatch::RealTime(), TRandom3::SetSeed(), TStopwatch::Start(), TStopwatch::Stop(), SumTMatrix(), timer, and TObject::Write().
Referenced by testWrite().
double writeTMatrixSym | ( | int | n | ) |
Definition at line 339 of file testIO.cxx.
References TTree::Branch(), TMatrixTSym< Element >::Class(), TStopwatch::CpuTime(), double, f2, TTree::Fill(), FillMatrixSym(), i, TClass::IgnoreTObjectStreamer(), pr(), TTree::Print(), R, TStopwatch::RealTime(), TRandom3::SetSeed(), TStopwatch::Start(), TStopwatch::Stop(), SumTMatrix(), timer, and TObject::Write().
Referenced by testWriteSym().
double writeTrackD | ( | int | n | ) |
Definition at line 566 of file testIO.cxx.
References TTree::Branch(), TrackD::CovMatrix(), TStopwatch::CpuTime(), double, TTree::Fill(), FillMatrix(), i, pr(), TTree::Print(), R, TStopwatch::RealTime(), TRandom3::SetSeed(), TStopwatch::Start(), TStopwatch::Stop(), SumSMatrix(), timer, and TFile::Write().
Referenced by testTrack().
double writeTrackD32 | ( | int | n | ) |
Definition at line 607 of file testIO.cxx.
References TTree::Branch(), TrackD32::CovMatrix(), TStopwatch::CpuTime(), double, TTree::Fill(), FillMatrix(), i, pr(), TTree::Print(), R, TStopwatch::RealTime(), TRandom3::SetSeed(), TStopwatch::Start(), TStopwatch::Stop(), SumSMatrix(), timer, and TFile::Write().
Referenced by testTrack().
a TMatrixD.
Definition at line 28 of file testIO.cxx.
Referenced by RooMath::ComplexErrFunc(), Reflex::PluginService::Create(), create_array_with_different_lengths(), create_circ(), UnitTesting::MethodUnitTestWithComplexData::create_data(), create_fullcirc(), create_lin(), create_lin_Nvar(), create_lin_Nvar_Arr(), create_lin_Nvar_categories(), create_lin_Nvar_discrete(), create_lin_Nvar_double(), create_lin_Nvar_weighted(), create_lin_Nvar_withFriend(), create_lin_NvarObsolete(), create_ManyVars(), create_multiclassdata(), UnitTesting::utFactory::create_Tree(), createOnionData(), Reflex::PluginService::CreateWithId(), doTest(), doTestL(), FillCArray(), FillMatrix(), FillMatrixSym(), G__G__EG_129_0_30(), G__G__Eve1_573_0_29(), G__G__Eve1_574_0_29(), G__G__GenVector32_176_0_10(), G__G__GenVector32_177_0_7(), G__G__GenVector32_178_0_11(), G__G__GenVector32_179_0_11(), G__G__GenVector32_180_0_15(), G__G__GenVector32_181_0_17(), G__G__GenVector32_182_0_9(), G__G__GenVector32_183_0_17(), G__G__GenVector32_184_0_14(), G__G__GenVector32_185_0_14(), G__G__GenVector32_186_0_14(), G__G__GenVector32_187_0_14(), G__G__GenVector32_188_0_14(), G__G__GenVector32_189_0_14(), G__G__GenVector32_190_0_14(), G__G__GenVector32_191_0_14(), G__G__GenVector32_192_0_14(), G__G__GenVector32_193_0_14(), G__G__GenVector32_194_0_14(), G__G__GenVector32_195_0_14(), G__G__GenVector32_196_0_14(), G__G__GenVector32_197_0_14(), G__G__GenVector32_198_0_14(), G__G__GenVector32_199_0_14(), G__G__GenVector32_200_0_19(), G__G__GenVector32_201_0_23(), G__G__GenVector32_202_0_20(), G__G__GenVector32_203_0_23(), G__G__GenVector32_204_0_22(), G__G__GenVector32_205_0_22(), G__G__GenVector32_206_0_22(), G__G__GenVector32_207_0_22(), G__G__GenVector_101_0_10(), G__G__GenVector_102_0_11(), G__G__GenVector_105_0_7(), G__G__GenVector_106_0_11(), G__G__GenVector_137_0_11(), G__G__GenVector_139_0_11(), G__G__GenVector_141_0_15(), G__G__GenVector_142_0_14(), G__G__GenVector_145_0_17(), G__G__GenVector_146_0_14(), G__G__GenVector_149_0_9(), G__G__GenVector_150_0_14(), G__G__GenVector_153_0_17(), G__G__GenVector_154_0_14(), G__G__GenVector_158_0_14(), G__G__GenVector_160_0_14(), G__G__GenVector_162_0_14(), G__G__GenVector_164_0_14(), G__G__GenVector_166_0_19(), G__G__GenVector_167_0_22(), G__G__GenVector_170_0_20(), G__G__GenVector_171_0_22(), G__G__GenVector_172_0_23(), G__G__GenVector_173_0_22(), G__G__GenVector_174_0_23(), G__G__GenVector_175_0_22(), Reflex::FunctionDistiller< __R_TN__ R(__R_TN__ T0, __R_TN__ T1, __R_TN__ T2, __R_TN__ T3, __R_TN__ T4, __R_TN__ T5, __R_TN__ T6, __R_TN__ T7, __R_TN__ T8, __R_TN__ T9, __R_TN__ T10, __R_TN__ T11, __R_TN__ T12, __R_TN__ T13, __R_TN__ T14, __R_TN__ T15)>::Get(), Reflex::FunctionDistiller< __R_TN__ R(__R_TN__ T0, __R_TN__ T1, __R_TN__ T2, __R_TN__ T3, __R_TN__ T4)>::Get(), Reflex::FunctionDistiller< __R_TN__ R(__R_TN__ T0, __R_TN__ T1, __R_TN__ T2, __R_TN__ T3)>::Get(), Reflex::FunctionDistiller< R(void)>::Get(), Reflex::FunctionDistiller< __R_TN__ R(__R_TN__ T0)>::Get(), Reflex::FunctionDistiller< __R_TN__ R(__R_TN__ T0, __R_TN__ T1, __R_TN__ T2, __R_TN__ T3, __R_TN__ T4, __R_TN__ T5, __R_TN__ T6, __R_TN__ T7, __R_TN__ T8, __R_TN__ T9, __R_TN__ T10, __R_TN__ T11, __R_TN__ T12, __R_TN__ T13, __R_TN__ T14)>::Get(), Reflex::FunctionDistiller< __R_TN__ R(__R_TN__ T0, __R_TN__ T1, __R_TN__ T2, __R_TN__ T3, __R_TN__ T4, __R_TN__ T5, __R_TN__ T6, __R_TN__ T7, __R_TN__ T8, __R_TN__ T9, __R_TN__ T10, __R_TN__ T11, __R_TN__ T12, __R_TN__ T13)>::Get(), Reflex::FunctionDistiller< __R_TN__ R(__R_TN__ T0, __R_TN__ T1, __R_TN__ T2, __R_TN__ T3, __R_TN__ T4, __R_TN__ T5, __R_TN__ T6, __R_TN__ T7, __R_TN__ T8)>::Get(), Reflex::FunctionDistiller< __R_TN__ R(__R_TN__ T0, __R_TN__ T1)>::Get(), Reflex::FunctionDistiller< __R_TN__ R(__R_TN__ T0, __R_TN__ T1, __R_TN__ T2, __R_TN__ T3, __R_TN__ T4, __R_TN__ T5, __R_TN__ T6, __R_TN__ T7, __R_TN__ T8, __R_TN__ T9, __R_TN__ T10, __R_TN__ T11)>::Get(), Reflex::FunctionDistiller< __R_TN__ R(__R_TN__ T0, __R_TN__ T1, __R_TN__ T2, __R_TN__ T3, __R_TN__ T4, __R_TN__ T5, __R_TN__ T6, __R_TN__ T7, __R_TN__ T8, __R_TN__ T9, __R_TN__ T10)>::Get(), Reflex::FunctionDistiller< __R_TN__ R(__R_TN__ T0, __R_TN__ T1, __R_TN__ T2, __R_TN__ T3, __R_TN__ T4, __R_TN__ T5, __R_TN__ T6, __R_TN__ T7)>::Get(), Reflex::FunctionDistiller< __R_TN__ R(__R_TN__ T0, __R_TN__ T1, __R_TN__ T2)>::Get(), Reflex::FunctionDistiller< __R_TN__ R(__R_TN__ T0, __R_TN__ T1, __R_TN__ T2, __R_TN__ T3, __R_TN__ T4, __R_TN__ T5, __R_TN__ T6, __R_TN__ T7, __R_TN__ T8, __R_TN__ T9)>::Get(), Reflex::FunctionDistiller< __R_TN__ R(__R_TN__ T0, __R_TN__ T1, __R_TN__ T2, __R_TN__ T3, __R_TN__ T4, __R_TN__ T5, __R_TN__ T6)>::Get(), Reflex::FunctionDistiller< __R_TN__ R(__R_TN__ T0, __R_TN__ T1, __R_TN__ T2, __R_TN__ T3, __R_TN__ T4, __R_TN__ T5, __R_TN__ T6, __R_TN__ T7, __R_TN__ T8, __R_TN__ T9, __R_TN__ T10, __R_TN__ T11, __R_TN__ T12)>::Get(), Reflex::FunctionDistiller< __R_TN__ R(__R_TN__ T0, __R_TN__ T1, __R_TN__ T2, __R_TN__ T3, __R_TN__ T4, __R_TN__ T5)>::Get(), CmsMagField::GetField(), getGaussRnd(), TGQt::GetRGB(), gsl_poly_complex_solve_cubic(), gsl_poly_complex_solve_quartic(), initMatrix(), TWin32Thread::Join(), makeTree_circ(), makeTree_lin_Nvar(), TMVA::CostComplexityPruneTool::Optimize(), TMVA::CCPruner::Optimize(), quadset_circ(), read(), TGWin32::ReadGIF(), Reconstruct(), rootgeom(), test24(), testDummy(), TestRotation(), testSMatrix(), th2polyEurope(), TSVDUnfoldExample(), write(), writeCArray(), TGWin32::WriteGIF(), writeSMatrix(), writeSMatrixSym(), writeTMatrix(), writeTMatrixSym(), writeTrack(), writeTrackD(), and writeTrackD32().
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> >" |
Definition at line 45 of file testIO.cxx.
Referenced by ClassImp(), TSystem::CompileMacro(), TGDocument::DataChanged(), TMinuit::DefineParameter(), TGeoBuilder::Division(), TApplicationServer::ExecLogon(), TRint::ExecLogon(), TGeoElementTable::ExportElementsRN(), TH2Poly::Fill(), TGContainer::FindFrameByName(), TGeoManager::FindVolumeFast(), FitUsingRooFit2(), XrdSecProtocolkrb4::getCredentials(), TGFileBrowser::GetFilePictures(), TGeoManager::GetMaterial(), TGeoManager::GetMaterialIndex(), TGeoManager::GetMedium(), TFile::GetType(), TGeoManager::GetVolume(), MultiGaussRooPdf::MultiGaussRooPdf(), TGeoManager::OptimizeVoxels(), R__GenerateTClassForPair(), TClass::ReadRules(), TGDocument::Save(), TGeoManager::SaveAttributes(), TEnv::SaveLevel(), TGeoScaledShape::SavePrimitive(), TTreeViewer::SaveSource(), TGTransientFrame::SaveSource(), TGMainFrame::SaveSource(), TStyle::SaveSource(), TGeoPconEditor::SetModel(), TGeoTrd1Editor::SetModel(), TGeoNodeEditor::SetModel(), TGeoTrd2Editor::SetModel(), TGeoMediumEditor::SetModel(), TGeoRotationEditor::SetModel(), TGeoTorusEditor::SetModel(), TGeoGtraEditor::SetModel(), TGeoBBoxEditor::SetModel(), TGeoTranslationEditor::SetModel(), TGeoParaEditor::SetModel(), TGeoCombiTransEditor::SetModel(), TGeoEltuEditor::SetModel(), TGeoPgonEditor::SetModel(), TGeoTrapEditor::SetModel(), TGeoHypeEditor::SetModel(), testSMatrix(), TGraphAsymmErrors::TGraphAsymmErrors(), TGeoBuilder::Volume(), writeSMatrix(), XrdFrmConfig::xpol(), and XrdFfsFsinfo_cache_search().
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" |
Definition at line 29 of file testIO.cxx.
Definition at line 47 of file testIO.cxx.