14#include "GaudiKernel/MsgStream.h"
25 Amg::VectorX::operator[](0) = par1.first;
31 Amg::VectorX::operator[](0) = lp[
Trk::locX];
32 Amg::VectorX::operator[](1) = lp[
Trk::locY];
38 Amg::VectorX::operator[](0) = par1.first;
41 Amg::VectorX::operator[](1) = par2.first;
51 Amg::VectorX::operator[](0) = tloc1;
52 Amg::VectorX::operator[](1) = tloc2;
53 Amg::VectorX::operator[](2) = tphi;
54 Amg::VectorX::operator[](3) = ttheta;
55 Amg::VectorX::operator[](4) = tqOverP;
59 :
Amg::VectorX(parms.size()),
61 const size_t parSize = parms.size();
62 assert(parSize > 0 && parSize <= 5);
64 std::vector<Trk::DefinedParameter>::const_iterator parIter = parms.begin();
65 for (
size_t idx = 0; idx < parSize; ++idx) {
66 Amg::VectorX::operator[](idx) = parIter->first;
83 return Amg::VectorX::operator[](par);
85 return Amg::VectorX::operator[](
92 return Amg::VectorX::operator[](par);
94 return Amg::VectorX::operator[](
103 std::ostringstream os;
111 std::streamsize
ss = sl.precision();
112 sl << std::setiosflags(std::ios::fixed)<< std::setprecision(3);
113 sl <<
"Trk::LocalParameters " <<
": (";
114 for (
int ipar=0; ipar<lp.
dimension(); ++ipar)
116 if (ipar+1 < lp.dimension()) { sl <<
", ";
117 }
else { sl <<
") - key: "<< lp.m_parameterkey <<
"(";}
120 for (
int itag = 0, ipos=1; itag<5; ++itag, ipos*=2)
122 if (bit) { sl <<
"1";
127 sl.precision (
ss); sl<<std::resetiosflags(std::ios::fixed);
const Amg::MatrixX & reductionMatrix() const
Reduction matrix from 5x5 to the [dimension()]x[dimension()].
LocalParameters()=default
Default constructor used for POOL.
const Amg::MatrixX & expansionMatrix() const
Expansion matrix from 5x5 to the [dimension()]x[dimension()].
int dimension() const
Dimension of this localParameters() vector.
const double & operator[](ParamDefs par) const
Read from data members.
the matrices to access the variably-dimensioned local parameters and map them to the defined five tra...
Definition of ATLAS Math & Geometry primitives (Amg)
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Eigen::Matrix< double, 2, 1 > Vector2D
Ensure that the ATLAS eigen extensions are properly loaded.
MsgStream & operator<<(MsgStream &sl, const AlignModule &alignModule)
overload of << operator for MsgStream for debug output
ParamDefs
This file defines the parameter enums in the Trk namespace.
std::pair< double, ParamDefs > DefinedParameter
Typedef to of a std::pair<double, ParamDefs> to identify a passed-through double as a specific type o...