ATLAS Offline Software
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
17 
19 // Public methods:
21 
22 // Constructors
24 
26  m_p1(),
27  m_p2(),
28  m_l1(),
29  m_l2()
30 {}
31 
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 
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
53 {}
54 
56 // Const methods:
58 
60 {
61  if ( m_p1.isValid() ) { return *m_p1;
62  } else { return 0;
63  }
64 }
65 
67 {
68  if ( m_p2.isValid() ) { return *m_p2;
69  } else { return 0;
70  }
71 }
72 
74 {
75  if ( m_l1.isValid() ) { return *m_l1;
76  } else { return 0;
77  }
78 }
79 
81 {
82  if ( m_l2.isValid() ) { return *m_l2;
83  } else { return 0;
84  }
85 }
86 
88 // Non-const methods:
90 
95 {
96  m_p1 = p1;
97  m_p2 = p2;
98  m_l1 = l1;
99  m_l2 = l2;
100 }
AthExDecay::operator=
AthExDecay & operator=(const AthExDecay &rhs)
Assignment operator:
Definition: AthExDecay.cxx:39
AthExDecay.h
skel.l2
l2
Definition: skel.GENtoEVGEN.py:426
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
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:425
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