CMS 3D CMS Logo

AlignTransformError Class Reference

Class holding error due to an Alignment transformation It contains the raw detector id and the symmetrical error matrix. More...

#include <CondFormats/Alignment/interface/AlignTransformError.h>

List of all members.

Public Types

typedef CLHEP::HepSymMatrix SymMatrix

Public Member Functions

 AlignTransformError (const SymMatrix &symMatrix, align::ID irawId)
 AlignTransformError ()
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.

00016 { }

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.

00018                                         :
00019     m_rawId(irawId) 
00020   { 
00021     for ( unsigned int i=0; i<m_nPars; ++i )
00022       for ( unsigned int j=0; j<=i; ++j )
00023         m_Parameters[i*(i+1)/2+j] = symMatrix[i][j];
00024   }
  


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 HLT_VtxMuL3::result.

00026                            { 
00027     SymMatrix result(m_nPars);
00028     for ( unsigned int i=0; i<m_nPars; ++i )
00029       for ( unsigned int j=0; j<=i; ++j )
00030         result[i][j] = m_Parameters[i*(i+1)/2+j];
00031     return result;
00032   }

align::ID AlignTransformError::rawId (  )  const [inline]

Definition at line 34 of file AlignTransformError.h.

References m_rawId.

00034 { 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().

double AlignTransformError::m_Parameters[m_nPars *(m_nPars+1)/2] [private]

Definition at line 39 of file AlignTransformError.h.

Referenced by AlignTransformError(), and matrix().

align::ID AlignTransformError::m_rawId [private]

Definition at line 40 of file AlignTransformError.h.

Referenced by rawId().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:14:38 2009 for CMSSW by  doxygen 1.5.4