ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
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. More...
 
 RecVertex (const Vertex &pos)
 Constructor from a Vertex class. More...
 
 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. More...
 
 RecVertex (const Amg::Vector3D &pos, const double ndf=0., const double chi2=0.)
 Constructs a RecVertex with position, default covariance, ndf, dhi2 and ntrk. More...
 
 RecVertex (const RecVertex &)=default
 Copy constructor and assignement operator. More...
 
RecVertexoperator= (const RecVertex &)=default
 
 RecVertex (RecVertex &&)=default
 Move constructor and assignment operator. More...
 
RecVertexoperator= (RecVertex &&)=default
 
virtual MsgStream & dump (MsgStream &sl) const
 Output Method for MsgStream, to be overloaded by child classes. More...
 
virtual std::ostream & dump (std::ostream &sl) const
 Output Method for std::ostream, to be overloaded by child classes. More...
 
virtual ~RecVertex ()
 Destructor. More...
 
const AmgSymMatrix (3) &covariancePosition() const
 Weight and covariance matrix access method. More...
 
const Trk::FitQualityfitQuality () const
 Fit quality access method. More...
 
void scaleError (float factor)
 Error scaling method. More...
 
const Amg::Vector3Dposition () const
 return position of vertex More...
 

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 More...
 

Private Attributes

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

Friends

class ::RecVertexCnv_p1
 

Detailed Description

Trk::RecVertex inherits from Trk::Vertex.

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).

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

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 33 of file RecVertex.cxx.

35  :
36  Vertex(pos), m_positionCovariance(cov), m_fitQuality(Trk::FitQuality(chi2,ndf))

◆ RecVertex() [2/6]

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

Constructor from a Vertex class.

ErrorMatrix will be 0,0,0.

Definition at line 36 of file RecVertex.cxx.

37  {}
38 
39  RecVertex::RecVertex(const Amg::Vector3D &pos, const double ndf, const double chi2) :
40  Vertex(pos), m_positionCovariance(3,3),
42  {

◆ 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 44 of file RecVertex.cxx.

46  {
47  sl << "Trk::RecVertex: " << std::endl;

◆ 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 49 of file RecVertex.cxx.

54  {

◆ 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 ( ) const &

Weight and covariance matrix access method.

return the covDeltaV matrix of the vertex fit

◆ AmgSymMatrix() [2/2]

Trk::RecVertex::AmgSymMatrix ( )
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 56 of file RecVertex.cxx.

◆ 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 64 of file RecVertex.cxx.

65  {return m_fitQuality;}
66 
67  const AmgSymMatrix(3)& RecVertex::covariancePosition() const
68  {return m_positionCovariance; }
69 
70  void RecVertex::scaleError(float factor) {

◆ fitQuality()

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

Fit quality access method.

Definition at line 74 of file RecVertex.cxx.

◆ numberOfInstantiations()

static 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  }

◆ 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 72 of file Vertex.cxx.

◆ scaleError()

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

Error scaling method.

Friends And Related Function Documentation

◆ ::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:
covarianceTool.ndf
ndf
Definition: covarianceTool.py:678
Trk::RecVertex::m_fitQuality
Trk::FitQuality m_fitQuality
Definition: RecVertex.h:115
Trk::RecVertex::AmgSymMatrix
const AmgSymMatrix(3) &covariancePosition() const
Weight and covariance matrix access method.
plotBeamSpotVxVal.cov
cov
Definition: plotBeamSpotVxVal.py:201
Trk::RecVertex::scaleError
void scaleError(float factor)
Error scaling method.
Trk::RecVertex::RecVertex
RecVertex()
Default constructor, if called initializes a RecVertex with all data members set to 0.
Definition: RecVertex.cxx:33
chi2
double chi2(TH1 *h0, TH1 *h1)
Definition: comparitor.cxx:522
Trk::FitQuality
Class to represent and store fit qualities from track reconstruction in terms of and number of degre...
Definition: FitQuality.h:97
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::Vertex::Vertex
Vertex()
Contructors: default, copy and a constructor taking a vertex position (Amg::Vector3D) as argument.
Definition: Vertex.cxx:30
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
Trk::ObjectCounter< Trk::Vertex >::s_numberOfInstantiations
static std::atomic_size_t s_numberOfInstantiations
Definition: TrkObjectCounter.h:22
python.Dumpers.FitQuality
FitQuality
Definition: Dumpers.py:63