ATLAS Offline Software
Loading...
Searching...
No Matches
AtlasTest
DatabaseTest
AthenaPoolTestData
src
AthenaPoolTestMatrix.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
9
/***************************************************************************
10
Athena Pool Test data package
11
-----------------------------------------
12
***************************************************************************/
13
14
//<doc><file> $Id: AthenaPoolTestMatrix.cxx,v 1.11 2006-08-30 07:49:43 schaffer Exp $
15
//<version> $Name: not supported by cvs2svn $
16
17
18
#include "
AthenaPoolTestData/AthenaPoolTestMatrix.h
"
19
20
21
AthenaPoolTestMatrix::AthenaPoolTestMatrix
()
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
}
64
65
AthenaPoolTestMatrix::~AthenaPoolTestMatrix
()
66
{
67
delete
m_bigMatrix
;
m_bigMatrix
=0;
68
delete
m_point1
;
m_point1
=0;
69
}
AthenaPoolTestMatrix.h
Class definition for AthenaPoolTestMatrix.
AthenaPoolTestMatrix::m_matrixMaps
matrixMaps_t m_matrixMaps
Definition
AthenaPoolTestMatrix.h:67
AthenaPoolTestMatrix::m_vint
std::vector< int > m_vint
Definition
AthenaPoolTestMatrix.h:69
AthenaPoolTestMatrix::m_point
HepGeom::Point3D< double > m_point
Definition
AthenaPoolTestMatrix.h:64
AthenaPoolTestMatrix::m_point1
HepGeom::Point3D< double > * m_point1
Definition
AthenaPoolTestMatrix.h:65
AthenaPoolTestMatrix::AthenaPoolTestMatrix
AthenaPoolTestMatrix()
Definition
AthenaPoolTestMatrix.cxx:21
AthenaPoolTestMatrix::m_bigMatrix
CLHEP::HepMatrix * m_bigMatrix
Definition
AthenaPoolTestMatrix.h:63
AthenaPoolTestMatrix::~AthenaPoolTestMatrix
~AthenaPoolTestMatrix()
Definition
AthenaPoolTestMatrix.cxx:65
AthenaPoolTestMatrix::m_vfloat
std::vector< float > m_vfloat
Definition
AthenaPoolTestMatrix.h:70
AthenaPoolTestMatrix::m_smallMatrix
CLHEP::HepMatrix m_smallMatrix
Definition
AthenaPoolTestMatrix.h:62
HepMatrix
CLHEP
STD'S.
Definition
CaloNoiseCompCondAlg.h:58
HepGeom
Definition
VP1String.h:30
Generated on
for ATLAS Offline Software by
1.14.0