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

#include <SurveyConstraintPoint.h>

Collaboration diagram for SurveyConstraintPoint:

Public Member Functions

 SurveyConstraintPoint ()
 
 SurveyConstraintPoint (const Amg::Vector3D &survey, const Amg::Vector3D &current)
 
 SurveyConstraintPoint (const SurveyConstraintPoint &cpoint)
 
virtual ~SurveyConstraintPoint ()
 
SurveyConstraintPointoperator= (const SurveyConstraintPoint &)
 
bool operator== (const SurveyConstraintPoint &) const
 
bool operator!= (const SurveyConstraintPoint &) const
 
const Amg::Vector3Dsurvey () const
 
const Amg::Vector3Dcurrent () const
 
Amg::Vector3Dsurvey ()
 
Amg::Vector3Dcurrent ()
 
void setSurvey (const Amg::Vector3D &point)
 
void setCurrent (const Amg::Vector3D &point)
 
void moveTo (const Amg::Transform3D &trans)
 
void moveFrom (const Amg::Transform3D &trans)
 
void scaleZ (float scale)
 

Private Attributes

Amg::Vector3D m_survey
 
Amg::Vector3D m_current
 

Detailed Description

Definition at line 25 of file SurveyConstraintPoint.h.

Constructor & Destructor Documentation

◆ SurveyConstraintPoint() [1/3]

SurveyConstraintPoint::SurveyConstraintPoint ( )

Definition at line 18 of file SurveyConstraintPoint.cxx.

18  {
19 }

◆ SurveyConstraintPoint() [2/3]

SurveyConstraintPoint::SurveyConstraintPoint ( const Amg::Vector3D survey,
const Amg::Vector3D current 
)

Definition at line 22 of file SurveyConstraintPoint.cxx.

24  :m_survey(survey),
26 }

◆ SurveyConstraintPoint() [3/3]

SurveyConstraintPoint::SurveyConstraintPoint ( const SurveyConstraintPoint cpoint)

Definition at line 29 of file SurveyConstraintPoint.cxx.

30  :m_survey(other.survey()),
31  m_current(other.current()){
32 }

◆ ~SurveyConstraintPoint()

SurveyConstraintPoint::~SurveyConstraintPoint ( )
virtual

Definition at line 38 of file SurveyConstraintPoint.cxx.

38  {
39 }

Member Function Documentation

◆ current() [1/2]

Amg::Vector3D& SurveyConstraintPoint::current ( )
inline

Definition at line 54 of file SurveyConstraintPoint.h.

54 { return m_current; };

◆ current() [2/2]

const Amg::Vector3D& SurveyConstraintPoint::current ( ) const
inline

Definition at line 50 of file SurveyConstraintPoint.h.

50 { return m_current; };

◆ moveFrom()

void SurveyConstraintPoint::moveFrom ( const Amg::Transform3D trans)
inline

Definition at line 70 of file SurveyConstraintPoint.h.

70  {
71  m_survey = (trans.inverse()) * m_survey ;
72  m_current = (trans.inverse()) * m_current;
73  }

◆ moveTo()

void SurveyConstraintPoint::moveTo ( const Amg::Transform3D trans)
inline

Definition at line 65 of file SurveyConstraintPoint.h.

65  {
66  m_survey = trans * m_survey;
67  m_current = trans * m_current;
68  }

◆ operator!=()

Definition at line 60 of file SurveyConstraintPoint.cxx.

60  {
61  return this != &rhs;
62 }

◆ operator=()

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

Definition at line 46 of file SurveyConstraintPoint.cxx.

46  {
47  if(&rhs != this){
48  m_survey = rhs.survey();
49  m_current = rhs.current();
50  }
51  return *this;
52 }

◆ operator==()

bool SurveyConstraintPoint::operator== ( const SurveyConstraintPoint rhs) const

Definition at line 55 of file SurveyConstraintPoint.cxx.

55  {
56  return this == &rhs;
57 }

◆ scaleZ()

void SurveyConstraintPoint::scaleZ ( float  scale)
inline

Definition at line 75 of file SurveyConstraintPoint.h.

75  {
76  //float before = m_survey.z();
77  float zs = m_survey.z() * scale;
78  float zc = m_current.z() * scale;
79  m_survey[2] = zs;
80  m_current[2] = zc;
81  // cout << "scale, before, after, after = " << scale << "," << before << "," << zs << "," << m_survey.z() << endl;
82  }

◆ setCurrent()

void SurveyConstraintPoint::setCurrent ( const Amg::Vector3D point)
inline

Definition at line 61 of file SurveyConstraintPoint.h.

61  {
62  m_current = point;
63  }

◆ setSurvey()

void SurveyConstraintPoint::setSurvey ( const Amg::Vector3D point)
inline

Definition at line 57 of file SurveyConstraintPoint.h.

57  {
58  m_survey = point;
59  }

◆ survey() [1/2]

Amg::Vector3D& SurveyConstraintPoint::survey ( )
inline

Definition at line 53 of file SurveyConstraintPoint.h.

53 { return m_survey; };

◆ survey() [2/2]

const Amg::Vector3D& SurveyConstraintPoint::survey ( ) const
inline

Definition at line 49 of file SurveyConstraintPoint.h.

49 { return m_survey; };

Member Data Documentation

◆ m_current

Amg::Vector3D SurveyConstraintPoint::m_current
private

Definition at line 93 of file SurveyConstraintPoint.h.

◆ m_survey

Amg::Vector3D SurveyConstraintPoint::m_survey
private

Definition at line 92 of file SurveyConstraintPoint.h.


The documentation for this class was generated from the following files:
SurveyConstraintPoint::survey
const Amg::Vector3D & survey() const
Definition: SurveyConstraintPoint.h:49
yodamerge_tmp.scale
scale
Definition: yodamerge_tmp.py:138
SurveyConstraintPoint::current
const Amg::Vector3D & current() const
Definition: SurveyConstraintPoint.h:50
SurveyConstraintPoint::m_current
Amg::Vector3D m_current
Definition: SurveyConstraintPoint.h:93
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
SurveyConstraintPoint::m_survey
Amg::Vector3D m_survey
Definition: SurveyConstraintPoint.h:92