CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes | Static Private Attributes

AlignTransformError Class Reference

#include <AlignTransformError.h>

List of all members.

Public Types

typedef CLHEP::HepSymMatrix SymMatrix

Public Member Functions

 AlignTransformError ()
 AlignTransformError (const SymMatrix &symMatrix, align::ID irawId)
SymMatrix matrix () const
align::ID rawId () const

Private Attributes

double m_Parameters [m_nPars *(m_nPars+1)/2]
align::ID m_rawId

Static Private Attributes

static const unsigned int m_nPars = 3

Detailed Description

Class holding error due to an Alignment transformation It contains the raw detector id and the symmetrical error matrix. It is optimized for storage (error matrix is stored as C-array)

Definition at line 11 of file AlignTransformError.h.


Member Typedef Documentation

typedef CLHEP::HepSymMatrix AlignTransformError::SymMatrix

Definition at line 13 of file AlignTransformError.h.


Constructor & Destructor Documentation

AlignTransformError::AlignTransformError ( ) [inline]

Definition at line 16 of file AlignTransformError.h.

{ }
AlignTransformError::AlignTransformError ( const SymMatrix symMatrix,
align::ID  irawId 
) [inline]

Definition at line 17 of file AlignTransformError.h.

References i, j, m_nPars, and m_Parameters.

                                        :
    m_rawId(irawId) 
  { 
    for ( unsigned int i=0; i<m_nPars; ++i )
      for ( unsigned int j=0; j<=i; ++j )
        m_Parameters[i*(i+1)/2+j] = symMatrix[i][j];
  }

Member Function Documentation

SymMatrix AlignTransformError::matrix ( void  ) const [inline]

Definition at line 26 of file AlignTransformError.h.

References i, j, m_nPars, m_Parameters, and query::result.

                           { 
    SymMatrix result(m_nPars);
    for ( unsigned int i=0; i<m_nPars; ++i )
      for ( unsigned int j=0; j<=i; ++j )
        result[i][j] = m_Parameters[i*(i+1)/2+j];
    return result;
  }
align::ID AlignTransformError::rawId ( ) const [inline]

Definition at line 34 of file AlignTransformError.h.

References m_rawId.

{ return m_rawId; }

Member Data Documentation

const unsigned int AlignTransformError::m_nPars = 3 [static, private]

Definition at line 38 of file AlignTransformError.h.

Referenced by AlignTransformError(), and matrix().

Definition at line 39 of file AlignTransformError.h.

Referenced by AlignTransformError(), and matrix().

Definition at line 40 of file AlignTransformError.h.

Referenced by rawId().