ATLAS Offline Software
Control
AthenaExamples
AthExThinning
src_lib
AthExFatObject.cxx
Go to the documentation of this file.
1
3
/*
4
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// AthExFatObject.cxx
8
// Implementation file for class AthExFatObject
9
// Author: S.Binet<binet@cern.ch>
11
12
// AthExThinning includes
13
#include "
AthExThinning/AthExFatObject.h
"
14
15
// STL includes
16
17
18
typedef
AthExFatObject::AthExParticleLink_t
AthExParticleLink_t
;
19
21
// Public methods:
23
24
// Constructors
26
AthExFatObject::AthExFatObject
() :
27
m_particle (0),
28
m_particleLink()
29
{}
30
31
AthExFatObject::AthExFatObject
(
const
AthExFatObject
& rhs) :
32
m_particle (rhs.m_particle),
33
m_particleLink (rhs.m_particleLink)
34
{}
35
36
AthExFatObject
&
37
AthExFatObject::operator=
(
const
AthExFatObject
& rhs)
38
{
39
if
(
this
!= &rhs) {
40
m_particle
= rhs.
m_particle
;
41
m_particleLink
= rhs.
m_particleLink
;
42
}
43
return
*
this
;
44
}
45
46
AthExFatObject::AthExFatObject
(
const
AthExParticleLink_t
& link) :
47
m_particle (*link),
48
m_particleLink (link)
49
{}
50
51
// Destructor
53
AthExFatObject::~AthExFatObject
()
54
{
55
m_particle
= 0;
56
}
57
59
// Non-const methods:
61
62
void
63
AthExFatObject::setLink
(
const
AthExParticleLink_t
& link)
64
{
65
m_particle
= *link;
66
m_particleLink
= link;
67
}
AthExFatObject::AthExFatObject
AthExFatObject()
Default constructor:
Definition:
AthExFatObject.cxx:26
AthExParticleLink_t
AthExFatObject::AthExParticleLink_t AthExParticleLink_t
Definition:
AthExFatObject.cxx:18
AthExFatObject.h
AthExFatObject::~AthExFatObject
virtual ~AthExFatObject()
Destructor:
Definition:
AthExFatObject.cxx:53
AthExFatObject::operator=
AthExFatObject & operator=(const AthExFatObject &rhs)
Assignment operator:
Definition:
AthExFatObject.cxx:37
AthExFatObject::m_particleLink
AthExParticleLink_t m_particleLink
a persistable pointer to an AthExParticle
Definition:
AthExFatObject.h:93
ElementLink< AthExParticles >
AthExFatObject::setLink
void setLink(const AthExParticleLink_t &link)
set the internals of the fat object
Definition:
AthExFatObject.cxx:63
AthExFatObject
Definition:
AthExFatObject.h:29
AthExFatObject::m_particle
const AthExParticle * m_particle
a raw pointer to an AthExParticle
Definition:
AthExFatObject.h:89
Generated on Mon Dec 23 2024 21:07:13 for ATLAS Offline Software by
1.8.18