CMS 3D CMS Logo

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

◆ SymMatrix

typedef CLHEP::HepSymMatrix AlignTransformError::SymMatrix

Definition at line 15 of file AlignTransformError.h.

Constructor & Destructor Documentation

◆ AlignTransformError() [1/2]

AlignTransformError::AlignTransformError ( )
inline

Definition at line 17 of file AlignTransformError.h.

17 {}

◆ AlignTransformError() [2/2]

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

Definition at line 18 of file AlignTransformError.h.

18  : m_rawId(irawId) {
19  for (unsigned int i = 0; i < m_nPars; ++i)
20  for (unsigned int j = 0; j <= i; ++j)
21  m_Parameters[i * (i + 1) / 2 + j] = symMatrix[i][j];
22  }

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

Member Function Documentation

◆ matrix()

SymMatrix AlignTransformError::matrix ( void  ) const
inline

Definition at line 24 of file AlignTransformError.h.

24  {
26  for (unsigned int i = 0; i < m_nPars; ++i)
27  for (unsigned int j = 0; j <= i; ++j)
28  result[i][j] = m_Parameters[i * (i + 1) / 2 + j];
29  return result;
30  }

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

◆ rawId()

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

Definition at line 32 of file AlignTransformError.h.

32 { return m_rawId; }

References m_rawId.

◆ serialize()

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

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 39 of file AlignTransformError.h.

◆ cond::serialization::access

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

Definition at line 39 of file AlignTransformError.h.

Member Data Documentation

◆ m_nPars

const unsigned int AlignTransformError::m_nPars = 3
staticprivate

Definition at line 35 of file AlignTransformError.h.

Referenced by AlignTransformError(), and matrix().

◆ m_Parameters

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

Definition at line 36 of file AlignTransformError.h.

Referenced by AlignTransformError(), and matrix().

◆ m_rawId

align::ID AlignTransformError::m_rawId
private

Definition at line 37 of file AlignTransformError.h.

Referenced by rawId().

mps_fire.i
i
Definition: mps_fire.py:428
AlignTransformError::m_nPars
static const unsigned int m_nPars
Definition: AlignTransformError.h:35
AlignTransformError::m_Parameters
double m_Parameters[m_nPars *(m_nPars+1)/2]
Definition: AlignTransformError.h:36
AlignTransformError::SymMatrix
CLHEP::HepSymMatrix SymMatrix
Definition: AlignTransformError.h:15
mps_fire.result
result
Definition: mps_fire.py:311
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
AlignTransformError::m_rawId
align::ID m_rawId
Definition: AlignTransformError.h:37