ATLAS Offline Software
VxVertexOnJetAxis.cxx
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.cxx - 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  More information contained in the header file
18 
19  ***************************************************************************/
20 
22 
23 
24 namespace Trk {
25 
26 
28  m_numVertex(-1),
29  m_fitQuality(Trk::FitQuality(0.,0.)),
30  m_compatibilityToPrimaryVtx(-1) {}
31 
32  VxVertexOnJetAxis::VxVertexOnJetAxis(std::vector<VxTrackAtVertex*> tracksAtVertex):
33  m_tracksAtVertex(std::move(tracksAtVertex)),
34  m_numVertex(-1),
35  m_fitQuality(Trk::FitQuality(0.,0.)),
36  m_compatibilityToPrimaryVtx(-1) {}
37 
38  VxVertexOnJetAxis::VxVertexOnJetAxis(std::vector<VxTrackAtVertex*> tracksAtVertex,
39  int numVertex):
40  m_tracksAtVertex(std::move(tracksAtVertex)),
41  m_numVertex(numVertex),
42  m_fitQuality(Trk::FitQuality(0.,0.)),
43  m_compatibilityToPrimaryVtx(-1) {}
44 
45  VxVertexOnJetAxis::VxVertexOnJetAxis(const VxVertexOnJetAxis& rhs) = default;
46 
47  VxVertexOnJetAxis &VxVertexOnJetAxis::operator= (const VxVertexOnJetAxis& rhs)
48  {
49  if (this!=&rhs)
50  {
51  // you need to call the base class assignment operator
52  m_tracksAtVertex=rhs.m_tracksAtVertex;
53  m_numVertex=rhs.m_numVertex;
54  m_fitQuality=rhs.m_fitQuality;
55  m_compatibilityToPrimaryVtx=rhs.m_compatibilityToPrimaryVtx;
56  }
57  return *this;
58  }
59 
60  MsgStream& VxVertexOnJetAxis::dump(MsgStream& sl) const {
61  sl << "Trk::VxVertexOnJetAxis: no info implemented sofar" << std::endl;
62  return sl;
63  }
64 
65  std::ostream& VxVertexOnJetAxis::dump(std::ostream& sl) const {
66  sl << "Trk::VxVertexOnJetAxis: no info implemented sofar" << std::endl;
67  return sl;
68  }
69 
70  VxVertexOnJetAxis::~VxVertexOnJetAxis() = default;
71 
73  return m_fitQuality;
74  }
75 
76  void VxVertexOnJetAxis::setFitQuality(const Trk::FitQuality& fitQuality) {
77  m_fitQuality=fitQuality;
78  }
79 
80  void VxVertexOnJetAxis::setNumVertex(int numVertex) {
81  m_numVertex=numVertex;
82  }
83 
84  int VxVertexOnJetAxis::getNumVertex(void) const {
85  return m_numVertex;
86  }
87 
88  const std::vector<VxTrackAtVertex*> & VxVertexOnJetAxis::getTracksAtVertex(void) const {
89  return m_tracksAtVertex;
90  }
91 
92  void VxVertexOnJetAxis::setTracksAtVertex(std::vector<VxTrackAtVertex*> tracksAtVertex) {
93  m_tracksAtVertex=std::move(tracksAtVertex);
94  }
95 
99  float VxVertexOnJetAxis::getCompatibilityToPrimaryVtx(void) const {
100  return m_compatibilityToPrimaryVtx;
101  }
102 
103 
107  void VxVertexOnJetAxis::setCompatibilityToPrimaryVtx(float newcomp) {
108  m_compatibilityToPrimaryVtx=newcomp;
109  }
110 
111 
112 
113 
114 
115 } // end of namespace
VxVertexOnJetAxis.h
Trk::VxVertexOnJetAxis::m_tracksAtVertex
std::vector< VxTrackAtVertex * > m_tracksAtVertex
Definition: VxVertexOnJetAxis.h:166
Trk::VxVertexOnJetAxis
VxVertexOnJetAxis inherits from Vertex.
Definition: VxVertexOnJetAxis.h:79
run_Egamma1_LArStrip_Fex.dump
dump
Definition: run_Egamma1_LArStrip_Fex.py:88
Trk::VxVertexOnJetAxis::m_compatibilityToPrimaryVtx
float m_compatibilityToPrimaryVtx
Definition: VxVertexOnJetAxis.h:169
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::GsfMeasurementUpdator::fitQuality
FitQualityOnSurface fitQuality(const MultiComponentState &, const MeasurementBase &)
Method for determining the chi2 of the multi-component state and the number of degrees of freedom.
Definition: GsfMeasurementUpdator.cxx:845
Trk::VxVertexOnJetAxis::m_numVertex
int m_numVertex
Definition: VxVertexOnJetAxis.h:167
python.Dumpers.FitQuality
FitQuality
Definition: Dumpers.py:63
Trk::VxVertexOnJetAxis::m_fitQuality
Trk::FitQuality m_fitQuality
Definition: VxVertexOnJetAxis.h:168