ATLAS Offline Software
Public Member Functions | Public Attributes | Protected Attributes | Private Attributes | Friends | List of all members
Trk::VKPointConstraint Class Referencefinal

#include <Derivt.h>

Inheritance diagram for Trk::VKPointConstraint:
Collaboration diagram for Trk::VKPointConstraint:

Public Member Functions

 VKPointConstraint (int, const double[3], VKVertex *, bool)
 
 ~VKPointConstraint ()
 
bool onlyZ () const
 
void setTargetVertex (double VRT[3])
 
const double * getTargetVertex () const
 
virtual VKConstraintBaseclone () const override
 
virtual void applyConstraint () override
 
const VKVertexgetOriginVertex () const
 
VKContraintType getType () const
 

Public Attributes

int NCDim
 
int NTrk
 
std::vector< double > aa
 
std::vector< std::vector< Vect3DF > > f0t
 
std::vector< Vect3DFh0t
 

Protected Attributes

VKVertexm_originVertex
 
const VKContraintType m_type
 

Private Attributes

bool m_onlyZ
 
double m_targetVertex [3] {}
 

Friends

std::ostream & operator<< (std::ostream &out, const VKPointConstraint &)
 

Detailed Description

Definition at line 87 of file Derivt.h.

Constructor & Destructor Documentation

◆ VKPointConstraint()

Trk::VKPointConstraint::VKPointConstraint ( int  NTRK,
const double  vrt[3],
VKVertex vk,
bool  onlyZ = false 
)
inline

Definition at line 168 of file Derivt.h.

171  m_originVertex = vk;
172  m_targetVertex[0] = vrt[0];
173  m_targetVertex[1] = vrt[1];
174  m_targetVertex[2] = vrt[2];
175  // For Z only constraint
176 }

◆ ~VKPointConstraint()

Trk::VKPointConstraint::~VKPointConstraint ( )
inlinedefault

Member Function Documentation

◆ applyConstraint()

void Trk::VKPointConstraint::applyConstraint ( )
inlineoverridevirtual

Implements Trk::VKConstraintBase.

Definition at line 215 of file Derivt.h.

215  {
216  calcPointConstraint(this);
217 }

◆ clone()

VKConstraintBase * Trk::VKPointConstraint::clone ( ) const
inlineoverridevirtual

Implements Trk::VKConstraintBase.

Definition at line 199 of file Derivt.h.

199  {
200  return new VKPointConstraint(*this);
201 }

◆ getOriginVertex()

const VKVertex* Trk::VKConstraintBase::getOriginVertex ( ) const
inlineinherited

Definition at line 30 of file Derivt.h.

30 { return m_originVertex; }

◆ getTargetVertex()

const double* Trk::VKPointConstraint::getTargetVertex ( ) const
inline

Definition at line 98 of file Derivt.h.

98 { return m_targetVertex; };

◆ getType()

VKContraintType Trk::VKConstraintBase::getType ( ) const
inlineinherited

Definition at line 31 of file Derivt.h.

31 { return m_type; }

◆ onlyZ()

bool Trk::VKPointConstraint::onlyZ ( ) const
inline

Definition at line 92 of file Derivt.h.

92 { return m_onlyZ; };

◆ setTargetVertex()

void Trk::VKPointConstraint::setTargetVertex ( double  VRT[3])
inline

Definition at line 93 of file Derivt.h.

93  {
94  m_targetVertex[0] = VRT[0];
95  m_targetVertex[1] = VRT[1];
96  m_targetVertex[2] = VRT[2];
97  };

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const VKPointConstraint cnst 
)
friend

Definition at line 80 of file Derivt.cxx.

80  {
81  const VKVertex* vk = cnst.getOriginVertex();
82  // out.setf( std::ios::scientific); out.precision(7); out << std::endl;
83  out.precision(7);
84  out << std::defaultfloat;
85  if (!cnst.onlyZ()) {
86  out << " Point constraint (total NTRK=" << vk->TrackList.size() << ")"
87  << std::endl;
88  } else {
89  out << " Z point constraint (total NTRK=" << vk->TrackList.size() << ")"
90  << std::endl;
91  }
92  out << " target vertex=" << cnst.getTargetVertex()[0] << ", "
93  << cnst.getTargetVertex()[1] << ", " << cnst.getTargetVertex()[2]
94  << std::endl;
95  out << (VKConstraintBase&)cnst << '\n';
96  out.precision(6); // restore default
97  return out;
98 }

Member Data Documentation

◆ aa

std::vector<double> Trk::VKConstraintBase::aa
inherited

Definition at line 36 of file Derivt.h.

◆ f0t

std::vector<std::vector<Vect3DF> > Trk::VKConstraintBase::f0t
inherited

Definition at line 37 of file Derivt.h.

◆ h0t

std::vector<Vect3DF> Trk::VKConstraintBase::h0t
inherited

Definition at line 38 of file Derivt.h.

◆ m_onlyZ

bool Trk::VKPointConstraint::m_onlyZ
private

Definition at line 103 of file Derivt.h.

◆ m_originVertex

VKVertex* Trk::VKConstraintBase::m_originVertex
protectedinherited

Definition at line 40 of file Derivt.h.

◆ m_targetVertex

double Trk::VKPointConstraint::m_targetVertex[3] {}
private

Definition at line 104 of file Derivt.h.

◆ m_type

const VKContraintType Trk::VKConstraintBase::m_type
protectedinherited

Definition at line 41 of file Derivt.h.

◆ NCDim

int Trk::VKConstraintBase::NCDim
inherited

Definition at line 34 of file Derivt.h.

◆ NTrk

int Trk::VKConstraintBase::NTrk
inherited

Definition at line 35 of file Derivt.h.


The documentation for this class was generated from the following file:
Trk::VKPointConstraint::onlyZ
bool onlyZ() const
Definition: Derivt.h:92
Trk::VKContraintType::Point
@ Point
Trk::VKConstraintBase::VKConstraintBase
VKConstraintBase(const int, int, VKContraintType, VKVertex *)
Definition: Derivt.h:125
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
Trk::VKPointConstraint::VKPointConstraint
VKPointConstraint(int, const double[3], VKVertex *, bool)
Definition: Derivt.h:168
Trk::VKPointConstraint::m_targetVertex
double m_targetVertex[3]
Definition: Derivt.h:104
Trk::calcPointConstraint
void calcPointConstraint(VKPointConstraint *cnst)
Definition: Derclc2.cxx:20
Trk::VKConstraintBase::m_originVertex
VKVertex * m_originVertex
Definition: Derivt.h:40
Trk::VKPointConstraint::m_onlyZ
bool m_onlyZ
Definition: Derivt.h:103
Trk::VKConstraintBase::m_type
const VKContraintType m_type
Definition: Derivt.h:41