ATLAS Offline Software
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 
23 namespace Trk {
24 
25  class RecVertexPositions : public VertexPositions {
26  public:
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 
43  virtual ~RecVertexPositions();
44 
45  Amg::MatrixX const &covariancePosition() const;
46 
47  void setCovariancePosition(const Amg::MatrixX &);
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
covarianceTool.ndf
ndf
Definition: covarianceTool.py:678
Trk::RecVertexPositions::RecVertexPositions
RecVertexPositions()
default constructor, if called initializes a RecVertexPositions with all data members set to 0.
Definition: RecVertexPositions.cxx:33
Amg::VectorX
Eigen::Matrix< double, Eigen::Dynamic, 1 > VectorX
Dynamic Vector - dynamic allocation.
Definition: EventPrimitives.h:30
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition: EventPrimitives.h:27
Trk::RecVertexPositions::setCovariancePosition
void setCovariancePosition(const Amg::MatrixX &)
Definition: RecVertexPositions.cxx:175
Trk::RecVertexPositions::dump
virtual MsgStream & dump(MsgStream &sl) const
Output Method for MsgStream, to be overloaded by child classes.
Definition: RecVertexPositions.cxx:105
plotBeamSpotVxVal.cov
cov
Definition: plotBeamSpotVxVal.py:201
VertexPositions.h
Trk::RecVertexPositions::finalizePosition
void finalizePosition()
Definition: RecVertexPositions.cxx:84
Trk::RecVertexPositions::setWeightTimesPosition
void setWeightTimesPosition(const Amg::VectorX &)
Definition: RecVertexPositions.cxx:76
Trk::RecVertexPositions::setFitQuality
void setFitQuality(const Trk::FitQuality &)
Definition: RecVertexPositions.cxx:179
Trk::RecVertexPositions::m_fitQuality
Trk::FitQuality m_fitQuality
Definition: RecVertexPositions.h:90
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::RecVertexPositions::fitQuality
const Trk::FitQuality & fitQuality() const
Fit quality access method.
Definition: RecVertexPositions.cxx:167
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::RecVertexPositions::m_positionError
Amg::MatrixX m_positionError
cov matrix on vertex position (primary vtx+jet dir+distance)
Definition: RecVertexPositions.h:89
Trk::VertexPositions::VertexPositions
VertexPositions()
default constructor
Definition: VertexPositions.cxx:29
Trk::RecVertexPositions::~RecVertexPositions
virtual ~RecVertexPositions()
default destructor
Trk::RecVertexPositions
Definition: RecVertexPositions.h:34
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
Trk::RecVertexPositions::covariancePosition
Amg::MatrixX const & covariancePosition() const
return the covDeltaV matrix of the vertex fit
Definition: RecVertexPositions.cxx:171
Trk::RecVertexPositions::operator=
RecVertexPositions & operator=(const RecVertexPositions &)
Assignement operator.
Definition: RecVertexPositions.cxx:93
FitQuality.h
Trk::RecVertexPositions::weightTimesPosition
const Amg::VectorX & weightTimesPosition()
Definition: RecVertexPositions.cxx:61