ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonDetDescr
MuonReadoutGeometryR4
src
RadialStripDesign.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
#include <
MuonReadoutGeometryR4/RadialStripDesign.h
>
5
namespace
MuonGMR4
{
6
bool
RadialStripDesign::operator<
(
const
RadialStripDesign
& other)
const
{
7
if
(other.m_strips.size() !=
m_strips
.size()) {
8
return
m_strips
.size() < other.m_strips.size();
9
}
10
for
(
unsigned
int
strip
= 0;
strip
<
m_strips
.size(); ++
strip
) {
11
if
(
m_strips
[
strip
].distOnBottom != other.m_strips[
strip
].distOnBottom) {
12
return
m_strips
[
strip
].distOnBottom < other.m_strips[
strip
].distOnBottom;
13
}
14
if
(
m_strips
[
strip
].distOnTop != other.m_strips[
strip
].distOnTop) {
15
return
m_strips
[
strip
].distOnTop < other.m_strips[
strip
].distOnTop;
16
}
17
}
18
return
static_cast<
const
StripDesign
&
>
(*this) < other;
19
}
20
void
RadialStripDesign::addStrip
(
const
double
posOnBottom,
21
const
double
posOnTop) {
22
m_strips
.emplace_back(0.5*
lenBottomEdge
() + posOnBottom, 0.5*
lenTopEdge
()+ posOnTop, *
this
);
25
if
(
m_strips
.size() == 2) {
26
m_reversedStripOrder
=
m_strips
[1].distOnBottom <
m_strips
[0].distOnBottom;
27
}
28
}
29
}
SiliconTech::strip
@ strip
Definition
FPGATrackSimTypes.h:25
RadialStripDesign.h
MuonGMR4::RadialStripDesign::m_reversedStripOrder
bool m_reversedStripOrder
Definition
RadialStripDesign.h:102
MuonGMR4::RadialStripDesign::RadialStripDesign
RadialStripDesign()=default
MuonGMR4::RadialStripDesign::addStrip
void addStrip(const double posOnBottom, const double posOnTop)
: Defines a new radial strip.
Definition
RadialStripDesign.cxx:20
MuonGMR4::RadialStripDesign::m_strips
stripEdgeVec m_strips
Definition
RadialStripDesign.h:100
MuonGMR4::RadialStripDesign::operator<
bool operator<(const RadialStripDesign &other) const
set sorting operator
Definition
RadialStripDesign.cxx:6
MuonGMR4::StripDesign::lenTopEdge
double lenTopEdge() const
Length of the the edge from top left -> top right.
MuonGMR4::StripDesign::StripDesign
StripDesign()
Definition
StripDesign.cxx:21
MuonGMR4::StripDesign::lenBottomEdge
double lenBottomEdge() const
Length of the edge from bottom left -> bottom right.
MuonGMR4
The ReadoutGeomCnvAlg converts the Run4 Readout geometry build from the GeoModelXML into the legacy M...
Definition
MdtCalibInput.h:19
Generated on
for ATLAS Offline Software by
1.17.0