test
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 Member Functions | Private Attributes | Static Private Attributes | Friends
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 Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

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
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

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 13 of file AlignTransformError.h.

Member Typedef Documentation

typedef CLHEP::HepSymMatrix AlignTransformError::SymMatrix

Definition at line 15 of file AlignTransformError.h.

Constructor & Destructor Documentation

AlignTransformError::AlignTransformError ( )
inline

Definition at line 18 of file AlignTransformError.h.

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

Definition at line 19 of file AlignTransformError.h.

References i, j, m_nPars, and m_Parameters.

20  :
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  }
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 28 of file AlignTransformError.h.

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

28  {
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  }
int i
Definition: DBlmapReader.cc:9
CLHEP::HepSymMatrix SymMatrix
tuple result
Definition: mps_fire.py:84
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 36 of file AlignTransformError.h.

References m_rawId.

36 { return m_rawId; }
template<class Archive >
void AlignTransformError::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 46 of file AlignTransformError.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 46 of file AlignTransformError.h.

Member Data Documentation

const unsigned int AlignTransformError::m_nPars = 3
staticprivate

Definition at line 40 of file AlignTransformError.h.

Referenced by AlignTransformError(), and matrix().

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

Definition at line 41 of file AlignTransformError.h.

Referenced by AlignTransformError(), and matrix().

align::ID AlignTransformError::m_rawId
private

Definition at line 42 of file AlignTransformError.h.

Referenced by rawId().