ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
SurveyConstraintModule Class Reference

#include <SurveyConstraintModule.h>

Collaboration diagram for SurveyConstraintModule:

Public Types

enum  ModuleStatus { Module =0, Stave }
 

Public Member Functions

 SurveyConstraintModule ()
 defaukt constructor More...
 
 SurveyConstraintModule (const Identifier &)
 constructor
More...
 
 SurveyConstraintModule (const Identifier &, bool)
 constructor
More...
 
 SurveyConstraintModule (const SurveyConstraintModule &)
 copy constructor More...
 
SurveyConstraintModuleoperator= (const SurveyConstraintModule &)
 assignment operator More...
 
 ~SurveyConstraintModule ()
 destructor More...
 
Amg::VectorX DOCA_Vector () const
 
Amg::MatrixX DOCA_Matrix () const
 
Identifier moduleID () const
 
bool isPixel ()
 
Amg::Transform3D get_globaltolocal ()
 
unsigned int nModulePoints ()
 
unsigned int nStavePoints ()
 
void getPoints (std::vector< SurveyConstraintPoint > &, ModuleStatus mstat) const
 
void addStaveConstraintPoint (std::vector< SurveyConstraintPoint > &cPoints)
 
void addModuleConstraintPoint (const SurveyConstraintPoint &cPoint)
 
void set_globaltolocal (Amg::Transform3D &globaltolocal)
 
void set_DOCA_Vector (Amg::VectorX &DOCA_Vector)
 

Private Attributes

Amg::VectorX m_DOCA_Vector
 
Amg::MatrixX m_DOCA_Matrix
 
Identifier m_ModuleID
 
bool m_isPixel
 
Amg::Transform3D m_globaltolocal
 
std::vector< SurveyConstraintPointm_StavePoints
 
std::vector< SurveyConstraintPointm_ModulePoints
 

Detailed Description

Definition at line 24 of file SurveyConstraintModule.h.

Member Enumeration Documentation

◆ ModuleStatus

Enumerator
Module 
Stave 

Definition at line 27 of file SurveyConstraintModule.h.

27 {Module=0,Stave};

Constructor & Destructor Documentation

◆ SurveyConstraintModule() [1/4]

SurveyConstraintModule::SurveyConstraintModule ( )

defaukt constructor

Definition at line 21 of file SurveyConstraintModule.cxx.

21  :
22  m_DOCA_Vector(6),
23  m_DOCA_Matrix(6,6),
24  m_ModuleID(0),
25  m_isPixel(true)
26 {
27 
28 }

◆ SurveyConstraintModule() [2/4]

SurveyConstraintModule::SurveyConstraintModule ( const Identifier moduleID)

constructor

Definition at line 32 of file SurveyConstraintModule.cxx.

32  :
33  m_DOCA_Vector(6),
34  m_DOCA_Matrix(6,6),
36  m_isPixel(true)
37 {
38 
39 }

◆ SurveyConstraintModule() [3/4]

SurveyConstraintModule::SurveyConstraintModule ( const Identifier moduleID,
bool  isPixel 
)

constructor

Definition at line 43 of file SurveyConstraintModule.cxx.

43  :
44  m_DOCA_Vector(6),
45  m_DOCA_Matrix(6,6),
48 {
49 
50 }

◆ SurveyConstraintModule() [4/4]

SurveyConstraintModule::SurveyConstraintModule ( const SurveyConstraintModule rhs)

copy constructor

Definition at line 54 of file SurveyConstraintModule.cxx.

54  :
55  m_DOCA_Vector(6),
56  m_DOCA_Matrix(6,6),
57  m_ModuleID(0),
58  m_isPixel(true)
59 {
60  if (this!=&rhs) {
61  (*this)=rhs;
62  }
63 }

◆ ~SurveyConstraintModule()

SurveyConstraintModule::~SurveyConstraintModule ( )

destructor

Definition at line 84 of file SurveyConstraintModule.cxx.

85 {
86 
87 }

Member Function Documentation

◆ addModuleConstraintPoint()

void SurveyConstraintModule::addModuleConstraintPoint ( const SurveyConstraintPoint cPoint)

Definition at line 118 of file SurveyConstraintModule.cxx.

118  {
119  m_ModulePoints.push_back(cPoint);
120  //cout << "SurveyConstraintModule.addModuleConstraintPoint(): m_ModulePoints.size() " << m_ModulePoints.size() << endl;
121 }

◆ addStaveConstraintPoint()

void SurveyConstraintModule::addStaveConstraintPoint ( std::vector< SurveyConstraintPoint > &  cPoints)

Definition at line 111 of file SurveyConstraintModule.cxx.

111  {
112  for (unsigned int iPoint(0); iPoint < cPoints.size(); ++iPoint ) {
113  m_StavePoints.push_back(cPoints[iPoint]);
114  //cout << "SurveyConstraintModule.addStaveConstraintPoint(): m_Stavepoints.size() " << m_StavePoints.size() << endl;
115  }
116 }

◆ DOCA_Matrix()

Amg::MatrixX SurveyConstraintModule::DOCA_Matrix ( ) const
inline

Definition at line 75 of file SurveyConstraintModule.h.

76  {
77  return m_DOCA_Matrix;
78  }

◆ DOCA_Vector()

Amg::VectorX SurveyConstraintModule::DOCA_Vector ( ) const
inline

Definition at line 71 of file SurveyConstraintModule.h.

72  {
73  return m_DOCA_Vector;
74  }

◆ get_globaltolocal()

Amg::Transform3D SurveyConstraintModule::get_globaltolocal ( )
inline

Definition at line 87 of file SurveyConstraintModule.h.

88  {
89  return m_globaltolocal;
90  }

◆ getPoints()

void SurveyConstraintModule::getPoints ( std::vector< SurveyConstraintPoint > &  cPoints,
ModuleStatus  mstat 
) const

Definition at line 92 of file SurveyConstraintModule.cxx.

93  {
94  cPoints.clear();
95  //cout << "SurveyConstraintModule.getPoints(): m_ModulePoints.size() " << m_ModulePoints.size() << endl;
96  //cout << "SurveyConstraintModule.getPoints(): m_Stavepoints.size() " << m_StavePoints.size() << endl;
97  if(mstat == 0)
98  for (unsigned int iPoint(0); iPoint < m_ModulePoints.size(); ++iPoint ) {
99  cPoints.push_back( m_ModulePoints[iPoint] );
100  //cout << "mstat = " << mstat << ", SurveyConstraintModule.getPoints(): cPoints.size() " << cPoints.size() << endl;
101  }
102  if(mstat == 1)
103  for (unsigned int iPoint(0); iPoint < m_StavePoints.size(); ++iPoint ) {
104  cPoints.push_back( m_StavePoints[iPoint] );
105  //cout << "mstat = " << mstat << ", SurveyConstraintModule.getPoints(): cPoints.size() " << cPoints.size() << endl;
106  }
107 }

◆ isPixel()

bool SurveyConstraintModule::isPixel ( )
inline

Definition at line 83 of file SurveyConstraintModule.h.

84  {
85  return m_isPixel;
86  }

◆ moduleID()

Identifier SurveyConstraintModule::moduleID ( ) const
inline

Definition at line 79 of file SurveyConstraintModule.h.

80  {
81  return m_ModuleID;
82  }

◆ nModulePoints()

unsigned int SurveyConstraintModule::nModulePoints ( )
inline

Definition at line 91 of file SurveyConstraintModule.h.

92  {
93  return m_ModulePoints.size();
94  }

◆ nStavePoints()

unsigned int SurveyConstraintModule::nStavePoints ( )
inline

Definition at line 95 of file SurveyConstraintModule.h.

96  {
97  return m_StavePoints.size();
98  }

◆ operator=()

SurveyConstraintModule & SurveyConstraintModule::operator= ( const SurveyConstraintModule rhs)

assignment operator

Definition at line 67 of file SurveyConstraintModule.cxx.

68 {
69  if (this!=&rhs) { // protect against self assignment
70  // delete old elements
71 
72  // initialize new elements
73 
74  // copy in new elements;
75  m_DOCA_Vector = rhs.DOCA_Vector();
76  m_DOCA_Matrix = rhs.DOCA_Matrix();
77  m_ModuleID = rhs.moduleID();
78  }
79 
80  return *this;
81 }

◆ set_DOCA_Vector()

void SurveyConstraintModule::set_DOCA_Vector ( Amg::VectorX DOCA_Vector)

Definition at line 126 of file SurveyConstraintModule.cxx.

126  {

◆ set_globaltolocal()

void SurveyConstraintModule::set_globaltolocal ( Amg::Transform3D globaltolocal)

Definition at line 123 of file SurveyConstraintModule.cxx.

123  {
124  m_globaltolocal = globaltolocal;}

Member Data Documentation

◆ m_DOCA_Matrix

Amg::MatrixX SurveyConstraintModule::m_DOCA_Matrix
private

Definition at line 62 of file SurveyConstraintModule.h.

◆ m_DOCA_Vector

Amg::VectorX SurveyConstraintModule::m_DOCA_Vector
private

Definition at line 61 of file SurveyConstraintModule.h.

◆ m_globaltolocal

Amg::Transform3D SurveyConstraintModule::m_globaltolocal
private

Definition at line 65 of file SurveyConstraintModule.h.

◆ m_isPixel

bool SurveyConstraintModule::m_isPixel
private

Definition at line 64 of file SurveyConstraintModule.h.

◆ m_ModuleID

Identifier SurveyConstraintModule::m_ModuleID
private

Definition at line 63 of file SurveyConstraintModule.h.

◆ m_ModulePoints

std::vector<SurveyConstraintPoint> SurveyConstraintModule::m_ModulePoints
private

Definition at line 67 of file SurveyConstraintModule.h.

◆ m_StavePoints

std::vector<SurveyConstraintPoint> SurveyConstraintModule::m_StavePoints
private

Definition at line 66 of file SurveyConstraintModule.h.


The documentation for this class was generated from the following files:
SurveyConstraintModule::m_isPixel
bool m_isPixel
Definition: SurveyConstraintModule.h:64
SurveyConstraintModule::isPixel
bool isPixel()
Definition: SurveyConstraintModule.h:83
SurveyConstraintModule::moduleID
Identifier moduleID() const
Definition: SurveyConstraintModule.h:79
SurveyConstraintModule::m_globaltolocal
Amg::Transform3D m_globaltolocal
Definition: SurveyConstraintModule.h:65
SurveyConstraintModule::DOCA_Vector
Amg::VectorX DOCA_Vector() const
Definition: SurveyConstraintModule.h:71
SurveyConstraintModule::m_ModulePoints
std::vector< SurveyConstraintPoint > m_ModulePoints
Definition: SurveyConstraintModule.h:67
SurveyConstraintModule::m_DOCA_Matrix
Amg::MatrixX m_DOCA_Matrix
Definition: SurveyConstraintModule.h:62
SurveyConstraintModule::Module
@ Module
Definition: SurveyConstraintModule.h:27
SurveyConstraintModule::m_StavePoints
std::vector< SurveyConstraintPoint > m_StavePoints
Definition: SurveyConstraintModule.h:66
SurveyConstraintModule::m_DOCA_Vector
Amg::VectorX m_DOCA_Vector
Definition: SurveyConstraintModule.h:61
SurveyConstraintModule::DOCA_Matrix
Amg::MatrixX DOCA_Matrix() const
Definition: SurveyConstraintModule.h:75
SurveyConstraintModule::m_ModuleID
Identifier m_ModuleID
Definition: SurveyConstraintModule.h:63
SurveyConstraintModule::Stave
@ Stave
Definition: SurveyConstraintModule.h:27