ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkEvent
TrkV0Vertex
src
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
16
#include "
TrkV0Vertex/V0Hypothesis.h
"
17
#include "
VxVertex/ExtendedVxCandidate.h
"
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
33
V0Hypothesis
*
V0Hypothesis::clone
()
const
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
ExtendedVxCandidate.h
V0Hypothesis.h
Trk::ExtendedVxCandidate
Extends the standard Trk::VxCandidate to store the full covariance matrix of a fitted vertex all part...
Definition
ExtendedVxCandidate.h:33
Trk::ExtendedVxCandidate::ExtendedVxCandidate
ExtendedVxCandidate()
Standard constructor for persistency.
Definition
ExtendedVxCandidate.cxx:13
Trk::ExtendedVxCandidate::operator=
ExtendedVxCandidate & operator=(const ExtendedVxCandidate &)
Assignement operator.
Definition
ExtendedVxCandidate.cxx:35
Trk::RecVertex
Trk::RecVertex inherits from Trk::Vertex.
Definition
RecVertex.h:44
Trk::V0Hypothesis
An extension of Trk::ExtendedVxCandidate, to be used for constrained and unconstrained V0 candidates ...
Definition
V0Hypothesis.h:40
Trk::V0Hypothesis::m_constraintID
int m_constraintID
Definition
V0Hypothesis.h:101
Trk::V0Hypothesis::m_positiveTrackID
int m_positiveTrackID
Definition
V0Hypothesis.h:99
Trk::V0Hypothesis::V0Hypothesis
V0Hypothesis()
Default constructor.
Definition
V0Hypothesis.cxx:21
Trk::V0Hypothesis::positiveTrackID
int positiveTrackID(void) const
Retrieves a positive decay product ID.
Definition
V0Hypothesis.h:105
Trk::V0Hypothesis::negativeTrackID
int negativeTrackID(void) const
Retrieves a negative decay product.
Definition
V0Hypothesis.h:108
Trk::V0Hypothesis::~V0Hypothesis
virtual ~V0Hypothesis()
Destructor.
Trk::V0Hypothesis::clone
virtual V0Hypothesis * clone() const
Clone method.
Definition
V0Hypothesis.cxx:33
Trk::V0Hypothesis::m_negativeTrackID
int m_negativeTrackID
Definition
V0Hypothesis.h:100
Trk::V0Hypothesis::operator=
V0Hypothesis & operator=(const V0Hypothesis &rhs)
Assignement operator, clone method and copy constructor.
Definition
V0Hypothesis.cxx:36
Trk::VxCandidate::vxTrackAtVertex
std::vector< Trk::VxTrackAtVertex * > * vxTrackAtVertex(void)
Unconst pointer to the vector of tracks Required by some of the vertex fitters.
Definition
VxCandidate.h:144
Trk::VxCandidate::recVertex
const Trk::RecVertex & recVertex(void) const
Returns a reference to reconstructed vertex.
Definition
VxCandidate.h:132
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition
EventPrimitives.h:27
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Generated on
for ATLAS Offline Software by
1.17.0