ROOT   6.10/09 Reference Guide
testVectorIO.cxx File Reference
#include "TRandom3.h"
#include "TStopwatch.h"
#include "TSystem.h"
#include "TFile.h"
#include "TTree.h"
#include "TH1D.h"
#include "TCanvas.h"
#include <iostream>
#include "TLorentzVector.h"
#include "Math/Vector4D.h"
#include "Math/Vector3D.h"
#include "Math/Point3D.h"
#include "Track.h"
Include dependency graph for testVectorIO.cxx:

## Macros

#define DEBUG

#define DEFPOINT3D(TYPE)

#define DEFVECTOR3D(TYPE)

#define DEFVECTOR4D(TYPE)

## Functions

DEFPOINT3D (ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< Double32_t > >)

DEFVECTOR3D (ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< Double32_t > >)

DEFVECTOR4D (ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< Double32_t > >)

template<class Vector >
double getMag2 (const Vector &v)

double getMag2 (const TVector3 &v)

double getMag2 (const TLorentzVector &v)

int main (int argc, char **)

template<class Vector >

template<class U >
void setValues (ROOT::Math::DisplacementVector3D< U > &v, const double x[])

template<class U >
void setValues (ROOT::Math::PositionVector3D< U > &v, const double x[])

template<class U >
void setValues (ROOT::Math::LorentzVector< U > &v, const double x[])

void setValues (TVector3 &v, const double x[])

void setValues (TLorentzVector &v, const double x[])

template<class Vector >
double testDummy (int n)

int testResult (double w1, double r1, const std::string &type)

template<class Vector >
double write (int n, const std::string &file_name, const std::string &vector_type, int compress=0)
writing More...

template<class TrackType >
double writeTrack (int n, const std::string &file_name, int compress=0)

## Variables

const double tol = 1.0E-6

## ◆ DEBUG

 #define DEBUG

Definition at line 35 of file testVectorIO.cxx.

## ◆ DEFPOINT3D

 #define DEFPOINT3D ( TYPE )
Value:
typedef TYPE APoint3D; \
const std::string point3d_type = #TYPE ;

Definition at line 50 of file testVectorIO.cxx.

## ◆ DEFVECTOR3D

 #define DEFVECTOR3D ( TYPE )
Value:
typedef TYPE AVector3D; \
const std::string vector3d_type = #TYPE ;

Definition at line 46 of file testVectorIO.cxx.

## ◆ DEFVECTOR4D

 #define DEFVECTOR4D ( TYPE )
Value:
typedef TYPE AVector4D; \
const std::string vector4d_type = #TYPE ;

Definition at line 42 of file testVectorIO.cxx.

## ◆ DEFPOINT3D()

 DEFPOINT3D ( ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< Double32_t > > )

## ◆ DEFVECTOR3D()

 DEFVECTOR3D ( ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< Double32_t > > )

## ◆ DEFVECTOR4D()

 DEFVECTOR4D ( ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< Double32_t > > )

## ◆ getMag2() [1/3]

template<class Vector >
 double getMag2 ( const Vector & v )
inline

Definition at line 72 of file testVectorIO.cxx.

## ◆ getMag2() [2/3]

 double getMag2 ( const TVector3 & v )
inline

Definition at line 86 of file testVectorIO.cxx.

## ◆ getMag2() [3/3]

 double getMag2 ( const TLorentzVector & v )
inline

Definition at line 90 of file testVectorIO.cxx.

## ◆ main()

 int main ( int argc, char ** )

Definition at line 485 of file testVectorIO.cxx.

template<class Vector >
 double read ( const std::string & file_name )

Definition at line 209 of file testVectorIO.cxx.

## ◆ setValues() [1/5]

template<class U >
 void setValues ( ROOT::Math::DisplacementVector3D< U > & v, const double x[] )
inline

Definition at line 95 of file testVectorIO.cxx.

## ◆ setValues() [2/5]

template<class U >
 void setValues ( ROOT::Math::PositionVector3D< U > & v, const double x[] )
inline

Definition at line 100 of file testVectorIO.cxx.

## ◆ setValues() [3/5]

template<class U >
 void setValues ( ROOT::Math::LorentzVector< U > & v, const double x[] )
inline

Definition at line 105 of file testVectorIO.cxx.

## ◆ setValues() [4/5]

 void setValues ( TVector3 & v, const double x[] )
inline

Definition at line 109 of file testVectorIO.cxx.

## ◆ setValues() [5/5]

 void setValues ( TLorentzVector & v, const double x[] )
inline

Definition at line 112 of file testVectorIO.cxx.

## ◆ testDummy()

template<class Vector >
 double testDummy ( int n )

Definition at line 118 of file testVectorIO.cxx.

## ◆ testResult()

 int testResult ( double w1, double r1, const std::string & type )

Definition at line 320 of file testVectorIO.cxx.

## ◆ testVectorIO()

 int testVectorIO ( bool readOnly = false )

Definition at line 344 of file testVectorIO.cxx.

## ◆ write()

template<class Vector >
 double write ( int n, const std::string & file_name, const std::string & vector_type, int compress = 0 )

writing

Definition at line 153 of file testVectorIO.cxx.

## ◆ writeTrack()

template<class TrackType >
 double writeTrack ( int n, const std::string & file_name, int compress = 0 )

Definition at line 255 of file testVectorIO.cxx.

## ◆ tol

 const double tol = 1.0E-6

Definition at line 57 of file testVectorIO.cxx.