ATLAS Offline Software
DetectorDescription
GeoModel
GeoModelUtilities
src
GeoMPVEntry.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
GeoModelUtilities/GeoMPVEntry.h
"
6
#include <iostream>
7
8
bool
GeoMPVEntry::operator ==
(
const
GeoMPVEntry
&right)
const
9
{
10
if
(
m_thePhotonMomentum
== right.
m_thePhotonMomentum
)
11
return
true
;
12
else
13
return
false
;
14
}
15
16
bool
GeoMPVEntry::operator <
(
const
GeoMPVEntry
&right)
const
17
{
18
if
(
m_thePhotonMomentum
< right.
m_thePhotonMomentum
)
19
return
true
;
20
else
21
return
false
;
22
}
23
24
GeoMPVEntry
&
GeoMPVEntry::operator =
(
const
GeoMPVEntry
& right)
25
{
26
if
(
this
== &right)
return
*
this
;
27
28
m_thePhotonMomentum
= right.
m_thePhotonMomentum
;
29
m_theProperty
= right.
m_theProperty
;
30
return
*
this
;
31
}
32
33
GeoMPVEntry::GeoMPVEntry
(
double
aPhotonMomentum,
double
aProperty)
34
{
35
m_thePhotonMomentum
= aPhotonMomentum;
36
m_theProperty
= aProperty;
37
}
38
39
GeoMPVEntry::GeoMPVEntry
(
const
GeoMPVEntry
&right)
40
{
41
m_thePhotonMomentum
= right.
m_thePhotonMomentum
;
42
m_theProperty
= right.
m_theProperty
;
43
}
44
45
GeoMPVEntry::~GeoMPVEntry
(){}
46
47
void
GeoMPVEntry::DumpEntry
()
48
{
49
std::cout <<
"("
50
<<
m_thePhotonMomentum
51
<<
", "
52
<<
m_theProperty
53
<<
")\n"
;
54
}
GeoMPVEntry.h
GeoMPVEntry::GeoMPVEntry
GeoMPVEntry(double aPhotonMomentum, double aPropertyValue)
Definition:
GeoMPVEntry.cxx:33
GeoMPVEntry::~GeoMPVEntry
~GeoMPVEntry()
Definition:
GeoMPVEntry.cxx:45
GeoMPVEntry::operator<
bool operator<(const GeoMPVEntry &right) const
Definition:
GeoMPVEntry.cxx:16
GeoMPVEntry
Definition:
GeoMPVEntry.h:9
GeoMPVEntry::m_thePhotonMomentum
double m_thePhotonMomentum
Definition:
GeoMPVEntry.h:25
GeoMPVEntry::operator=
GeoMPVEntry & operator=(const GeoMPVEntry &right)
Definition:
GeoMPVEntry.cxx:24
GeoMPVEntry::operator==
bool operator==(const GeoMPVEntry &right) const
Definition:
GeoMPVEntry.cxx:8
GeoMPVEntry::DumpEntry
void DumpEntry()
Definition:
GeoMPVEntry.cxx:47
GeoMPVEntry::m_theProperty
double m_theProperty
Definition:
GeoMPVEntry.h:26
Generated on Thu Nov 7 2024 21:15:46 for ATLAS Offline Software by
1.8.18