ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
JetTagEvent
src
ISvxConstituent.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
ISvxConstituents.h - Description
7
-------------------
8
begin : March, 2007
9
authors : CSC b-tagging vertexing note group members
10
worked started by: Giacinto Piacquadio
11
email : giacinto.piacquadio@physik.uni-freiburg.de
12
13
changes : new!
14
15
***************************************************************************/
16
17
#include "
JetTagEvent/ISvxConstituent.h
"
18
#include "
VxSecVertex/VxSecVertexInfo.h
"
19
20
namespace
Analysis
21
{
22
23
24
ISvxConstituent::ISvxConstituent
():
25
m_vertexInfo
(0) {}
26
27
ISvxConstituent::ISvxConstituent
(
NameType
&
name
):
28
m_name
(
name
),
29
m_vertexInfo
(0)
30
{ }
31
32
ISvxConstituent::~ISvxConstituent
()
33
{
34
35
//delete the vertexInfo (if there)
36
if
(
m_vertexInfo
) {
37
delete
m_vertexInfo
;
38
m_vertexInfo
=0;
39
}
40
}
41
42
ISvxConstituent::ISvxConstituent
(
const
ISvxConstituent
& rhs):
43
INavigable
(rhs),
44
IConstituent
(rhs),
45
m_vertexInfo
(rhs.
m_vertexInfo
!=0 ? rhs.
m_vertexInfo
->
clone
() : 0)
46
{ }
47
48
ISvxConstituent::ISvxConstituent
(
NameType
&
name
,
const
ISvxConstituent
& rhs):
49
IConstituent
(rhs),
50
m_name
(
name
),
51
m_vertexInfo
(rhs.
m_vertexInfo
!=0 ? rhs.
m_vertexInfo
->
clone
() : 0)
52
{ }
53
54
55
void
ISvxConstituent::setName
(
NameType
&
name
) {
m_name
=
name
;}
56
57
NameType
ISvxConstituent::name
()
const
{
return
m_name
;}
58
59
ISvxConstituent
*
ISvxConstituent::clone
()
const
60
{
return
new
ISvxConstituent
( *
this
);}
61
62
ISvxConstituent
&
ISvxConstituent::operator=
(
const
ISvxConstituent
& rhs)
63
{
64
if
(
this
!=&rhs) {
65
m_name
=rhs.
m_name
;
66
if
(
m_vertexInfo
) {
67
delete
m_vertexInfo
;
68
m_vertexInfo
=0;
69
}
70
if
(rhs.
m_vertexInfo
) {
71
m_vertexInfo
=rhs.
m_vertexInfo
->
clone
();
72
}
73
}
74
return
*
this
;
75
}
76
77
const
Trk::VxSecVertexInfo
*
ISvxConstituent::vertexInfo
()
const
{
78
return
m_vertexInfo
;
79
}
80
81
//PAY ATTENTION!
82
// Set function (OWNERSHIP of the object is taken by THIS class, so don't delete
83
// the pointer you are providing afterwards)
84
void
ISvxConstituent::setVertexInfo
(
const
Trk::VxSecVertexInfo
*
vertexInfo
) {
85
if
(
m_vertexInfo
) {
86
delete
m_vertexInfo
;
87
m_vertexInfo
=0;
88
}
89
m_vertexInfo
=
vertexInfo
;
90
}
91
92
}
//end namespace Analysis
ISvxConstituent.h
VxSecVertexInfo.h
Analysis::IConstituent
Class IConstituent: This is the abstract base class for additional jet constituents to be put into th...
Definition
IConstituent.h:43
Analysis::ISvxConstituent::m_vertexInfo
const Trk::VxSecVertexInfo * m_vertexInfo
Definition
ISvxConstituent.h:84
Analysis::ISvxConstituent::name
virtual NameType name() const
returns the infoType of the info objects.
Definition
ISvxConstituent.cxx:57
Analysis::ISvxConstituent::vertexInfo
const Trk::VxSecVertexInfo * vertexInfo() const
Definition
ISvxConstituent.cxx:77
Analysis::ISvxConstituent::ISvxConstituent
ISvxConstituent()
constructor
Definition
ISvxConstituent.cxx:24
Analysis::ISvxConstituent::setName
virtual void setName(NameType &name)
to set the name
Definition
ISvxConstituent.cxx:55
Analysis::ISvxConstituent::~ISvxConstituent
~ISvxConstituent()
destructor
Definition
ISvxConstituent.cxx:32
Analysis::ISvxConstituent::setVertexInfo
void setVertexInfo(const Trk::VxSecVertexInfo *)
Definition
ISvxConstituent.cxx:84
Analysis::ISvxConstituent::m_name
std::string m_name
Definition
ISvxConstituent.h:83
Analysis::ISvxConstituent::clone
virtual ISvxConstituent * clone() const
a clone method for the proper workings of the copy constructor
Definition
ISvxConstituent.cxx:59
Analysis::ISvxConstituent::operator=
ISvxConstituent & operator=(const ISvxConstituent &)
Definition
ISvxConstituent.cxx:62
INavigable
Definition
INavigable.h:18
Trk::VxSecVertexInfo
Definition
VxSecVertexInfo.h:41
Trk::VxSecVertexInfo::clone
virtual VxSecVertexInfo * clone() const
Definition
VxSecVertexInfo.h:88
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition
IConstituent.h:25
Analysis::NameType
std::string NameType
string to identify the constituent
Definition
IConstituent.h:30
Generated on
for ATLAS Offline Software by
1.17.0