CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes | Static Private Attributes
AlignTransformError Class Reference

#include <AlignTransformError.h>

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.

16 { }
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.

18  :
19  m_rawId(irawId)
20  {
21  for ( unsigned int i=0; i<m_nPars; ++i )
22  for ( unsigned int j=0; j<=i; ++j )
23  m_Parameters[i*(i+1)/2+j] = symMatrix[i][j];
24  }
int i
Definition: DBlmapReader.cc:9
int j
Definition: DBlmapReader.cc:9
static const unsigned int m_nPars
double m_Parameters[m_nPars *(m_nPars+1)/2]

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.

26  {
28  for ( unsigned int i=0; i<m_nPars; ++i )
29  for ( unsigned int j=0; j<=i; ++j )
30  result[i][j] = m_Parameters[i*(i+1)/2+j];
31  return result;
32  }
int i
Definition: DBlmapReader.cc:9
CLHEP::HepSymMatrix SymMatrix
tuple result
Definition: query.py:137
int j
Definition: DBlmapReader.cc:9
static const unsigned int m_nPars
double m_Parameters[m_nPars *(m_nPars+1)/2]
align::ID AlignTransformError::rawId ( ) const
inline

Definition at line 34 of file AlignTransformError.h.

References m_rawId.

34 { return m_rawId; }

Member Data Documentation

const unsigned int AlignTransformError::m_nPars = 3
staticprivate

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