ATLAS Offline Software
Loading...
Searching...
No Matches
AthenaPoolTestMatrix Class Reference

Simple class with various CLHEP classes for testing pool i/o from Athena. More...

#include <AthenaPoolTestMatrix.h>

Collaboration diagram for AthenaPoolTestMatrix:

Public Types

typedef std::vector< std::map< unsigned int, CLHEP::HepMatrix > > matrixMaps_t

Public Member Functions

 AthenaPoolTestMatrix ()
 ~AthenaPoolTestMatrix ()
 AthenaPoolTestMatrix (const AthenaPoolTestMatrix &)=delete
AthenaPoolTestMatrixoperator= (const AthenaPoolTestMatrix &)=delete
const CLHEP::HepMatrix & smallMatrix () const
const CLHEP::HepMatrix & bigMatrix () const
const HepGeom::Point3D< double > & point () const
const HepGeom::Point3D< double > & point1 () const
const HepGeom::Transform3D & trans () const
int numberOfMatrices () const
const CLHEP::HepMatrix & matrix (int i) const
const matrixMaps_tmatrixMaps () const
void addMatrix (const CLHEP::HepMatrix *matrixPointer)
void setTransform (const HepGeom::Transform3D trans)

Private Attributes

CLHEP::HepMatrix m_smallMatrix
CLHEP::HepMatrix * m_bigMatrix
HepGeom::Point3D< double > m_point
HepGeom::Point3D< double > * m_point1
std::vector< const CLHEP::HepMatrix * > m_matrices
matrixMaps_t m_matrixMaps
HepGeom::Transform3D m_trans
std::vector< int > m_vint
std::vector< float > m_vfloat

Detailed Description

Simple class with various CLHEP classes for testing pool i/o from Athena.

Author
RD Schaffer Created May 2004 for DC2 validation

Definition at line 35 of file AthenaPoolTestMatrix.h.

Member Typedef Documentation

◆ matrixMaps_t

typedef std::vector< std::map<unsigned int, CLHEP::HepMatrix> > AthenaPoolTestMatrix::matrixMaps_t

Definition at line 39 of file AthenaPoolTestMatrix.h.

Constructor & Destructor Documentation

◆ AthenaPoolTestMatrix() [1/2]

AthenaPoolTestMatrix::AthenaPoolTestMatrix ( )

Definition at line 21 of file AthenaPoolTestMatrix.cxx.

22 :
23 m_smallMatrix( 4,4,0 ),
24 m_bigMatrix( new CLHEP::HepMatrix(6,6,0) ),
25 m_point(1, 2, 3),
26 m_point1 (new HepGeom::Point3D<double>(4, 5, 6))
27
28{
29 double k = 7.;
30 // Fill small matrix
31 for (int i = 0; i < m_smallMatrix.num_row(); ++i) {
32 for (int j = 0; j < m_smallMatrix.num_col(); ++j) {
33 m_smallMatrix[i][j] = k;
34 k *= 5.0;
35 }
36 }
37 // Fill big matrix
38 for (int i = 0; i < m_bigMatrix->num_row(); ++i) {
39 for (int j = 0; j < m_bigMatrix->num_col(); ++j) {
40 (*m_bigMatrix)[i][j] = k;
41 k *= 5.0;
42 }
43 }
44 // Fill matrix maps
45 std::map<unsigned int, CLHEP::HepMatrix> m1;
46 std::map<unsigned int, CLHEP::HepMatrix> m2;
47 m1[5] = m_smallMatrix;
48 m1[10] = *m_bigMatrix;
49 m2[16] = *m_bigMatrix;
50 m2[35] = m_smallMatrix;
51 m_matrixMaps.push_back(std::move(m1));
52 m_matrixMaps.push_back(std::move(m2));
53
54 // Fill vectors
55 m_vint.push_back(6);
56 m_vint.push_back(26);
57 m_vint.push_back(46);
58 m_vint.push_back(66);
59 m_vfloat.push_back(7.);
60 m_vfloat.push_back(17.);
61 m_vfloat.push_back(37.);
62 m_vfloat.push_back(57.);
63}
std::vector< int > m_vint
HepGeom::Point3D< double > m_point
HepGeom::Point3D< double > * m_point1
CLHEP::HepMatrix * m_bigMatrix
std::vector< float > m_vfloat
CLHEP::HepMatrix m_smallMatrix

◆ ~AthenaPoolTestMatrix()

AthenaPoolTestMatrix::~AthenaPoolTestMatrix ( )

Definition at line 65 of file AthenaPoolTestMatrix.cxx.

66{
67 delete m_bigMatrix; m_bigMatrix=0;
68 delete m_point1; m_point1=0;
69}

◆ AthenaPoolTestMatrix() [2/2]

AthenaPoolTestMatrix::AthenaPoolTestMatrix ( const AthenaPoolTestMatrix & )
delete

Member Function Documentation

◆ addMatrix()

void AthenaPoolTestMatrix::addMatrix ( const CLHEP::HepMatrix * matrixPointer)
inline

Definition at line 96 of file AthenaPoolTestMatrix.h.

96{ m_matrices.push_back( matrixPointer ); }
std::vector< const CLHEP::HepMatrix * > m_matrices

◆ bigMatrix()

const CLHEP::HepMatrix & AthenaPoolTestMatrix::bigMatrix ( ) const
inline

Definition at line 84 of file AthenaPoolTestMatrix.h.

84{ return *m_bigMatrix; }

◆ matrix()

const CLHEP::HepMatrix & AthenaPoolTestMatrix::matrix ( int i) const
inline

Definition at line 108 of file AthenaPoolTestMatrix.h.

108{ return *(m_matrices[i]); }

◆ matrixMaps()

const AthenaPoolTestMatrix::matrixMaps_t & AthenaPoolTestMatrix::matrixMaps ( ) const
inline

Definition at line 111 of file AthenaPoolTestMatrix.h.

112{
113 return (m_matrixMaps);
114}

◆ numberOfMatrices()

int AthenaPoolTestMatrix::numberOfMatrices ( ) const
inline

Definition at line 105 of file AthenaPoolTestMatrix.h.

105{return m_matrices.size(); }

◆ operator=()

AthenaPoolTestMatrix & AthenaPoolTestMatrix::operator= ( const AthenaPoolTestMatrix & )
delete

◆ point()

const HepGeom::Point3D< double > & AthenaPoolTestMatrix::point ( ) const
inline

Definition at line 87 of file AthenaPoolTestMatrix.h.

87{ return m_point; }

◆ point1()

const HepGeom::Point3D< double > & AthenaPoolTestMatrix::point1 ( ) const
inline

Definition at line 90 of file AthenaPoolTestMatrix.h.

90{ return *m_point1; }

◆ setTransform()

void AthenaPoolTestMatrix::setTransform ( const HepGeom::Transform3D trans)
inline

Definition at line 99 of file AthenaPoolTestMatrix.h.

100{
101 m_trans = trans;
102}
const HepGeom::Transform3D & trans() const
HepGeom::Transform3D m_trans

◆ smallMatrix()

const CLHEP::HepMatrix & AthenaPoolTestMatrix::smallMatrix ( ) const
inline

Definition at line 81 of file AthenaPoolTestMatrix.h.

81{ return m_smallMatrix; }

◆ trans()

const HepGeom::Transform3D & AthenaPoolTestMatrix::trans ( ) const
inline

Definition at line 93 of file AthenaPoolTestMatrix.h.

93{ return m_trans; }

Member Data Documentation

◆ m_bigMatrix

CLHEP::HepMatrix* AthenaPoolTestMatrix::m_bigMatrix
private

Definition at line 63 of file AthenaPoolTestMatrix.h.

◆ m_matrices

std::vector< const CLHEP::HepMatrix* > AthenaPoolTestMatrix::m_matrices
private

Definition at line 66 of file AthenaPoolTestMatrix.h.

◆ m_matrixMaps

matrixMaps_t AthenaPoolTestMatrix::m_matrixMaps
private

Definition at line 67 of file AthenaPoolTestMatrix.h.

◆ m_point

HepGeom::Point3D<double> AthenaPoolTestMatrix::m_point
private

Definition at line 64 of file AthenaPoolTestMatrix.h.

◆ m_point1

HepGeom::Point3D<double>* AthenaPoolTestMatrix::m_point1
private

Definition at line 65 of file AthenaPoolTestMatrix.h.

◆ m_smallMatrix

CLHEP::HepMatrix AthenaPoolTestMatrix::m_smallMatrix
private

Definition at line 62 of file AthenaPoolTestMatrix.h.

◆ m_trans

HepGeom::Transform3D AthenaPoolTestMatrix::m_trans
private

Definition at line 68 of file AthenaPoolTestMatrix.h.

◆ m_vfloat

std::vector<float> AthenaPoolTestMatrix::m_vfloat
private

Definition at line 70 of file AthenaPoolTestMatrix.h.

◆ m_vint

std::vector<int> AthenaPoolTestMatrix::m_vint
private

Definition at line 69 of file AthenaPoolTestMatrix.h.


The documentation for this class was generated from the following files: