ATLAS Offline Software
Loading...
Searching...
No Matches
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
VKConstraintType 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 VKConstraintType m_type

Private Attributes

bool m_onlyZ
double m_targetVertex [3] {}

Friends

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

Detailed Description

Definition at line 89 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 189 of file Derivt.h.

192 m_originVertex = vk;
193 m_targetVertex[0] = vrt[0];
194 m_targetVertex[1] = vrt[1];
195 m_targetVertex[2] = vrt[2];
196 // For Z only constraint
197}
VKConstraintBase(const int, int, VKConstraintType, VKVertex *)
Definition Derivt.h:146
VKVertex * m_originVertex
Definition Derivt.h:42
bool onlyZ() const
Definition Derivt.h:94
double m_targetVertex[3]
Definition Derivt.h:106

◆ ~VKPointConstraint()

Trk::VKPointConstraint::~VKPointConstraint ( )
inlinedefault

Member Function Documentation

◆ applyConstraint()

void Trk::VKPointConstraint::applyConstraint ( )
inlineoverridevirtual

Implements Trk::VKConstraintBase.

Definition at line 247 of file Derivt.h.

247 {
249}
void calcPointConstraint(VKPointConstraint *cnst)
Definition Derclc2.cxx:20

◆ clone()

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

Implements Trk::VKConstraintBase.

Definition at line 227 of file Derivt.h.

227 {
228 return new VKPointConstraint(*this);
229}
VKPointConstraint(int, const double[3], VKVertex *, bool)
Definition Derivt.h:189

◆ getOriginVertex()

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

Definition at line 32 of file Derivt.h.

32{ return m_originVertex; }

◆ getTargetVertex()

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

Definition at line 100 of file Derivt.h.

100{ return m_targetVertex; };

◆ getType()

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

Definition at line 33 of file Derivt.h.

33{ return m_type; }
const VKConstraintType m_type
Definition Derivt.h:43

◆ onlyZ()

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

Definition at line 94 of file Derivt.h.

94{ return m_onlyZ; };

◆ setTargetVertex()

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

Definition at line 95 of file Derivt.h.

95 {
96 m_targetVertex[0] = VRT[0];
97 m_targetVertex[1] = VRT[1];
98 m_targetVertex[2] = VRT[2];
99 };

◆ operator<<

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

Definition at line 76 of file Derivt.cxx.

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

Member Data Documentation

◆ aa

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

Definition at line 38 of file Derivt.h.

◆ f0t

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

Definition at line 39 of file Derivt.h.

◆ h0t

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

Definition at line 40 of file Derivt.h.

◆ m_onlyZ

bool Trk::VKPointConstraint::m_onlyZ
private

Definition at line 105 of file Derivt.h.

◆ m_originVertex

VKVertex* Trk::VKConstraintBase::m_originVertex
protectedinherited

Definition at line 42 of file Derivt.h.

◆ m_targetVertex

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

Definition at line 106 of file Derivt.h.

106{}; // Target vertex is in global reference system

◆ m_type

const VKConstraintType Trk::VKConstraintBase::m_type
protectedinherited

Definition at line 43 of file Derivt.h.

◆ NCDim

int Trk::VKConstraintBase::NCDim
inherited

Definition at line 36 of file Derivt.h.

◆ NTrk

int Trk::VKConstraintBase::NTrk
inherited

Definition at line 37 of file Derivt.h.


The documentation for this class was generated from the following file: