ATLAS Offline Software
Loading...
Searching...
No Matches
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
17
19// Public methods:
21
22// Constructors
24
25AthExParticle::AthExParticle( double px, double py, double pz, double ene ) :
27 m_px ( px ),
28 m_py ( py ),
29 m_pz ( pz ),
30 m_ene( ene )
31{}
32
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
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
AthExParticle(double px=0., double py=0., double pz=0., double ene=0.)
Default constructor:
virtual double px() const
Implementation of the AthExIParticle interface.
AthExParticle & operator=(const AthExParticle &rhs)
Assignment operator:
virtual double py() const
virtual double pz() const
virtual ~AthExParticle()
Constructor with parameters: