ATLAS Offline Software
Loading...
Searching...
No Matches
RecVertexPositions.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5/***************************************************************************
6 RecVertexPositions.h - Description
7 -------------------
8 begin : Autumn 2006
9 authors : Giacinto Piacquadio (Freiburg University)
10 email : Giacinto.Piacquadio@cern.ch
11 changes :
12
13
14 ***************************************************************************/
15
16#ifndef VxJetVertex_RecVertexPositions_H
17#define VxJetVertex_RecVertexPositions_H
18
20#include "GaudiKernel/MsgStream.h"
22
23namespace Trk {
24
26 public:
29 RecVertexPositions(const Amg::VectorX &pos, const Amg::MatrixX &cov,
30 const double ndf = 0.,
31 const double chi2 = 0.,bool isWeightTimesPosition=false);
32 //-> added support for non integer degrees of freedom
33 // Additional constructor for truth ?
34 RecVertexPositions(const Amg::VectorX &pos, const double ndf = 0., const double chi2 =0.);
37
39 virtual MsgStream& dump(MsgStream& sl) const;
41 virtual std::ostream& dump(std::ostream& sl) const;
42
44
45 Amg::MatrixX const &covariancePosition() const;
46
48
49 void setFitQuality(const Trk::FitQuality &);
50
54 const Trk::FitQuality& fitQuality() const;
55
57
58 // Use storing weight matrix * position instead of position
59 // saves you from inverting the weight matrix at every fit iteration
60 // Then transparently, asking the position for the first time,
61 // the m_position will be restored to the correct value of position
62 // (using the invertion of the weight matrix only once...)
64
65 //the finalizePosition() method is used to ask the RecVertexPositions class
66 //to invert the weight matrix and fill the m_position vector with the real
67 //position, in order to finalize the position (and make it available)
68 void finalizePosition();
69
70 private:
72 Trk::FitQuality m_fitQuality; //chi2 and number of degrees of freedom of the fit
73 //bool m_positionErrorInverseIsComputed;
74 };
75
76
77} // end of namespace
78#endif
Class to represent and store fit qualities from track reconstruction in terms of and number of degre...
Definition FitQuality.h:97
virtual ~RecVertexPositions()
default destructor
RecVertexPositions()
default constructor, if called initializes a RecVertexPositions with all data members set to 0.
Amg::MatrixX const & covariancePosition() const
return the covDeltaV matrix of the vertex fit
void setWeightTimesPosition(const Amg::VectorX &)
const Amg::VectorX & weightTimesPosition()
void setFitQuality(const Trk::FitQuality &)
RecVertexPositions(const RecVertexPositions &)
copy constructor
const Trk::FitQuality & fitQuality() const
Fit quality access method.
Amg::MatrixX m_positionError
cov matrix on vertex position (primary vtx+jet dir+distance)
void setCovariancePosition(const Amg::MatrixX &)
RecVertexPositions & operator=(const RecVertexPositions &)
Assignement operator.
VertexPositions()
default constructor
double chi2(TH1 *h0, TH1 *h1)
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Eigen::Matrix< double, Eigen::Dynamic, 1 > VectorX
Dynamic Vector - dynamic allocation.
Ensure that the ATLAS eigen extensions are properly loaded.
-event-from-file