ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaExamples
AthExThinning
src_lib
AthExParticle.cxx
Go to the documentation of this file.
1
2
3
/*
4
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// AthExParticle.cxx
8
// Implementation file for class AthExParticle
9
// Author: S.Binet<binet@cern.ch>
11
12
13
// STL includes
14
15
// AthExThinning includes
16
#include "
AthExThinning/AthExParticle.h
"
17
19
// Public methods:
21
22
// Constructors
24
25
AthExParticle::AthExParticle
(
double
px
,
double
py
,
double
pz
,
double
ene ) :
26
AthExIParticle
( ),
27
m_px
(
px
),
28
m_py
(
py
),
29
m_pz
(
pz
),
30
m_ene
( ene )
31
{}
32
33
AthExParticle::AthExParticle
(
const
AthExParticle
& rhs ) :
34
AthExIParticle
( rhs ),
35
m_px
( rhs.
m_px
),
36
m_py
( rhs.
m_py
),
37
m_pz
( rhs.
m_pz
),
38
m_ene
( rhs.
m_ene
)
39
{}
40
41
AthExParticle
&
AthExParticle::operator=
(
const
AthExParticle
& rhs )
42
{
43
if
(
this
!= &rhs ) {
44
AthExIParticle::operator=( rhs );
45
m_px
= rhs.
m_px
;
46
m_py
= rhs.
m_py
;
47
m_pz
= rhs.
m_pz
;
48
m_ene
= rhs.
m_ene
;
49
}
50
return
*
this
;
51
}
52
53
// Destructor
55
AthExParticle::~AthExParticle
()
56
{}
AthExParticle.h
AthExIParticle
Definition
AthExIParticle.h:21
AthExParticle::AthExParticle
AthExParticle(double px=0., double py=0., double pz=0., double ene=0.)
Default constructor:
Definition
AthExParticle.cxx:25
AthExParticle::m_py
double m_py
Definition
AthExParticle.h:68
AthExParticle::px
virtual double px() const
Implementation of the AthExIParticle interface.
Definition
AthExParticle.h:78
AthExParticle::operator=
AthExParticle & operator=(const AthExParticle &rhs)
Assignment operator:
Definition
AthExParticle.cxx:41
AthExParticle::m_px
double m_px
Definition
AthExParticle.h:67
AthExParticle::m_pz
double m_pz
Definition
AthExParticle.h:69
AthExParticle::py
virtual double py() const
Definition
AthExParticle.h:79
AthExParticle::pz
virtual double pz() const
Definition
AthExParticle.h:80
AthExParticle::m_ene
double m_ene
Definition
AthExParticle.h:70
AthExParticle::~AthExParticle
virtual ~AthExParticle()
Constructor with parameters:
Definition
AthExParticle.cxx:55
Generated on
for ATLAS Offline Software by
1.17.0