ATLAS Offline Software
Loading...
Searching...
No Matches
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
19
20
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
Class definition for AthenaPoolTestMatrix.
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