ATLAS Offline Software
Functions
xAOD::MatrixHelpers Namespace Reference

Functions

template<int N>
void compress (const Eigen::Matrix< float, N, N, 0, N, N > &covMatrix, std::vector< float > &vec)
 
template<int N>
void expand (std::vector< float >::const_iterator it, std::vector< float >::const_iterator, Eigen::Matrix< float, N, N, 0, N, N > &covMatrix)
 

Function Documentation

◆ compress()

template<int N>
void xAOD::MatrixHelpers::compress ( const Eigen::Matrix< float, N, N, 0, N, N > &  covMatrix,
std::vector< float > &  vec 
)

Definition at line 27 of file Egamma_v1.cxx.

27  {
29  for (unsigned int i = 0; i < N ; ++i){
30  for (unsigned int j = 0; j <= i; ++j){
31  vec.push_back(covMatrix(i,j));
32  }
33  }
34 }

◆ expand()

template<int N>
void xAOD::MatrixHelpers::expand ( std::vector< float >::const_iterator  it,
std::vector< float >::const_iterator  ,
Eigen::Matrix< float, N, N, 0, N, N > &  covMatrix 
)

Definition at line 36 of file Egamma_v1.cxx.

37  {
38  for (unsigned int i = 0; i < N; ++i) {
39  for (unsigned int j = 0; j <= i; ++j) {
40  covMatrix.fillSymmetric(i,j, *it);
41  ++it;
42  }
43  }
44 }
Amg::CalculateCompressedSize
constexpr int CalculateCompressedSize(int n)
Definition: EventPrimitivesHelpers.h:51
skel.it
it
Definition: skel.GENtoEVGEN.py:424
JetTiledMap::N
@ N
Definition: TiledEtaPhiMap.h:44
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:12
lumiFormat.i
int i
Definition: lumiFormat.py:92
xAOD::covMatrix
covMatrix
Definition: TrackMeasurement_v1.cxx:19