CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AlignTransformError.h
Go to the documentation of this file.
1 #ifndef AlignTransformError_H
2 #define AlignTransformError_H
3 #include "CLHEP/Matrix/SymMatrix.h"
4 #include "CLHEP/Vector/RotationInterfaces.h"
5 
7 
12 public:
13  typedef CLHEP::HepSymMatrix SymMatrix;
14 
15 
17  AlignTransformError( const SymMatrix & symMatrix,
18  align::ID irawId ) :
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  }
25 
26  SymMatrix matrix() const {
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  }
33 
34  align::ID rawId() const { return m_rawId; }
35 
36 private:
37 
38  static const unsigned int m_nPars = 3;
39  double m_Parameters[m_nPars*(m_nPars+1)/2];
41 
42 
43 };
44 #endif //AlignTransformError_H
int i
Definition: DBlmapReader.cc:9
SymMatrix matrix() const
CLHEP::HepSymMatrix SymMatrix
uint32_t ID
Definition: Definitions.h:26
AlignTransformError(const SymMatrix &symMatrix, align::ID irawId)
tuple result
Definition: query.py:137
int j
Definition: DBlmapReader.cc:9
align::ID rawId() const
static const unsigned int m_nPars
double m_Parameters[m_nPars *(m_nPars+1)/2]