Belle II Software development
CovariancePacked Struct Reference

Struct to keep upper triangle of the covariance matrix. More...

#include <ECLWaveformFit.h>

Public Member Functions

float & operator[] (int i)
 Lvalue access by index.
 
const float & operator[] (int i) const
 Rvalue access by index.
 

Public Attributes

float m_covMatPacked [31 *(31+1)/2] = {}
 Packed matrix.
 
float sigma { -1}
 Sigma noise.
 

Detailed Description

Struct to keep upper triangle of the covariance matrix.

Since the matrix is already inverted we do not need extra precision, so keep matrix elements in float type to save space. sigma is the average noise.

Definition at line 38 of file ECLWaveformFit.h.

Member Function Documentation

◆ operator[]() [1/2]

float & operator[] ( int  i)
inline

Lvalue access by index.

Definition at line 47 of file ECLWaveformFit.h.

47{ return m_covMatPacked[i];}
float m_covMatPacked[31 *(31+1)/2]
Packed matrix.

◆ operator[]() [2/2]

const float & operator[] ( int  i) const
inline

Rvalue access by index.

Definition at line 50 of file ECLWaveformFit.h.

50{ return m_covMatPacked[i];}

Member Data Documentation

◆ m_covMatPacked

float m_covMatPacked[31 *(31+1)/2] = {}

Packed matrix.

Definition at line 41 of file ECLWaveformFit.h.

◆ sigma

float sigma { -1}

Sigma noise.

Definition at line 44 of file ECLWaveformFit.h.


The documentation for this struct was generated from the following file: