ATLAS Offline Software
AthenaPoolTestMatrix.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 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(m1);
52  m_matrixMaps.push_back(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 
66 {
67  delete m_bigMatrix; m_bigMatrix=0;
68  delete m_point1; m_point1=0;
69 }
AthenaPoolTestMatrix::m_point1
HepGeom::Point3D< double > * m_point1
Definition: AthenaPoolTestMatrix.h:68
python.SystemOfUnits.m2
int m2
Definition: SystemOfUnits.py:92
AthenaPoolTestMatrix::AthenaPoolTestMatrix
AthenaPoolTestMatrix()
Definition: AthenaPoolTestMatrix.cxx:21
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
python.changerun.m1
m1
Definition: changerun.py:32
AthenaPoolTestMatrix::m_matrixMaps
matrixMaps_t m_matrixMaps
Definition: AthenaPoolTestMatrix.h:70
lumiFormat.i
int i
Definition: lumiFormat.py:85
AthenaPoolTestMatrix.h
Class definition for AthenaPoolTestMatrix.
CLHEP
STD'S.
Definition: IAtRndmGenSvc.h:19
xAOD::double
double
Definition: CompositeParticle_v1.cxx:159
AthenaPoolTestMatrix::m_vint
std::vector< int > m_vint
Definition: AthenaPoolTestMatrix.h:72
AthenaPoolTestMatrix::m_smallMatrix
CLHEP::HepMatrix m_smallMatrix
Definition: AthenaPoolTestMatrix.h:65
HepGeom
Definition: VP1String.h:30
AthenaPoolTestMatrix::m_vfloat
std::vector< float > m_vfloat
Definition: AthenaPoolTestMatrix.h:73
AthenaPoolTestMatrix::m_bigMatrix
CLHEP::HepMatrix * m_bigMatrix
Definition: AthenaPoolTestMatrix.h:66
AthenaPoolTestMatrix::~AthenaPoolTestMatrix
~AthenaPoolTestMatrix()
Definition: AthenaPoolTestMatrix.cxx:65
fitman.k
k
Definition: fitman.py:528