ATLAS Offline Software
Control
AthenaExamples
AthExThinning
src_lib
AthExDecay.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
// AthExDecay.cxx
8
// Implementation file for class AthExDecay
9
// Author: S.Binet<binet@cern.ch>
11
12
13
// STL includes
14
15
// AthExThinning includes
16
#include "
AthExThinning/AthExDecay.h
"
17
19
// Public methods:
21
22
// Constructors
24
25
AthExDecay::AthExDecay
() :
26
m_p1(),
27
m_p2(),
28
m_l1(),
29
m_l2()
30
{}
31
32
AthExDecay::AthExDecay
(
const
AthExDecay
& rhs ) :
33
m_p1( rhs.m_p1 ),
34
m_p2( rhs.m_p2 ),
35
m_l1( rhs.m_l1 ),
36
m_l2( rhs.m_l2 )
37
{}
38
39
AthExDecay
&
AthExDecay::operator=
(
const
AthExDecay
& rhs )
40
{
41
if
(
this
!= &rhs ) {
42
m_p1
= rhs.
m_p1
;
43
m_p2
= rhs.
m_p2
;
44
m_l1
= rhs.
m_l1
;
45
m_l2
= rhs.
m_l2
;
46
}
47
return
*
this
;
48
}
49
50
// Destructor
52
AthExDecay::~AthExDecay
()
53
{}
54
56
// Const methods:
58
59
const
AthExParticle
*
AthExDecay::p1
()
const
60
{
61
if
(
m_p1
.
isValid
() ) {
return
*
m_p1
;
62
}
else
{
return
0;
63
}
64
}
65
66
const
AthExParticle
*
AthExDecay::p2
()
const
67
{
68
if
(
m_p2
.
isValid
() ) {
return
*
m_p2
;
69
}
else
{
return
0;
70
}
71
}
72
73
const
AthExParticle
*
AthExDecay::l1
()
const
74
{
75
if
(
m_l1
.
isValid
() ) {
return
*
m_l1
;
76
}
else
{
return
0;
77
}
78
}
79
80
const
AthExParticle
*
AthExDecay::l2
()
const
81
{
82
if
(
m_l2
.
isValid
() ) {
return
*
m_l2
;
83
}
else
{
return
0;
84
}
85
}
86
88
// Non-const methods:
90
91
void
AthExDecay::setDecay
(
const
ElementLink<AthExParticles>
&
p1
,
92
const
ElementLink<AthExParticles>
&
p2
,
93
const
ElementLink<AthExParticles>
&
l1
,
94
const
ElementLink<AthExParticles>
&
l2
)
95
{
96
m_p1
=
p1
;
97
m_p2
=
p2
;
98
m_l1
=
l1
;
99
m_l2
=
l2
;
100
}
TRTCalib_cfilter.p1
p1
Definition:
TRTCalib_cfilter.py:130
ElementLink::isValid
bool isValid() const
Test to see if the link can be dereferenced.
AthExDecay::operator=
AthExDecay & operator=(const AthExDecay &rhs)
Assignment operator:
Definition:
AthExDecay.cxx:39
AthExDecay.h
TRTCalib_cfilter.p2
p2
Definition:
TRTCalib_cfilter.py:131
skel.l2
l2
Definition:
skel.GENtoEVGEN.py:399
AthExDecay::m_l2
ElementLink< AthExParticles > m_l2
Definition:
AthExDecay.h:81
AthExDecay::l1
const AthExParticle * l1() const
Definition:
AthExDecay.cxx:73
AthExDecay::setDecay
void setDecay(const ElementLink< AthExParticles > &p1, const ElementLink< AthExParticles > &p2, const ElementLink< AthExParticles > &l1, const ElementLink< AthExParticles > &l2)
Definition:
AthExDecay.cxx:91
AthExDecay
Definition:
AthExDecay.h:28
ElementLink< AthExParticles >
AthExDecay::m_l1
ElementLink< AthExParticles > m_l1
Definition:
AthExDecay.h:80
AthExDecay::p2
const AthExParticle * p2() const
Definition:
AthExDecay.cxx:66
AthExDecay::m_p1
ElementLink< AthExParticles > m_p1
Definition:
AthExDecay.h:78
AthExDecay::p1
const AthExParticle * p1() const
Definition:
AthExDecay.cxx:59
AthExParticle
Definition:
AthExParticle.h:24
skel.l1
l1
Definition:
skel.GENtoEVGEN.py:398
AthExDecay::m_p2
ElementLink< AthExParticles > m_p2
Definition:
AthExDecay.h:79
AthExDecay::~AthExDecay
virtual ~AthExDecay()
Constructor with parameters:
Definition:
AthExDecay.cxx:52
AthExDecay::AthExDecay
AthExDecay()
Default constructor:
Definition:
AthExDecay.cxx:25
AthExDecay::l2
const AthExParticle * l2() const
Definition:
AthExDecay.cxx:80
Generated on Thu Nov 7 2024 21:10:25 for ATLAS Offline Software by
1.8.18