ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
AtlasTest
DatabaseTest
AthenaPoolTestData
AthenaPoolTestData
AthenaPoolTestMatrix.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
16
/***************************************************************************
17
Athena Pool Test data package
18
-----------------------------------------
19
***************************************************************************/
20
21
//<doc><file> $Id: AthenaPoolTestMatrix.h,v 1.10 2006-08-30 07:49:42 schaffer Exp $
22
//<version> $Name: not supported by cvs2svn $
23
24
#ifndef ATHENAPOOLTESTDATA_ATHENAPOOLTESTMATRIX_H
25
# define ATHENAPOOLTESTDATA_ATHENAPOOLTESTMATRIX_H
26
27
28
#include "CLHEP/Matrix/Matrix.h"
29
#include "CLHEP/Geometry/Point3D.h"
30
#include "CLHEP/Geometry/Transform3D.h"
31
#include "
AthenaKernel/CLASS_DEF.h
"
32
#include <map>
33
34
35
class
AthenaPoolTestMatrix
36
{
37
public
:
38
39
typedef
std::vector< std::map<unsigned int, CLHEP::HepMatrix> >
matrixMaps_t
;
40
41
AthenaPoolTestMatrix
();
42
43
~AthenaPoolTestMatrix
();
44
45
AthenaPoolTestMatrix
(
const
AthenaPoolTestMatrix
&) =
delete
;
46
AthenaPoolTestMatrix
&
operator=
(
const
AthenaPoolTestMatrix
&) =
delete
;
47
48
const
CLHEP::HepMatrix&
smallMatrix
()
const
;
49
const
CLHEP::HepMatrix&
bigMatrix
()
const
;
50
const
HepGeom::Point3D<double>&
point
()
const
;
51
const
HepGeom::Point3D<double>&
point1
()
const
;
52
const
HepGeom::Transform3D&
trans
()
const
;
53
54
int
numberOfMatrices
()
const
;
55
const
CLHEP::HepMatrix&
matrix
(
int
i )
const
;
56
const
matrixMaps_t
&
matrixMaps
()
const
;
57
58
void
addMatrix
(
const
CLHEP::HepMatrix* matrixPointer);
59
void
setTransform
(
const
HepGeom::Transform3D
trans
);
60
61
private
:
62
CLHEP::HepMatrix
m_smallMatrix
;
63
CLHEP::HepMatrix*
m_bigMatrix
;
64
HepGeom::Point3D<double>
m_point
;
65
HepGeom::Point3D<double>*
m_point1
;
66
std::vector< const CLHEP::HepMatrix* >
m_matrices
;
67
matrixMaps_t
m_matrixMaps
;
68
HepGeom::Transform3D
m_trans
;
69
std::vector<int>
m_vint
;
70
std::vector<float>
m_vfloat
;
71
72
};
73
74
75
CLASS_DEF
(
AthenaPoolTestMatrix
, 153882668, 0)
76
77
//<<<<<< INLINE PUBLIC FUNCTIONS >>>>>>
78
//<<<<<< INLINE MEMBER FUNCTIONS >>>>>>
79
80
inline
const
CLHEP
::
HepMatrix
&
81
AthenaPoolTestMatrix
::
smallMatrix
()
const
{
return
m_smallMatrix
; }
82
83
inline
const
CLHEP::HepMatrix&
84
AthenaPoolTestMatrix::bigMatrix
()
const
{
return
*
m_bigMatrix
; }
85
86
inline
const
HepGeom::Point3D<double>&
87
AthenaPoolTestMatrix::point
()
const
{
return
m_point
; }
88
89
inline
const
HepGeom::Point3D<double>&
90
AthenaPoolTestMatrix::point1
()
const
{
return
*
m_point1
; }
91
92
inline
const
HepGeom::Transform3D&
93
AthenaPoolTestMatrix::trans
()
const
{
return
m_trans
; }
94
95
inline
void
96
AthenaPoolTestMatrix::addMatrix
(
const
CLHEP::HepMatrix* matrixPointer ) {
m_matrices
.push_back( matrixPointer ); }
97
98
inline
void
99
AthenaPoolTestMatrix::setTransform
(
const
HepGeom::Transform3D
trans
)
100
{
101
m_trans
=
trans
;
102
}
103
104
inline
int
105
AthenaPoolTestMatrix::numberOfMatrices
()
const
{
return
m_matrices
.size(); }
106
107
inline
const
CLHEP::HepMatrix&
108
AthenaPoolTestMatrix::matrix
(
int
i )
const
{
return
*(
m_matrices
[i]); }
109
110
inline
const
AthenaPoolTestMatrix::matrixMaps_t
&
111
AthenaPoolTestMatrix::matrixMaps
()
const
112
{
113
return
(
m_matrixMaps
);
114
}
115
116
117
#endif
// ATHENAPOOLTESTDATA_ATHENAPOOLTESTMATRIX_H
CLASS_DEF.h
macros to associate a CLID to a type
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
AthenaPoolTestMatrix
Simple class with various CLHEP classes for testing pool i/o from Athena.
Definition
AthenaPoolTestMatrix.h:36
AthenaPoolTestMatrix::m_matrixMaps
matrixMaps_t m_matrixMaps
Definition
AthenaPoolTestMatrix.h:67
AthenaPoolTestMatrix::numberOfMatrices
int numberOfMatrices() const
Definition
AthenaPoolTestMatrix.h:105
AthenaPoolTestMatrix::operator=
AthenaPoolTestMatrix & operator=(const AthenaPoolTestMatrix &)=delete
AthenaPoolTestMatrix::AthenaPoolTestMatrix
AthenaPoolTestMatrix(const AthenaPoolTestMatrix &)=delete
AthenaPoolTestMatrix::matrixMaps
const matrixMaps_t & matrixMaps() const
Definition
AthenaPoolTestMatrix.h:111
AthenaPoolTestMatrix::setTransform
void setTransform(const HepGeom::Transform3D trans)
Definition
AthenaPoolTestMatrix.h:99
AthenaPoolTestMatrix::m_vint
std::vector< int > m_vint
Definition
AthenaPoolTestMatrix.h:69
AthenaPoolTestMatrix::bigMatrix
const CLHEP::HepMatrix & bigMatrix() const
Definition
AthenaPoolTestMatrix.h:84
AthenaPoolTestMatrix::m_point
HepGeom::Point3D< double > m_point
Definition
AthenaPoolTestMatrix.h:64
AthenaPoolTestMatrix::trans
const HepGeom::Transform3D & trans() const
Definition
AthenaPoolTestMatrix.h:93
AthenaPoolTestMatrix::matrix
const CLHEP::HepMatrix & matrix(int i) const
Definition
AthenaPoolTestMatrix.h:108
AthenaPoolTestMatrix::m_point1
HepGeom::Point3D< double > * m_point1
Definition
AthenaPoolTestMatrix.h:65
AthenaPoolTestMatrix::addMatrix
void addMatrix(const CLHEP::HepMatrix *matrixPointer)
Definition
AthenaPoolTestMatrix.h:96
AthenaPoolTestMatrix::point1
const HepGeom::Point3D< double > & point1() const
Definition
AthenaPoolTestMatrix.h:90
AthenaPoolTestMatrix::m_trans
HepGeom::Transform3D m_trans
Definition
AthenaPoolTestMatrix.h:68
AthenaPoolTestMatrix::point
const HepGeom::Point3D< double > & point() const
Definition
AthenaPoolTestMatrix.h:87
AthenaPoolTestMatrix::matrixMaps_t
std::vector< std::map< unsigned int, CLHEP::HepMatrix > > matrixMaps_t
Definition
AthenaPoolTestMatrix.h:39
AthenaPoolTestMatrix::m_matrices
std::vector< const CLHEP::HepMatrix * > m_matrices
Definition
AthenaPoolTestMatrix.h:66
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::smallMatrix
const CLHEP::HepMatrix & smallMatrix() const
Definition
AthenaPoolTestMatrix.h:81
AthenaPoolTestMatrix::m_smallMatrix
CLHEP::HepMatrix m_smallMatrix
Definition
AthenaPoolTestMatrix.h:62
HepMatrix
const
CLHEP
STD'S.
Definition
CaloNoiseCompCondAlg.h:57
Generated on
for ATLAS Offline Software by
1.17.0