ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkEvent
TrkEventPrimitives
TrkEventPrimitives
ProjectionMatricesSet.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// ProjectionMatricesSet.h, (c) ATLAS Detector software
8
9
#ifndef TRKEVENTPRIMITIVES_PROJECTIONMATRICESSET_H
10
#define TRKEVENTPRIMITIVES_PROJECTIONMATRICESSET_H
11
12
// Amg
13
#include "
EventPrimitives/EventPrimitives.h
"
14
// Trk
15
#include "
TrkEventPrimitives/ParamDefs.h
"
16
18
namespace
Trk
{
19
20
28
29
class
ProjectionMatricesSet
{
30
31
public
:
33
ProjectionMatricesSet
(
int
maxdim);
34
36
const
Amg::MatrixX
&
expansionMatrix
(
int
mtx)
const
;
37
39
const
Amg::MatrixX
&
reductionMatrix
(
int
mtx)
const
;
40
42
int
accessor
(
int
mtx,
ParamDefs
par)
const
;
43
44
private
:
45
int
m_maxdim
;
46
std::vector<Amg::MatrixX>
m_expansions
;
47
std::vector<Amg::MatrixX>
m_reductions
;
48
std::vector<std::vector<int>>
m_accessors
;
49
50
};
51
52
inline
const
Amg::MatrixX
&
ProjectionMatricesSet::expansionMatrix
(
int
mtx)
const
{
return
m_expansions
[mtx]; }
53
54
inline
const
Amg::MatrixX
&
ProjectionMatricesSet::reductionMatrix
(
int
mtx)
const
{
return
m_reductions
[mtx]; }
55
56
inline
int
ProjectionMatricesSet::accessor
(
int
mtx,
ParamDefs
par)
const
{
return
(par-(
m_accessors
[mtx])[par]); }
57
58
}
// end of namespace
59
60
61
#endif
// TRKEVENTPRIMITIVES_PROJECTIONMATRICESSET_H
EventPrimitives.h
ParamDefs.h
Trk::ProjectionMatricesSet::accessor
int accessor(int mtx, ParamDefs par) const
Accessors for members.
Definition
ProjectionMatricesSet.h:56
Trk::ProjectionMatricesSet::m_accessors
std::vector< std::vector< int > > m_accessors
Definition
ProjectionMatricesSet.h:48
Trk::ProjectionMatricesSet::m_expansions
std::vector< Amg::MatrixX > m_expansions
Definition
ProjectionMatricesSet.h:46
Trk::ProjectionMatricesSet::m_reductions
std::vector< Amg::MatrixX > m_reductions
Definition
ProjectionMatricesSet.h:47
Trk::ProjectionMatricesSet::expansionMatrix
const Amg::MatrixX & expansionMatrix(int mtx) const
Expansion matrix return.
Definition
ProjectionMatricesSet.h:52
Trk::ProjectionMatricesSet::ProjectionMatricesSet
ProjectionMatricesSet(int maxdim)
Explicit constructor for 1-dimensional vector.
Definition
ProjectionMatricesSet.cxx:12
Trk::ProjectionMatricesSet::reductionMatrix
const Amg::MatrixX & reductionMatrix(int mtx) const
Reduction matrix return.
Definition
ProjectionMatricesSet.h:54
Trk::ProjectionMatricesSet::m_maxdim
int m_maxdim
Definition
ProjectionMatricesSet.h:45
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition
EventPrimitives.h:27
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Trk::ParamDefs
ParamDefs
This file defines the parameter enums in the Trk namespace.
Definition
ParamDefs.h:32
Generated on
for ATLAS Offline Software by
1.17.0