ATLAS Offline Software
V0Hypothesis.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  V0Hypothesis.cxx - Description
7  -------------------
8  begin : 31-07-2005
9  authors : Evelina Bouhova-Thacker (Lancater University), Rob Henderson (Lancater University)
10  email : e.bouhova@cern.ch, r.henderson@lancaster.ac.uk
11  changes : March 2007, E. Bouhova-Thacker, K. Prokofiev
12  move methods to TrkVertexAnalysisUtils/V0Tools.h
13 
14  ***************************************************************************/
15 
18 
19 namespace Trk {
20 
21  V0Hypothesis::V0Hypothesis() : ExtendedVxCandidate(), m_positiveTrackID(0), m_negativeTrackID(0), m_constraintID(0) {}
22 
23  V0Hypothesis::V0Hypothesis(const Trk::ExtendedVxCandidate& vxCandidate,
24  int positiveTrackID, int negativeTrackID, int constraintID):
25  ExtendedVxCandidate(vxCandidate),
26  m_positiveTrackID(positiveTrackID), m_negativeTrackID(negativeTrackID), m_constraintID(constraintID) {}
27 
28  V0Hypothesis::V0Hypothesis(const Trk::RecVertex& recVertex, const std::vector<Trk::VxTrackAtVertex *>& vxTrackAtVertex,
29  const Amg::MatrixX * fullCov, int positiveTrackID, int negativeTrackID, int constraintID):
30  ExtendedVxCandidate(recVertex, vxTrackAtVertex, fullCov),
31  m_positiveTrackID(positiveTrackID), m_negativeTrackID(negativeTrackID), m_constraintID(constraintID) {}
32 
34  {return new V0Hypothesis(*this);}
35 
36  V0Hypothesis& V0Hypothesis::operator= (const V0Hypothesis& rhs)
37  {
38  if (this!=&rhs)
39  {
40 // you need to call the base class assignment operator
41  this->ExtendedVxCandidate::operator=(rhs);
42  m_positiveTrackID = rhs.m_positiveTrackID;
43  m_negativeTrackID = rhs.m_negativeTrackID;
44  m_constraintID = rhs.m_constraintID;
45  }
46  return *this;
47  }
48 
49  V0Hypothesis::V0Hypothesis(const V0Hypothesis& rhs) = default;
50 
51  V0Hypothesis::~V0Hypothesis() = default;
52 
53 } // end of namespace
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition: EventPrimitives.h:27
Trk::V0Hypothesis::V0Hypothesis
V0Hypothesis()
Default constructor.
Definition: V0Hypothesis.cxx:30
Trk::V0Hypothesis
Definition: V0Hypothesis.h:40
python.Utilities.clone
clone
Definition: Utilities.py:134
Trk::RecVertex
Trk::RecVertex inherits from Trk::Vertex.
Definition: RecVertex.h:44
V0Hypothesis.h
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::V0Hypothesis::m_constraintID
int m_constraintID
Definition: V0Hypothesis.h:101
ExtendedVxCandidate.h
Trk::V0Hypothesis::m_negativeTrackID
int m_negativeTrackID
Definition: V0Hypothesis.h:100
Trk::V0Hypothesis::m_positiveTrackID
int m_positiveTrackID
Definition: V0Hypothesis.h:99
Trk::ExtendedVxCandidate
Definition: ExtendedVxCandidate.h:33