ATLAS Offline Software
Tracking
TrkDetDescr
TrkDetDescrUtils
src
LayerIndex.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// LayerIndexCalculator.cxx, (c) ATLAS Detector software
8
9
#include "
TrkDetDescrUtils/LayerIndex.h
"
10
11
bool
12
Trk::operator<
(
const
Trk::LayerIndex
&
one
,
const
Trk::LayerIndex
&
two
)
13
{
14
return
(
one
.value() <
two
.value());
15
}
16
17
bool
18
Trk::operator<=
(
const
Trk::LayerIndex
&
one
,
const
Trk::LayerIndex
&
two
)
19
{
20
return
(
one
.value() <=
two
.value());
21
}
22
23
bool
24
Trk::operator>
(
const
Trk::LayerIndex
&
one
,
const
Trk::LayerIndex
&
two
)
25
{
26
return
(
one
.value() >
two
.value());
27
}
28
29
bool
30
Trk::operator>=
(
const
Trk::LayerIndex
&
one
,
const
Trk::LayerIndex
&
two
)
31
{
32
return
(
one
.value() >=
two
.value());
33
}
34
35
MsgStream&
36
Trk::operator<<
(MsgStream& sl,
const
Trk::LayerIndex
& layx)
37
{
38
sl << layx.
value
();
39
return
sl;
40
}
41
42
std::ostream&
43
Trk::operator<<
(std::ostream& sl,
const
Trk::LayerIndex
& layx)
44
{
45
sl << layx.
value
();
46
return
sl;
47
}
Trk::operator<
bool operator<(const LayerIndex &one, const LayerIndex &two)
Overload of operator< | <= | > | >= for the usage in a map.
Definition:
LayerIndex.cxx:12
Trk::operator<=
bool operator<=(const LayerIndex &one, const LayerIndex &two)
Definition:
LayerIndex.cxx:18
Trk::operator>
bool operator>(const LayerIndex &one, const LayerIndex &two)
Definition:
LayerIndex.cxx:24
Trk::one
@ one
Definition:
TrkDetDescr/TrkSurfaces/TrkSurfaces/RealQuadraticEquation.h:22
Trk::two
@ two
Definition:
TrkDetDescr/TrkSurfaces/TrkSurfaces/RealQuadraticEquation.h:23
Trk::LayerIndex
Definition:
LayerIndex.h:37
Trk::LayerIndex::value
int value() const
layerIndex expressed in an integer
Definition:
LayerIndex.h:71
LayerIndex.h
Trk::operator<<
MsgStream & operator<<(MsgStream &sl, const AlignModule &alignModule)
overload of << operator for MsgStream for debug output
Definition:
AlignModule.cxx:204
Trk::operator>=
bool operator>=(const LayerIndex &one, const LayerIndex &two)
Definition:
LayerIndex.cxx:30
Generated on Sun Dec 22 2024 21:13:50 for ATLAS Offline Software by
1.8.18