ATLAS Offline Software
VxVertexOnJetAxis.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  VxVertexOnJetAxis.h - Description
7  -------------------
8  begin : Februar 2007
9  authors : Giacinto Piacquadio (University of Freiburg)
10  Christian Weiser (University of Freiburg)
11  e-mails: giacinto.piacquadio@physik.uni-freiburg.de)
12  christian.weiser@cern.ch
13  changes: new!
14 
15  (c) Atlas Collaboration 2007
16 
17  This class represents one vertex on the Jet axis to be fitted by the
18  "JetFitter" algorithm and all vertices are stored in a vector inside
19  the VxJetCandidate class.
20 
21  It contains a vector of pointers to the tracks which belongs to the vertex:
22  this tracks "belong" directly to the VxJetCandidate.
23 
24  Properties of the single VxVertexOnJetAxis class are:
25  FitQuality (chi2 and ndf)
26  Num_vertex (gives the vertex numbering scheme, used internally by JetFitter,
27  should not be needed by the user)
28  CompatibilityToPrimaryVtx (gives the probability of that vertex to be compatible
29  with the primary vertex)
30 
31 
32  ***************************************************************************/
33 
34 #ifndef VXJETVERTEX_VxVertexOnJetAxis_H
35 #define VXJETVERTEX_VxVertexOnJetAxis_H
36 
37 #include "GaudiKernel/MsgStream.h"
39 
40 namespace Trk {
41 
42  class VxTrackAtVertex;
43 
51  class VxVertexOnJetAxis
52  {
53  public:
54 
60 
61 
65  VxVertexOnJetAxis(std::vector<VxTrackAtVertex*> tracksAtVertex);
66 
71  VxVertexOnJetAxis(std::vector<VxTrackAtVertex*> tracksAtVertex,
72  int numVertex);
73 
79 
83  virtual MsgStream& dump(MsgStream& sl) const;
84 
88  virtual std::ostream& dump(std::ostream& sl) const;
89 
93  void setNumVertex(int numVertex);
94 
98  int getNumVertex(void) const;
99 
103  virtual ~VxVertexOnJetAxis();
104 
105 
109  const Trk::FitQuality& fitQuality() const;
110 
115 
116 
120  const std::vector<VxTrackAtVertex*> & getTracksAtVertex(void) const;
121 
122 
126  void setTracksAtVertex(std::vector<VxTrackAtVertex*> tracksAtVertex);
127 
131  float getCompatibilityToPrimaryVtx(void) const;
132 
136  void setCompatibilityToPrimaryVtx(float);
137 
138  private:
139  std::vector<VxTrackAtVertex*> m_tracksAtVertex;
140  int m_numVertex;//starts from 0, is used internally by the fitter, should not be needed by the user
141  Trk::FitQuality m_fitQuality; //chi2 and number of degrees of freedom of the fit
143  };
144 
145 
146 
147 
148 } // end of namespace
149 #endif
150 
Trk::VxVertexOnJetAxis::operator=
VxVertexOnJetAxis & operator=(const VxVertexOnJetAxis &)
Definition: VxVertexOnJetAxis.cxx:61
Trk::VxVertexOnJetAxis::getTracksAtVertex
const std::vector< VxTrackAtVertex * > & getTracksAtVertex(void) const
get Tracks At Vertex Method
Definition: VxVertexOnJetAxis.cxx:102
Trk::VxVertexOnJetAxis::getCompatibilityToPrimaryVtx
float getCompatibilityToPrimaryVtx(void) const
get compatibility to the primary vertex
Definition: VxVertexOnJetAxis.cxx:113
Trk::VxVertexOnJetAxis::m_tracksAtVertex
std::vector< VxTrackAtVertex * > m_tracksAtVertex
Definition: VxVertexOnJetAxis.h:166
Trk::VxVertexOnJetAxis
VxVertexOnJetAxis inherits from Vertex.
Definition: VxVertexOnJetAxis.h:79
Trk::VxVertexOnJetAxis::dump
virtual MsgStream & dump(MsgStream &sl) const
Output Method for MsgStream, to be overloaded by child classes.
Definition: VxVertexOnJetAxis.cxx:74
Trk::VxVertexOnJetAxis::~VxVertexOnJetAxis
virtual ~VxVertexOnJetAxis()
Destructor.
Trk::VxVertexOnJetAxis::setNumVertex
void setNumVertex(int numVertex)
Set Method for NumVertex.
Definition: VxVertexOnJetAxis.cxx:94
Trk::VxVertexOnJetAxis::m_compatibilityToPrimaryVtx
float m_compatibilityToPrimaryVtx
Definition: VxVertexOnJetAxis.h:169
Trk::VxVertexOnJetAxis::fitQuality
const Trk::FitQuality & fitQuality() const
Fit quality access method.
Definition: VxVertexOnJetAxis.cxx:86
Trk::VxVertexOnJetAxis::getNumVertex
int getNumVertex(void) const
Get Method for NumVertex.
Definition: VxVertexOnJetAxis.cxx:98
Trk::FitQuality
Class to represent and store fit qualities from track reconstruction in terms of and number of degre...
Definition: FitQuality.h:97
Trk::VxVertexOnJetAxis::VxVertexOnJetAxis
VxVertexOnJetAxis()
Default constructor, if called initializes a VxVertexOnJetAxis with all data members set to 0.
Definition: VxVertexOnJetAxis.cxx:41
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::VxVertexOnJetAxis::setCompatibilityToPrimaryVtx
void setCompatibilityToPrimaryVtx(float)
set compatibility to the primary vertex
Definition: VxVertexOnJetAxis.cxx:121
Trk::VxVertexOnJetAxis::m_numVertex
int m_numVertex
Definition: VxVertexOnJetAxis.h:167
Trk::VxVertexOnJetAxis::setFitQuality
void setFitQuality(const Trk::FitQuality &fitQuality)
Fit quality set method.
Definition: VxVertexOnJetAxis.cxx:90
Trk::VxVertexOnJetAxis::setTracksAtVertex
void setTracksAtVertex(std::vector< VxTrackAtVertex * > tracksAtVertex)
set Tracks At Vertex Method
Definition: VxVertexOnJetAxis.cxx:106
FitQuality.h
Trk::VxVertexOnJetAxis::m_fitQuality
Trk::FitQuality m_fitQuality
Definition: VxVertexOnJetAxis.h:168