the matrices to access the variably-dimensioned local parameters and map them to the defined five track parameters.
More...
#include <ProjectionMatricesSet.h>
the matrices to access the variably-dimensioned local parameters and map them to the defined five track parameters.
- Author
- Andre.nosp@m.as.S.nosp@m.alzbu.nosp@m.rger.nosp@m.@cern.nosp@m..ch
Definition at line 29 of file ProjectionMatricesSet.h.
◆ ProjectionMatricesSet()
| Trk::ProjectionMatricesSet::ProjectionMatricesSet |
( |
int | maxdim | ) |
|
Explicit constructor for 1-dimensional vector.
Definition at line 12 of file ProjectionMatricesSet.cxx.
12 :
14{
15
16
17
19
20 for (int imatx=0; imatx<numMatrices; ++imatx){
21
22 std::vector<int> accessorInt(
m_maxdim);
23 std::vector<bool> parameterTag(
m_maxdim);
24 unsigned int cols = 0;
25 for (
int itag = 0, ipos = 1; itag <
m_maxdim; ++itag, ipos *= 2) {
26 bool bit = (imatx & ipos);
27 parameterTag[itag] = bit;
28 if (bit) {
30 }
31 }
32
33
35 reduction.setZero();
37 expansion.setZero();
38 if (cols){
39
41 reduction.setZero();
42
43 int reduc = 0;
44 for (
int irow = 0; irow<
m_maxdim; irow++)
45 {
46 int icol = irow - reduc;
47
49 reduction(irow,icol) = parameterTag[irow] ? 1. : 0.;
50 if (!parameterTag[irow])
51 {
52 accessorInt[irow] = -100;
53 ++reduc;
54 } else {
55 accessorInt[irow] = reduc;
56 }
57 }
58
60 }
61
65 }
66
67}
constexpr int pow(int base, int exp) noexcept
std::vector< std::vector< int > > m_accessors
std::vector< Amg::MatrixX > m_expansions
std::vector< Amg::MatrixX > m_reductions
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
◆ accessor()
| int Trk::ProjectionMatricesSet::accessor |
( |
int | mtx, |
|
|
ParamDefs | par ) const |
|
inline |
◆ expansionMatrix()
| const Amg::MatrixX & Trk::ProjectionMatricesSet::expansionMatrix |
( |
int | mtx | ) |
const |
|
inline |
◆ reductionMatrix()
| const Amg::MatrixX & Trk::ProjectionMatricesSet::reductionMatrix |
( |
int | mtx | ) |
const |
|
inline |
◆ m_accessors
| std::vector<std::vector<int> > Trk::ProjectionMatricesSet::m_accessors |
|
private |
◆ m_expansions
| std::vector<Amg::MatrixX> Trk::ProjectionMatricesSet::m_expansions |
|
private |
◆ m_maxdim
| int Trk::ProjectionMatricesSet::m_maxdim |
|
private |
◆ m_reductions
| std::vector<Amg::MatrixX> Trk::ProjectionMatricesSet::m_reductions |
|
private |
The documentation for this class was generated from the following files: