ATLAS Offline Software
Loading...
Searching...
No Matches
Trk::RecVertex Class Reference

Trk::RecVertex inherits from Trk::Vertex. More...

#include <RecVertex.h>

Inheritance diagram for Trk::RecVertex:
Collaboration diagram for Trk::RecVertex:

Public Member Functions

 RecVertex ()
 Default constructor, if called initializes a RecVertex with all data members set to 0.
 RecVertex (const Vertex &pos)
 Constructor from a Vertex class.
 RecVertex (const Amg::Vector3D &pos, const AmgSymMatrix(3) &cov, const double ndf=0., const double chi2=0.)
 Constructs a RecVertex with position, covariance, ndf, dhi2 and ntrk.
 RecVertex (const Amg::Vector3D &pos, const double ndf=0., const double chi2=0.)
 Constructs a RecVertex with position, default covariance, ndf, dhi2 and ntrk.
 RecVertex (const RecVertex &)=default
 Copy constructor and assignement operator.
RecVertexoperator= (const RecVertex &)=default
 RecVertex (RecVertex &&)=default
 Move constructor and assignment operator.
RecVertexoperator= (RecVertex &&)=default
virtual MsgStream & dump (MsgStream &sl) const
 Output Method for MsgStream, to be overloaded by child classes.
virtual std::ostream & dump (std::ostream &sl) const
 Output Method for std::ostream, to be overloaded by child classes.
virtual ~RecVertex ()
 Destructor.
const AmgSymMatrix (3) &covariancePosition() const
 Weight and covariance matrix access method.
const Trk::FitQualityfitQuality () const
 Fit quality access method.
void scaleError (float factor)
 Error scaling method.
const Amg::Vector3Dposition () const
 return position of vertex

Static Public Member Functions

static std::size_t numberOfInstantiations ()

Static Public Attributes

static std::atomic_size_t s_numberOfInstantiations

Private Member Functions

 AmgSymMatrix (3) m_positionCovariance
 covariance matrix on vertex position

Private Attributes

Trk::FitQuality m_fitQuality
Amg::Vector3D m_position
 vertex position

Friends

class ::RecVertexCnv_p1

Detailed Description

Trk::RecVertex inherits from Trk::Vertex.

begin : Autumn 2003
changes : 11.02.04 added docu
changes : 9/2/06 Giacinto Piacquadio - added support for non integer ndf < #Tracks * 5 - 3
changes : 05/12/06 Kiril.nosp@m.l.Pr.nosp@m.okofi.nosp@m.ev@c.nosp@m.ern.c.nosp@m.h - EDN cleanup and change to the FitQuality

In addition to the vertex position, defined in Vertex class, it contains its error matrix, which can be retrieved as covariance or weight matrix, and well as fit quality (in for of chi2 and ndf).

Authors
Andreas Wildauer (CERN PH-ATC) andre.nosp@m.as.w.nosp@m.ildau.nosp@m.er@c.nosp@m.ern.c.nosp@m.h, Kiril.nosp@m.l.Pr.nosp@m.okofi.nosp@m.ev@c.nosp@m.ern.c.nosp@m.h, Giacinto Piacquadio

Definition at line 43 of file RecVertex.h.

Constructor & Destructor Documentation

◆ RecVertex() [1/6]

Trk::RecVertex::RecVertex ( )

Default constructor, if called initializes a RecVertex with all data members set to 0.

Definition at line 23 of file RecVertex.cxx.

23 :
24 Vertex(), m_fitQuality(Trk::FitQuality(0.,0.)) {}
Trk::FitQuality m_fitQuality
Definition RecVertex.h:115
Vertex()
Contructors: default, copy and a constructor taking a vertex position (Amg::Vector3D) as argument.
Definition Vertex.cxx:21

◆ RecVertex() [2/6]

Trk::RecVertex::RecVertex ( const Vertex & pos)

Constructor from a Vertex class.

ErrorMatrix will be 0,0,0.

Definition at line 26 of file RecVertex.cxx.

26 :
27 Vertex(pos),
28 m_positionCovariance(3,3),
29 m_fitQuality(Trk::FitQuality(0.,0.))
30 {
31 m_positionCovariance.setZero();
32 }

◆ RecVertex() [3/6]

Trk::RecVertex::RecVertex ( const Amg::Vector3D & pos,
const AmgSymMatrix(3) & cov,
const double ndf = 0.,
const double chi2 = 0. )

Constructs a RecVertex with position, covariance, ndf, dhi2 and ntrk.

Definition at line 34 of file RecVertex.cxx.

35 :
36 Vertex(pos), m_positionCovariance(cov), m_fitQuality(Trk::FitQuality(chi2,ndf))
37 {}
double chi2(TH1 *h0, TH1 *h1)

◆ RecVertex() [4/6]

Trk::RecVertex::RecVertex ( const Amg::Vector3D & pos,
const double ndf = 0.,
const double chi2 = 0. )

Constructs a RecVertex with position, default covariance, ndf, dhi2 and ntrk.

Definition at line 39 of file RecVertex.cxx.

39 :
40 Vertex(pos), m_positionCovariance(3,3),
41 m_fitQuality(Trk::FitQuality(chi2,ndf))
42 {
43 m_positionCovariance.setZero();
44 }

◆ RecVertex() [5/6]

Trk::RecVertex::RecVertex ( const RecVertex & )
default

Copy constructor and assignement operator.

◆ RecVertex() [6/6]

Trk::RecVertex::RecVertex ( RecVertex && )
default

Move constructor and assignment operator.

◆ ~RecVertex()

Trk::RecVertex::~RecVertex ( )
virtualdefault

Destructor.

Member Function Documentation

◆ AmgSymMatrix() [1/2]

const Trk::RecVertex::AmgSymMatrix ( 3 ) const &

Weight and covariance matrix access method.

return the covDeltaV matrix of the vertex fit

◆ AmgSymMatrix() [2/2]

Trk::RecVertex::AmgSymMatrix ( 3 )
private

covariance matrix on vertex position

◆ dump() [1/2]

MsgStream & Trk::RecVertex::dump ( MsgStream & sl) const
virtual

Output Method for MsgStream, to be overloaded by child classes.

Reimplemented from Trk::Vertex.

Definition at line 46 of file RecVertex.cxx.

46 {
47 sl << "Trk::RecVertex: " << std::endl;
48 Vertex::dump(sl);
49 sl << Amg::toString(m_positionCovariance) << std::endl;
50 sl << m_fitQuality << endmsg;
51 return sl;
52 }
#define endmsg
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.

◆ dump() [2/2]

std::ostream & Trk::RecVertex::dump ( std::ostream & sl) const
virtual

Output Method for std::ostream, to be overloaded by child classes.

Reimplemented from Trk::Vertex.

Definition at line 54 of file RecVertex.cxx.

54 {
55 sl << "Trk::RecVertex: " << std::endl;
56 Vertex::dump(sl);
57 sl << Amg::toString(m_positionCovariance) << std::endl;
58 sl << m_fitQuality << std::endl;
59 return sl;
60 }

◆ fitQuality()

const Trk::FitQuality & Trk::RecVertex::fitQuality ( ) const

Fit quality access method.

Definition at line 64 of file RecVertex.cxx.

65 {return m_fitQuality;}

◆ numberOfInstantiations()

std::size_t Trk::ObjectCounter< Trk::Vertex >::numberOfInstantiations ( )
inlinestaticinherited

Definition at line 25 of file TrkObjectCounter.h.

26 {
27#ifndef NDEBUG
28 return s_numberOfInstantiations.load();
29#endif
30 return 0;
31 }
Helper to enable counting number of instantiations in debug builds.

◆ operator=() [1/2]

RecVertex & Trk::RecVertex::operator= ( const RecVertex & )
default

◆ operator=() [2/2]

RecVertex & Trk::RecVertex::operator= ( RecVertex && )
default

◆ position()

const Amg::Vector3D & Trk::Vertex::position ( ) const
inherited

return position of vertex

Definition at line 63 of file Vertex.cxx.

64{
65 return m_position;
66}
Amg::Vector3D m_position
vertex position

◆ scaleError()

void Trk::RecVertex::scaleError ( float factor)

Error scaling method.

◆ ::RecVertexCnv_p1

friend class ::RecVertexCnv_p1
friend

Definition at line 113 of file RecVertex.h.

Member Data Documentation

◆ m_fitQuality

Trk::FitQuality Trk::RecVertex::m_fitQuality
private

Definition at line 115 of file RecVertex.h.

◆ m_position

Amg::Vector3D Trk::Vertex::m_position
privateinherited

vertex position

Definition at line 51 of file Tracking/TrkEvent/VxVertex/VxVertex/Vertex.h.

◆ s_numberOfInstantiations

std::atomic_size_t Trk::ObjectCounter< Trk::Vertex >::s_numberOfInstantiations
inlinestaticinherited

Definition at line 22 of file TrkObjectCounter.h.


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