CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AlignTransformErrorExtended.h
Go to the documentation of this file.
1 #ifndef AlignTransformErrorExtended_H
2 #define AlignTransformErrorExtended_H
4 
5 #include "CLHEP/Matrix/SymMatrix.h"
6 #include "CLHEP/Vector/RotationInterfaces.h"
7 
9 
14 public:
15  typedef CLHEP::HepSymMatrix SymMatrix;
16 
17 
20  align::ID irawId ) :
21  m_rawId(irawId)
22  {
23  for ( unsigned int i=0; i<m_nPars; ++i )
24  for ( unsigned int j=0; j<=i; ++j )
25  m_Parameters[i*(i+1)/2+j] = symMatrix[i][j];
26  }
27 
28  SymMatrix matrix() const {
30  for ( unsigned int i=0; i<m_nPars; ++i )
31  for ( unsigned int j=0; j<=i; ++j )
32  result[i][j] = m_Parameters[i*(i+1)/2+j];
33  return result;
34  }
35 
36  align::ID rawId() const { return m_rawId; }
37 
38 private:
39 
40  //FIXME difference here
41  static const unsigned int m_nPars = 6;
42  double m_Parameters[m_nPars*(m_nPars+1)/2];
44 
45 
46 
48 };
49 #endif //AlignTransformErrorExtended_H
int i
Definition: DBlmapReader.cc:9
uint32_t ID
Definition: Definitions.h:26
tuple result
Definition: mps_fire.py:84
int j
Definition: DBlmapReader.cc:9
AlignTransformErrorExtended(const SymMatrix &symMatrix, align::ID irawId)
double m_Parameters[m_nPars *(m_nPars+1)/2]
#define COND_SERIALIZABLE
Definition: Serializable.h:38