CMS 3D CMS Logo

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

#include <AlignTransformErrorExtended.h>

Public Types

typedef CLHEP::HepSymMatrix SymMatrix
 

Public Member Functions

 AlignTransformErrorExtended ()
 
 AlignTransformErrorExtended (const SymMatrix &symMatrix, align::ID irawId)
 
SymMatrix matrix () const
 
const bool operator< (const AlignTransformErrorExtended &other) 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 = 6
 

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 AlignTransformErrorExtended.h.

Member Typedef Documentation

typedef CLHEP::HepSymMatrix AlignTransformErrorExtended::SymMatrix

Definition at line 15 of file AlignTransformErrorExtended.h.

Constructor & Destructor Documentation

AlignTransformErrorExtended::AlignTransformErrorExtended ( )
inline

Definition at line 17 of file AlignTransformErrorExtended.h.

17 {}
AlignTransformErrorExtended::AlignTransformErrorExtended ( const SymMatrix symMatrix,
align::ID  irawId 
)
inline

Definition at line 18 of file AlignTransformErrorExtended.h.

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

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  }
double m_Parameters[m_nPars *(m_nPars+1)/2]

Member Function Documentation

SymMatrix AlignTransformErrorExtended::matrix ( void  ) const
inline

Definition at line 24 of file AlignTransformErrorExtended.h.

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

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  }
tuple result
Definition: mps_fire.py:311
double m_Parameters[m_nPars *(m_nPars+1)/2]
const bool AlignTransformErrorExtended::operator< ( const AlignTransformErrorExtended other) const
inline

Definition at line 35 of file AlignTransformErrorExtended.h.

References m_rawId, and rawId().

35 { return (m_rawId < other.rawId()); }
align::ID AlignTransformErrorExtended::rawId ( ) const
inline

Definition at line 32 of file AlignTransformErrorExtended.h.

References m_rawId.

Referenced by operator<().

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

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 43 of file AlignTransformErrorExtended.h.

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

Definition at line 43 of file AlignTransformErrorExtended.h.

Member Data Documentation

const unsigned int AlignTransformErrorExtended::m_nPars = 6
staticprivate

Definition at line 39 of file AlignTransformErrorExtended.h.

Referenced by AlignTransformErrorExtended(), and matrix().

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

Definition at line 40 of file AlignTransformErrorExtended.h.

Referenced by AlignTransformErrorExtended(), and matrix().

align::ID AlignTransformErrorExtended::m_rawId
private

Definition at line 41 of file AlignTransformErrorExtended.h.

Referenced by operator<(), and rawId().